Repository navigation
5.0.0
⚠️ Breaking Changes
The "Enable charging" switch has been removed. The charging current limit is now the only way to turn charging on and off:
0A blocks charging6.0–16.0A allows charging (values below 6 count as blocked, values above 16 are capped at 16)
What this changes:
- The MQTT topics
{DeviceName}/control/enable_chargingand{DeviceName}/enable_charginghave been removed. - The Home Assistant "Enable charging" switch is no longer created. You can delete the old entity.
- The Home Assistant charging current slider now goes from 0 to 16 A in 0.1 A steps (it was 6–16 A in 1 A steps).
Upgrading
- Anything that published to
control/enable_chargingnow has to publish0(to stop) or a value from6to16(to charge) tocontrol/charging_current_limit. - Publish control commands without the retain flag. Retained control messages are now ignored.
✨ Improvements
Stricter MQTT command handling
- Current limit must be a plain decimal number (e.g.
0,6,10.5). Text, negative numbers,nan, JSON and similar input are ignored. - Standby must be
ONorOFF(not case-sensitive). Anything else is ignored. Before, any value other thanONwas treated asOFF. - Retained and fragmented control messages are ignored, so an outdated setpoint can't be re-applied after a reconnect or reboot.
More robust communication
- MQTT commands are now checked in the network task and applied in the main loop. This keeps slow Modbus transfers out of the MQTT callbacks and prevents concurrent access to shared buffers.
- Invalid values (NaN or infinity) are rejected before they reach the wallbox.
🐛 Bug Fixes
- The charging current written to the wallbox register is now rounded instead of cut off (e.g. 6.2 A no longer ends up as 6.1 A).
🧪 Testing & CI
- New
nativePlatformIO environment with unit tests that run on the build machine without hardware (pio test -e native). Covers the wallbox logic and MQTT command parsing. - New GitHub Actions workflow that runs the unit tests on every push and pull request.
📖 Documentation
- API reference updated with the new control rules.
- New guide: PV Surplus Charging Automation for Home Assistant, with an example automation in
docs/examples/ha-automation.yaml.
Full Changelog: 4.2.1...5.0.0