You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

15 lines
364 B

# Desk kiosk on/off
- id: desk_kiosk
alias: Desk Kiosk
trigger:
- platform: state
entity_id: !secret tracked_device_1
action:
- service: shell_command.lightdm
data_template:
action: >-
{% if trigger.to_state.state == 'home' %}
start
{% else %}
stop
{% endif %}