Reopen the setup portal when NTP never answers #1

Merged
rob merged 1 commit from rob/ntp-portal-fallback into master 2026-11-20 21:01:18 +00:00 AGit
Owner

A wrong or unreachable NTP server left the clock on the searching animation for good, with Home Assistant the only way to fix it. Now, if no time arrives within NtpPortalAfterMs (2 minutes) of joining WiFi, the setup AP opens so the NTP fields can be changed there. WiFi stays joined behind the AP, so NTP keeps retrying and the portal closes itself once the time arrives. Saving the form with the SSID blank changes the NTP fields without touching WiFi. If this portal times out the clock returns to Syncing instead of rebooting; the no-WiFi portal still reboots. Only a clock with no time since boot is affected. Note that an internet outage at power-up now brings up the open AP, whose form carries the MQTT password in its page source. Also points the ota env's upload_port at analogue-led-clock.iot. Testing: builds for both envs; not flashed or run on the clock.

A wrong or unreachable NTP server left the clock on the searching animation for good, with Home Assistant the only way to fix it. Now, if no time arrives within NtpPortalAfterMs (2 minutes) of joining WiFi, the setup AP opens so the NTP fields can be changed there. WiFi stays joined behind the AP, so NTP keeps retrying and the portal closes itself once the time arrives. Saving the form with the SSID blank changes the NTP fields without touching WiFi. If this portal times out the clock returns to Syncing instead of rebooting; the no-WiFi portal still reboots. Only a clock with no time since boot is affected. Note that an internet outage at power-up now brings up the open AP, whose form carries the MQTT password in its page source. Also points the ota env's upload_port at analogue-led-clock.iot. Testing: builds for both envs; not flashed or run on the clock.
A wrong NTP server left the clock on the searching animation with no
way to fix it short of Home Assistant. Also points OTA uploads at the
.iot hostname.
rob merged commit 027ac757a6 into master 2026-11-20 21:01:18 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
rob/analogue-led-clock!1
No description provided.