Automations to deal with Emma Awake toggle
This commit is contained in:
@ -6097,3 +6097,30 @@
|
||||
action: script.tina_tylenol
|
||||
mode: parallel
|
||||
max: 10
|
||||
- id: '1742799079017'
|
||||
alias: Emma Sleep Handling
|
||||
description: Awareness of when Emma is asleep or wakes up
|
||||
triggers:
|
||||
- trigger: state
|
||||
entity_id:
|
||||
- input_boolean.emma_sleeping
|
||||
from: 'on'
|
||||
to: 'off'
|
||||
id: sleep-off
|
||||
alias: Sleep Off
|
||||
- trigger: state
|
||||
entity_id:
|
||||
- binary_sensor.family_home
|
||||
from: 'on'
|
||||
to: 'off'
|
||||
id: family-left
|
||||
alias: Family Left
|
||||
conditions: []
|
||||
actions:
|
||||
- action: input_boolean.turn_on
|
||||
metadata: {}
|
||||
data: {}
|
||||
target:
|
||||
entity_id: input_boolean.emma_awake
|
||||
alias: Turn on Emma Awake
|
||||
mode: restart
|
||||
|
@ -257,6 +257,9 @@ automation:
|
||||
time: >
|
||||
{% from 'time.jinja' import current_time %}
|
||||
{{ current_time('time',24) }}
|
||||
- service: input_boolean.turn_off
|
||||
target:
|
||||
entity_id: input_boolean.emma_awake
|
||||
- conditions:
|
||||
- condition: trigger
|
||||
id: bedtime-timer-finished
|
||||
@ -281,6 +284,9 @@ automation:
|
||||
datetime: >
|
||||
{% from 'time.jinja' import current_time %}
|
||||
{{ current_time('time',24) }}
|
||||
- service: input_boolean.turn_off
|
||||
target:
|
||||
entity_id: input_boolean.emma_awake
|
||||
|
||||
- id: e59f638a-519f-4619-bf7d-b13251b3a374
|
||||
alias: Emma Meds Handler
|
||||
|
Reference in New Issue
Block a user