Repository navigation
✨ Improvements
Energy meter no longer runs backwards after a power cut (#82, fixes #57)
The Heidelberg wallbox only saves its "energy since installation" register to EEPROM when it enters standby. HeidelBridge keeps the wallbox out of standby, so after every power cut the register fell back to an old value and Home Assistant saw the meter run backwards.
HeidelBridge now publishes the register plus an offset, and the published value only ever counts up:
- A register value that falls, or rises faster than 11 kW allows, is bridged with the offset once it has held for 30 s. Single bogus readings change nothing.
- Offset and counter are stored in flash, so the counter survives wallbox power cuts and bridge reboots alike. While charging, flash is written at most every 30 s.
- New Energy Meter section in the web UI shows the counter, the raw register and the offset. Entering a new value rebases the counter, e.g. after a wallbox swap.
- New diagnostic MQTT topics:
{DeviceName}/internal/energy_offset_whand{DeviceName}/internal/energy_raw_wh.
Note
Right after the first boot of 5.1.0 the counter needs about 30 s to settle on the current register value. During that time no energy_meter value is published over MQTT, and Modbus TCP answers energy reads with "device busy" instead of 0 (#90). After that, the value is restored from flash on every boot.
Modbus TCP reads spanning several registers (#89, fixes #83)
A read may now start anywhere inside the register map and span several values. evcc's station check (22 registers from register 32) no longer fails with illegal data address. Note that evcc's Daheimladen integration requires a sponsor token.
🐛 Bug Fixes
- The dead "Enable charging" switch left behind in Home Assistant after updating from 4.x is now removed automatically on MQTT connect (#87).
- The web UI banner no longer makes the page scroll sideways (#86).
📖 Documentation
- New section PV Surplus with a Home Battery and Hysteresis in the Home Assistant guide; the example automation now has
watts_per_ampandmax_currentvariables for single-phase setups (#88).
🧪 Testing
- New host tests for the energy counter and the Modbus TCP register map (75 native tests in total).
Tip
To install this update, open the web interface of your HeidelBridge: [HeidelBridgeIPAddress]/update.
Then choose and install the new firmware.bin file.
Full Changelog: 5.0.0...5.1.0