I have a webhook calling a automation trigger:
- id: '15637290'
alias: thing Flag
trigger:
- platform: webhook
webhook_id: thing
condition: []
action:
- alias: ''
data:
entity_id: media_player.living_room
message: Download Detected
service: tts.google_say
- data: {}
service: shell_command.scan_thing
According to my script, the triggers are fine (it calls a TTS before the shell script)…
But once the shell script attempts to execute:
shell_command:
scan_thing: python '/media/File/Media Backup/pythonscript.py'
HA crashes and is unavailable locally.
To fix it i have to comment out the scan_thing:
from the config file.
Things to note:
- Im running hassio on an OP Ubuntu 18.04.2 LTS.
- Hassio in docker - Home Assistant V 0.96.5
- I have full file permissions at
/media/File/Media Backup/
(i can run from the terminal np) - I cannot use the
python_scripts
folder, since i requireimport
- I would be open to using
appdaemon
, its already installed… but i cant find in their docs how to execute on recieving a webhook.