mirror of
https://github.com/steku/ha_cercadian_alarm.git
synced 2026-02-05 03:22:18 +00:00
conditions and advanced target
This commit is contained in:
@ -206,9 +206,8 @@ action:
|
|||||||
light_timeout: 0
|
light_timeout: 0
|
||||||
target_light: !input target_light
|
target_light: !input target_light
|
||||||
- if:
|
- if:
|
||||||
- condition: state
|
- condition: template
|
||||||
state: "on"
|
value_template: "{{ expand(lights.entity_id) | selectattr('state', '==', 'on')
|
||||||
entity_id: !input target_light
|
|
||||||
then:
|
then:
|
||||||
- action: !input alarm_script
|
- action: !input alarm_script
|
||||||
data:
|
data:
|
||||||
|
|||||||
Reference in New Issue
Block a user