From 189ffeb80f4855071e0d33f48814917cd3da1f85 Mon Sep 17 00:00:00 2001 From: Ross Dargan Date: Wed, 26 Apr 2017 10:03:56 +0100 Subject: [PATCH] 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! --- source/_docs/configuration/group_visibility.markdown | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/source/_docs/configuration/group_visibility.markdown b/source/_docs/configuration/group_visibility.markdown index 13c5cf9d7be..c3e284a05e0 100644 --- a/source/_docs/configuration/group_visibility.markdown +++ b/source/_docs/configuration/group_visibility.markdown @@ -103,6 +103,10 @@ sensor: name: Occasion command: "python3 occasion.py" ``` +

+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" +

+ 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: