Skip to content

Added code to ensure stable boot#1121

Open
gskjold wants to merge 2 commits intomainfrom
feat/vcc_wait
Open

Added code to ensure stable boot#1121
gskjold wants to merge 2 commits intomainfrom
feat/vcc_wait

Conversation

@gskjold
Copy link
Member

@gskjold gskjold commented Jan 15, 2026

There have been reports of Pow-U not being able to boot successfully which have become more problematic after enabling the new 15min price interval. In combination with Home-Assistant MQTT payload, this triggers a lot of sensor configurations being sent on MQTT not long after boot. A normal boot without a lot of MQTT communication is already consuming a lot of power, so this extra time spent with WiFi modem awake causes the onboard capacitor to run out of power and brown out.

To remedy this situation, code have been added that causes the firmware to wait for the capacitor to charge, by entering a deep sleep mode for a few seconds and then check again. To prevent the device from staying in this deep sleep state, a maximum of 5 tries have been enforced, thus it will not sleep for more than 15 seconds in total.

On top of this, the code will also wait a period for the capacitor to charge before collecting prices from the server, but no longer than 30 seconds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant