Skip to content

Instantly share code, notes, and snippets.

@borismacias
Created January 10, 2019 02:25
Show Gist options
  • Save borismacias/96bbfcff49847d5e7d778f9cec0886bd to your computer and use it in GitHub Desktop.
Save borismacias/96bbfcff49847d5e7d778f9cec0886bd to your computer and use it in GitHub Desktop.
HASS config
script:
talk_canelita:
sequence:
- service: shell_command.talk_canelita
stop_talking:
sequence:
- service: shell_command.stop_talking
shell_command:
talk_canelita: "ruby /home/pi/canelita/main.rb"
stop_talking: "sudo ps -ef|grep main.rb | grep -v grep|awk '{print \"sudo kill -9 \"$2}' |sh && sudo killall omxplayer.bin"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment