Take sopine ac adapter into account for kiosk screen automation
This commit is contained in:
parent
9b635ca1a3
commit
30951f16a2
|
@ -4,11 +4,13 @@
|
||||||
trigger:
|
trigger:
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: !secret tracked_device_1
|
entity_id: !secret tracked_device_1
|
||||||
|
- platform: state
|
||||||
|
entity_id: sensor.sopine_ac_present
|
||||||
action:
|
action:
|
||||||
- service: shell_command.lightdm
|
- service: shell_command.lightdm
|
||||||
data_template:
|
data_template:
|
||||||
action: >-
|
action: >-
|
||||||
{% if trigger.to_state.state == 'home' %}
|
{% if trigger.to_state.state == 'home' and is_state('sensor.sopine_ac_present', 'True') %}
|
||||||
start
|
start
|
||||||
{% else %}
|
{% else %}
|
||||||
stop
|
stop
|
||||||
|
|
Loading…
Reference in New Issue