mirror of
https://github.com/steku/ha_cercadian_alarm.git
synced 2025-12-10 08:32:29 +00:00
conditions and advanced target
This commit is contained in:
@ -112,7 +112,7 @@ sequence:
|
||||
seconds: "{{ individual_step }}"
|
||||
- if:
|
||||
- condition: template
|
||||
value_template: "{{ is_state(target_light, 'on') }}"
|
||||
value_template: "{{ not is_state(target_light, 'off') }}"
|
||||
then:
|
||||
- data:
|
||||
brightness: "{{ brightness }}"
|
||||
@ -126,7 +126,7 @@ sequence:
|
||||
- condition: template
|
||||
value_template: "{{ light_timeout != 0 }}"
|
||||
- condition: template
|
||||
value_template: "{{ is_state(target_light, 'on') }}"
|
||||
value_template: "{{ not is_state(target_light, 'off') }}"
|
||||
then:
|
||||
- delay:
|
||||
minutes: "{{ light_timeout }}"
|
||||
|
||||
Reference in New Issue
Block a user