Closes #114 - Restart Homebridge when HASS is restarted.

This commit is contained in:
CCOSTAN 2017-03-17 13:35:26 +00:00
parent 2b6a8719c3
commit d60500dbe9
3 changed files with 5 additions and 2 deletions

View File

@ -13,7 +13,7 @@
value1: 'Startup: Home Assistant is Up and Running!'
value2: ''
value3: ''
- service: light.turn_off
entity_id: group.hallway_lights
- service: shell_command.restart_homebridge

View File

@ -145,3 +145,4 @@ scene: !include_dir_merge_list scene
switch: !include_dir_merge_list switch
script: !include_dir_merge_named script
input_boolean: !include_dir_merge_named input_boolean
shell_command: !include_dir_merge_named shell_command

View File

@ -0,0 +1,2 @@
restart_homebridge: >-
sudo -u pi -H /usr/bin/pm2 restart homebridge