Update group_visibility.markdown (#2505)

This event no longer works as it's changed: https://home-assistant.io/docs/automation/trigger/#home-assistant-trigger

Also added a hint for docker users... I understand if you don't want that added though!
This commit is contained in:
Ross Dargan 2017-04-26 10:03:56 +01:00 committed by Fabian Affolter
parent 4c9253b542
commit 189ffeb80f

View File

@ -103,6 +103,10 @@ sensor:
name: Occasion
command: "python3 occasion.py"
```
<p class='note'>
If you are using docker to run home assistant then the occasion.py script will be placed under /config. Your command should instead be: command: "python3 /command/occasion.py"
</p>
To simplify things, we create a Home Assistant script that changes the visibility of a group, but also verifies that an entity is in a specific state:
@ -124,8 +128,8 @@ automation:
trigger:
- platform: state
entity_id: sensor.occasion
- platform: event
event_type: homeassistant_start
- platform: homeassistant
event: start
action:
service: script.group_visibility
data:
@ -169,8 +173,8 @@ automation:
trigger:
- platform: state
entity_id: sensor.occasion
- platform: event
event_type: homeassistant_start
- platform: homeassistant
event: start
action:
service: script.group_visibility
data: