Move med switch resets over to the once-a-day resetter, fix #144
This commit is contained in:
@ -206,9 +206,6 @@ script:
|
|||||||
icon: mdi:medical-bag
|
icon: mdi:medical-bag
|
||||||
mode: restart
|
mode: restart
|
||||||
sequence:
|
sequence:
|
||||||
- service: input_boolean.turn_off
|
|
||||||
target:
|
|
||||||
entity_id: input_boolean.kallen_morning_meds_taken
|
|
||||||
- service: script.text_notify
|
- service: script.text_notify
|
||||||
data:
|
data:
|
||||||
who: kallen
|
who: kallen
|
||||||
@ -303,9 +300,6 @@ script:
|
|||||||
icon: mdi:medical-bag
|
icon: mdi:medical-bag
|
||||||
mode: restart
|
mode: restart
|
||||||
sequence:
|
sequence:
|
||||||
- service: input_boolean.turn_off
|
|
||||||
target:
|
|
||||||
entity_id: input_boolean.kallen_night_meds_taken
|
|
||||||
- service: script.text_notify
|
- service: script.text_notify
|
||||||
data:
|
data:
|
||||||
who: kallen
|
who: kallen
|
||||||
|
@ -168,9 +168,15 @@ automation:
|
|||||||
from: 'streaming'
|
from: 'streaming'
|
||||||
to: 'offline'
|
to: 'offline'
|
||||||
id: stream-offline
|
id: stream-offline
|
||||||
|
- platform: time
|
||||||
|
at: "04:00:00"
|
||||||
|
id: 4am
|
||||||
|
- platform: time
|
||||||
|
at: "16:00:00"
|
||||||
|
id: 4pm
|
||||||
- platform: time
|
- platform: time
|
||||||
at: "06:00:00"
|
at: "06:00:00"
|
||||||
id: six
|
id: 6am
|
||||||
action:
|
action:
|
||||||
- choose:
|
- choose:
|
||||||
- conditions:
|
- conditions:
|
||||||
@ -217,7 +223,18 @@ automation:
|
|||||||
entity_id: input_boolean.tony_streaming_today
|
entity_id: input_boolean.tony_streaming_today
|
||||||
- conditions:
|
- conditions:
|
||||||
- condition: trigger
|
- condition: trigger
|
||||||
id: six
|
id: 4am
|
||||||
|
sequence:
|
||||||
|
- service: input_boolean.turn_off
|
||||||
|
target:
|
||||||
|
entity_id:
|
||||||
|
- input_boolean.kallen_morning_meds_taken
|
||||||
|
- input_boolean.kallen_night_meds_taken
|
||||||
|
- input_boolean.tony_morning_meds_taken
|
||||||
|
- input_boolean.tina_morning_meds_taken
|
||||||
|
- conditions:
|
||||||
|
- condition: trigger
|
||||||
|
id: 6am
|
||||||
sequence:
|
sequence:
|
||||||
- if:
|
- if:
|
||||||
- condition: state
|
- condition: state
|
||||||
@ -227,16 +244,20 @@ automation:
|
|||||||
- service: input_boolean.turn_off
|
- service: input_boolean.turn_off
|
||||||
target:
|
target:
|
||||||
entity_id: input_boolean.tony_streaming_today
|
entity_id: input_boolean.tony_streaming_today
|
||||||
|
- conditions:
|
||||||
|
- condition: trigger
|
||||||
|
id: 4pm
|
||||||
|
sequence:
|
||||||
|
- service: input_boolean.turn_off
|
||||||
|
target:
|
||||||
|
entity_id:
|
||||||
|
- input_boolean.tony_night_meds_taken
|
||||||
|
- input_boolean.tina_night_meds_taken
|
||||||
|
|
||||||
script:
|
script:
|
||||||
kallen_scheduling_morning:
|
kallen_scheduling_morning:
|
||||||
alias: 'Kallen Scheduling Morning'
|
alias: 'Kallen Scheduling Morning'
|
||||||
sequence:
|
sequence:
|
||||||
- service: input_boolean.turn_off
|
|
||||||
target:
|
|
||||||
entity_id:
|
|
||||||
- input_boolean.kallen_morning_meds_taken
|
|
||||||
- input_boolean.kallen_night_meds_taken
|
|
||||||
- if:
|
- if:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: input_boolean.school_in_session
|
entity_id: input_boolean.school_in_session
|
||||||
@ -661,11 +682,6 @@ script:
|
|||||||
{% else %}
|
{% else %}
|
||||||
{{ states('input_datetime.master_bedroom_wakeup') }}
|
{{ states('input_datetime.master_bedroom_wakeup') }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
- service: input_boolean.turn_off
|
|
||||||
target:
|
|
||||||
entity_id:
|
|
||||||
- input_boolean.tony_morning_meds_taken
|
|
||||||
- input_boolean.tina_morning_meds_taken
|
|
||||||
- service: input_boolean.turn_on
|
- service: input_boolean.turn_on
|
||||||
target:
|
target:
|
||||||
entity_id: input_boolean.master_bedroom_scheduling_morning_ran
|
entity_id: input_boolean.master_bedroom_scheduling_morning_ran
|
||||||
@ -735,11 +751,6 @@ script:
|
|||||||
{% else %}
|
{% else %}
|
||||||
N/A
|
N/A
|
||||||
{% endif %}
|
{% endif %}
|
||||||
- service: input_boolean.turn_off
|
|
||||||
target:
|
|
||||||
entity_id:
|
|
||||||
- input_boolean.tony_night_meds_taken
|
|
||||||
- input_boolean.tina_night_meds_taken
|
|
||||||
- service: input_datetime.set_datetime
|
- service: input_datetime.set_datetime
|
||||||
target:
|
target:
|
||||||
entity_id: input_datetime.tina_night_meds_notify
|
entity_id: input_datetime.tina_night_meds_notify
|
||||||
|
@ -266,9 +266,6 @@ script:
|
|||||||
icon: mdi:medical-bag
|
icon: mdi:medical-bag
|
||||||
mode: restart
|
mode: restart
|
||||||
sequence:
|
sequence:
|
||||||
- service: input_boolean.turn_off
|
|
||||||
target:
|
|
||||||
entity_id: input_boolean.tina_morning_meds_taken
|
|
||||||
- service: script.text_notify
|
- service: script.text_notify
|
||||||
data:
|
data:
|
||||||
who: tina
|
who: tina
|
||||||
@ -353,9 +350,6 @@ script:
|
|||||||
icon: mdi:medical-bag
|
icon: mdi:medical-bag
|
||||||
mode: restart
|
mode: restart
|
||||||
sequence:
|
sequence:
|
||||||
- service: input_boolean.turn_off
|
|
||||||
target:
|
|
||||||
entity_id: input_boolean.tina_night_meds_taken
|
|
||||||
- service: script.text_notify
|
- service: script.text_notify
|
||||||
data:
|
data:
|
||||||
who: tina
|
who: tina
|
||||||
|
@ -158,9 +158,6 @@ script:
|
|||||||
icon: mdi:medical-bag
|
icon: mdi:medical-bag
|
||||||
mode: restart
|
mode: restart
|
||||||
sequence:
|
sequence:
|
||||||
- service: input_boolean.turn_off
|
|
||||||
target:
|
|
||||||
entity_id: input_boolean.tony_morning_meds_taken
|
|
||||||
- service: script.text_notify
|
- service: script.text_notify
|
||||||
data:
|
data:
|
||||||
who: tony
|
who: tony
|
||||||
@ -245,9 +242,6 @@ script:
|
|||||||
icon: mdi:medical-bag
|
icon: mdi:medical-bag
|
||||||
mode: restart
|
mode: restart
|
||||||
sequence:
|
sequence:
|
||||||
- service: input_boolean.turn_off
|
|
||||||
target:
|
|
||||||
entity_id: input_boolean.tony_night_meds_taken
|
|
||||||
- service: script.text_notify
|
- service: script.text_notify
|
||||||
data:
|
data:
|
||||||
who: tony
|
who: tony
|
||||||
|
Reference in New Issue
Block a user