Skip to content

5.0.0

Choose a tag to compare

@BorisBrock BorisBrock released this 19 Oct 13:50
· 7 commits to main since this release

⚠️ Breaking Changes

The "Enable charging" switch has been removed. The charging current limit is now the only way to turn charging on and off:

  • 0 A blocks charging
  • 6.0–16.0 A allows charging (values below 6 count as blocked, values above 16 are capped at 16)

What this changes:

  • The MQTT topics {DeviceName}/control/enable_charging and {DeviceName}/enable_charging have 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_charging now has to publish 0 (to stop) or a value from 6 to 16 (to charge) to control/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 ON or OFF (not case-sensitive). Anything else is ignored. Before, any value other than ON was treated as OFF.
  • 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 native PlatformIO 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