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