Split wake-up automation around restart-proof awake flag

Replace the monolithic Sleep Tracking Stopped automation with an
input_boolean.awake flag plus input_datetime.woke_up timestamp.
Bedroom light and bathroom music trigger on the flag, music now runs
weekdays only, and the 45-minute music stop uses a template trigger
against the stored timestamp instead of a delay so it survives
Home Assistant restarts.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-26 16:04:23 +02:00
parent d195de3400
commit 67e33f1723
2 changed files with 108 additions and 27 deletions
+11
View File
@@ -0,0 +1,11 @@
input_boolean:
awake:
name: Awake
icon: mdi:weather-sunny
input_datetime:
woke_up:
name: Woke up
has_date: true
has_time: true
icon: mdi:alarm-check