My SayOff.py contains the following…
import requests
requests.get('http://autoremotejoaomgcd.appspot.com/sendmessage?key=some_very_secret_key&message=SayOff')
My SayOff.py contains the following…
import requests
requests.get('http://autoremotejoaomgcd.appspot.com/sendmessage?key=some_very_secret_key&message=SayOff')
mine now reflects yours but I still get this error like it can’t find the library or recognise the “import” command.
Error executing script: import not found
Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/homeassistant/components/python_script.py”, line 166, in execute
exec(compiled.code, restricted_globals, local)
File “on.py”, line 1, in
ImportError: import not found
I don’t know about your error, have you tried restarting?
Yes restarted,
It seems I may need to use appdaemon to import the required libraries