From d195de3400bcec55a95c255184ddabadb73a2e33 Mon Sep 17 00:00:00 2001 From: Julian Tabel Date: Tue, 21 Jul 2026 08:34:04 +0200 Subject: [PATCH] Split Fell Asleep into separate speaker and fan automations Co-Authored-By: Claude Fable 5 --- automations.yaml | 40 ++++++++++++++++++++++++++++++++++++---- 1 file changed, 36 insertions(+), 4 deletions(-) diff --git a/automations.yaml b/automations.yaml index 1ed1138..bc1ac81 100644 --- a/automations.yaml +++ b/automations.yaml @@ -387,8 +387,8 @@ - sensor.speedtest_upload - sensor.speedtest_ping mode: single -- id: '1759432890095' - alias: Fell Asleep +- id: '1784615478977' + alias: Fell Asleep - Speaker description: '' triggers: - trigger: state @@ -420,7 +420,7 @@ actions: - delay: hours: 0 - minutes: 10 + minutes: 5 seconds: 0 milliseconds: 0 - action: media_player.media_stop @@ -429,9 +429,41 @@ target: area_id: bedroom continue_on_error: true + mode: single +- id: '1784615478989' + alias: Fell Asleep - Fan + description: '' + triggers: + - trigger: state + entity_id: + - event.sleep_as_android_sleep_phase_2 + attribute: event_type + to: + - not_awake + - light_sleep + - deep_sleep + - rem + for: + hours: 0 + minutes: 5 + seconds: 0 + enabled: false + - trigger: numeric_state + entity_id: + - sensor.pixel_10_sleep_confidence + for: + hours: 0 + minutes: 15 + seconds: 0 + above: 80 + conditions: + - condition: zone + entity_id: person.julian + zone: zone.home + actions: - delay: hours: 0 - minutes: 1 + minutes: 30 seconds: 0 milliseconds: 0 - action: fan.turn_off