From 30951f16a2c2786cbb7a63f0c5d0cb1c9970622a Mon Sep 17 00:00:00 2001 From: KemoNine Date: Tue, 7 May 2019 02:17:19 +0000 Subject: [PATCH] Take sopine ac adapter into account for kiosk screen automation --- automations/desk_human_kiosk.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/automations/desk_human_kiosk.yaml b/automations/desk_human_kiosk.yaml index eb71e2c..2737fea 100644 --- a/automations/desk_human_kiosk.yaml +++ b/automations/desk_human_kiosk.yaml @@ -4,11 +4,13 @@ trigger: - platform: state entity_id: !secret tracked_device_1 + - platform: state + entity_id: sensor.sopine_ac_present action: - service: shell_command.lightdm data_template: action: >- - {% if trigger.to_state.state == 'home' %} + {% if trigger.to_state.state == 'home' and is_state('sensor.sopine_ac_present', 'True') %} start {% else %} stop