mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-21 08:16:53 +00:00
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:
parent
4c9253b542
commit
189ffeb80f
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user