Skip to content

v2.2.2 — Binary-Sensor restart persistence

Choose a tag to compare

@hoizi89 hoizi89 released this 26 May 09:46

Fix: state survives HA restart

PVSurplusBinarySensor now inherits from RestoreEntity. On HA restart the last on/off state is restored from the recorder instead of starting at off.

Before: restart → binary_sensor at off while source sensors still warming up → downstream automations (e.g. heat-pump cooling) saw a fake state change → consumer turned off → 5-min ON-delay before it could come back on.

After: restart → binary_sensor uses its last persisted state → no state change → no spurious trigger → consumer keeps running.

No config changes needed.