conditions and advanced target

This commit is contained in:
Unknown
2025-11-10 09:19:42 -05:00
parent 7181024497
commit 9ff1580896
2 changed files with 9 additions and 27 deletions

View File

@ -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 }}"