ESPSomfy-RTS/docs
cjkas 953d4dc6f7 fix: stop the 5 s boot wait, tell the client about a bad restore
NTPSettings::apply() waited up to 5 s in getLocalTime() for a clock that
can't be set before the network is up, then returned before it set TZ.
Every cold boot was 5 s slower and ran without its time zone.  It now
calls configTzTime(), which sets the zone and starts SNTP without
waiting, and save() goes through apply().  /setgeneral checked
ntpServer twice, so a request that changed only the zone was ignored.

A restore ignored the result of ShadeConfigFile::restore() and rebooted
either way, so a bad file failed with no word to the user.  The /restore
reply now validates the file and answers 400, which the restore dialog
shows, and an incomplete upload gets a 400 instead of no reply.  A
failed restore changes nothing, so loop() no longer reboots after one.
/shades.tmp, a full copy of the backup with its rolling codes, is
deleted after every restore and after /updateShadeConfig.

The 6 extra bytes in the 2026-10-18 backup: TRANS_REC_SIZE stayed 74
when noiseDetection was added to the 80-byte transceiver record, so
every backup since declares it short.  It is 80 now.  The size check
stays a warning so those backups still restore, and the sum moves to
expectedFileBytes() with tests.  The repeater record length is checked
as a warning only, since validate() also runs on shades.cfg at boot.

Commands for an unknown shade, tilt or group now log a warning, and a
socket that never pinged says so.  KNOWN_ISSUES.md is updated, including
the real cause of the ~365 ms loop stall (radio_tx busy-waits each frame
on loop()'s core).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 18:08:16 +02:00
..
adr docs: plan domain modules behind a LoopQueue 2026-10-15 21:38:43 +02:00
KNOWN_ISSUES.md fix: stop the 5 s boot wait, tell the client about a bad restore 2026-10-19 18:08:16 +02:00
LOOP_QUEUE_PLAN.md docs: mark the Home Assistant apikey item fixed by ESPSomfy-RTS-HA#4 2026-10-17 23:43:16 +02:00
NICE_TO_HAVE.md docs: add agent testing instructions and the RMT transmit idea 2026-10-16 09:11:17 +02:00
SECURITY_PLAN.md docs: plan auth on every entry point and one HTTP server 2026-10-18 20:08:20 +02:00
SHADE_BEHAVIOUR_PLAN.md docs: close the shade behaviour reconcile (Q24, Q25) 2026-10-16 22:49:17 +02:00
SOMFY_SPLIT_PLAN.md cleanup: drop the step cases onWaitingFrame never reaches 2026-10-17 23:25:16 +02:00