diff --git a/automations.yaml b/automations.yaml index c72f258..02e73ef 100644 --- a/automations.yaml +++ b/automations.yaml @@ -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 diff --git a/packages/emmalynn.yaml b/packages/emmalynn.yaml index 400da73..50b8734 100644 --- a/packages/emmalynn.yaml +++ b/packages/emmalynn.yaml @@ -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