Fix input boolean turning off because it...turned on
This commit is contained in:
@ -557,6 +557,10 @@ script:
|
|||||||
mode: queued
|
mode: queued
|
||||||
max: 10
|
max: 10
|
||||||
sequence:
|
sequence:
|
||||||
|
- if:
|
||||||
|
- condition: template
|
||||||
|
value_template: "{{ reason != 'ibuprofen-on' }}"
|
||||||
|
then:
|
||||||
- service: input_boolean.turn_off
|
- service: input_boolean.turn_off
|
||||||
target:
|
target:
|
||||||
entity_id: input_boolean.emma_ibuprofen
|
entity_id: input_boolean.emma_ibuprofen
|
||||||
@ -686,6 +690,10 @@ script:
|
|||||||
mode: queued
|
mode: queued
|
||||||
max: 10
|
max: 10
|
||||||
sequence:
|
sequence:
|
||||||
|
- if:
|
||||||
|
- condition: template
|
||||||
|
value_template: "{{ reason != 'tylenol-on' }}"
|
||||||
|
then:
|
||||||
- service: input_boolean.turn_off
|
- service: input_boolean.turn_off
|
||||||
target:
|
target:
|
||||||
entity_id: input_boolean.emma_tylenol
|
entity_id: input_boolean.emma_tylenol
|
||||||
@ -814,6 +822,10 @@ script:
|
|||||||
mode: queued
|
mode: queued
|
||||||
max: 10
|
max: 10
|
||||||
sequence:
|
sequence:
|
||||||
|
- if:
|
||||||
|
- condition: template
|
||||||
|
value_template: "{{ reason != 'cough-on' }}"
|
||||||
|
then:
|
||||||
- service: input_boolean.turn_off
|
- service: input_boolean.turn_off
|
||||||
target:
|
target:
|
||||||
entity_id: input_boolean.emma_cough_meds
|
entity_id: input_boolean.emma_cough_meds
|
||||||
|
Reference in New Issue
Block a user