Setting up a Python script for Pyscript #323
Unanswered
AdamMonforton
asked this question in
Q&A
Replies: 1 comment 2 replies
-
pyscript and python_script are two very different things. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to trigger a Tasker task via Home Assistant. I am following this guide https://www.home-assistant.io/blog/2015/12/10/activating-tasker-tasks-from-home-assistant-using-command-line-switches/
which says to create a Python script with this code:
(The URL gets replaced). I have created my .py file and put this code within the pyscript folder in my Config of Home Assistant. When i go to create my automation and select Call Service. The only pyscript services I see are the Jupyter Kernal and the Reload.I did go back and add @service to the top of my .py file but that hasn't changed anything.
Any advice as to what I am doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions