Fix input boolean turning off because it...turned on

This commit is contained in:
2023-09-19 18:21:38 -04:00
parent 59efe5a4c6
commit e233fbf852

View File

@ -557,6 +557,10 @@ script:
mode: queued
max: 10
sequence:
- if:
- condition: template
value_template: "{{ reason != 'ibuprofen-on' }}"
then:
- service: input_boolean.turn_off
target:
entity_id: input_boolean.emma_ibuprofen
@ -686,6 +690,10 @@ script:
mode: queued
max: 10
sequence:
- if:
- condition: template
value_template: "{{ reason != 'tylenol-on' }}"
then:
- service: input_boolean.turn_off
target:
entity_id: input_boolean.emma_tylenol
@ -814,6 +822,10 @@ script:
mode: queued
max: 10
sequence:
- if:
- condition: template
value_template: "{{ reason != 'cough-on' }}"
then:
- service: input_boolean.turn_off
target:
entity_id: input_boolean.emma_cough_meds