Fix input boolean turning off because it...turned on
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user