Update parabolic_alarm_script.yaml

This commit is contained in:
jeells102
2025-03-20 16:51:01 +00:00
committed by GitHub
parent d0e24ed8f7
commit 02dbced931

View File

@ -125,12 +125,14 @@ sequence:
- condition: and - condition: and
conditions: conditions:
- condition: template - condition: template
value_template: "{{ light_timeout != 0 }}" value_template: "{{ light_timeout | int != 0 }}"
- condition: template - condition: template
value_template: "{{ is_state(target_light, 'on') }}" value_template: "{{ is_state(target_light, 'on') }}"
- condition: template
value_template: "{{ not is_input('keep_light_on') }}"
then: then:
- delay: - delay:
minutes: "{{ light_timeout }}" minutes: "{{ light_timeout | int }}"
- data: {} - data: {}
target: target:
entity_id: "{{ target_light }}" entity_id: "{{ target_light }}"