Hi @jolas, I’ve just pushed a fix for the “unknown” threshold issue after power loss.
Root cause:
The threshold was being published to Home Assistant before the API connection was fully established. By the time HA connected, it had already missed the initial state message.
The fix:
The threshold is now re-published on the first sensor update, which happens after Home Assistant has connected. This ensures HA always receives the correct saved value.
To get the fix:
Pull the latest from the main branch, or wait for the next release.
Let me know if you run into any other issues!