Skip to content

Commit 189ffeb

Browse files
rossdarganfabaff
authored andcommitted
Update group_visibility.markdown (home-assistant#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!
1 parent 4c9253b commit 189ffeb

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

source/_docs/configuration/group_visibility.markdown

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,10 @@ sensor:
103103
name: Occasion
104104
command: "python3 occasion.py"
105105
```
106+
<p class='note'>
107+
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"
108+
</p>
109+
106110

107111
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:
108112

@@ -124,8 +128,8 @@ automation:
124128
trigger:
125129
- platform: state
126130
entity_id: sensor.occasion
127-
- platform: event
128-
event_type: homeassistant_start
131+
- platform: homeassistant
132+
event: start
129133
action:
130134
service: script.group_visibility
131135
data:
@@ -169,8 +173,8 @@ automation:
169173
trigger:
170174
- platform: state
171175
entity_id: sensor.occasion
172-
- platform: event
173-
event_type: homeassistant_start
176+
- platform: homeassistant
177+
event: start
174178
action:
175179
service: script.group_visibility
176180
data:

0 commit comments

Comments
 (0)