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>
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>
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>
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>
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>