7 Commits
Author SHA1 Message Date
mangavalkandClaude Opus 5.5 bcc6b3a42b Keep the ambient colour when the light turns on
The MCU resets the colour to Cycle on every turn-on. Remember the chosen colour
across restarts and send it again just after the MCU reports the light on.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 01:26:02 +01:00
mangavalkandClaude Opus 5.5 06b259cb1b Restart when the MCU stops reporting
After about 2.5 days the chip stopped receiving MCU replies while writes still
went out, so switches looked stuck. Restart after 5 quiet minutes, but only if
the link worked earlier in that boot.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 01:17:11 +01:00
mangavalkandClaude Opus 5.5 a355f64d1a Name the alarm sounds
Replace Sound 1 to 7 with the names identified by ear on this lamp.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 19:19:54 +01:00
mangavalkandClaude Opus 5.5 e6f004e811 Correct alarm data findings from byte tests
The alarm station byte is shared and follows the current radio station, so
remove the per-alarm control. Remove the FM sound option, as writing it just
turns on the radio mode. Record how the MCU treats each DP127 byte.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 17:38:23 +01:00
mangavalkandClaude Opus 5.5 aa929478f6 Add local time source, station buttons and link status
Prefer Home Assistant time with public NTP as fallback. Add next and previous
station, ESPHome and LibreTiny versions, and an MCU link sensor. Update notes
with the raw capture results and tidy the README to-do list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 17:22:24 +01:00
mangavalkandClaude Opus 5.5 a8f6bb3ca5 Fit this lamp: 4 alarms, full data model, knock snooze, server use
Decode DP127 as 48 bytes (4 alarms), plus DP128, DP107 and DP126, from Tuya's
data model. Add day switches, alarm and sunset controls, a knock sensor on PA18,
display schedule, bedtime fade, radio timer and grouped web UI. Pin LibreTiny
v1.14.0 for the OTA restart fix. Ship the patched UART as an external component
so a server needs only a short YAML.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 12:27:54 +01:00
elizard 086a040802 Initial ESPHome port for Wake Up Light II 2026-10-08 10:45:05 +03:00