v1.13.1
Release v1.13.1
Release Date: 2026-03-01
Type: Patch release - Preserves 1 W / 1 Wh precision on power and energy sensors.
What's Changed
Fixed
- Power and energy values were truncated to 10 W / 10 Wh granularity - The
integration converted watts to kilowatts (and watt-hours to kilowatt-hours)
with a rounding step to 2 decimal places in the larger unit, which discarded
the 3rd decimal that carries the actual 1 W / 1 Wh precision the Alfa device
reports over Modbus. For example, a register value of332(332 W) became
0.33 kW— which Home Assistant then displayed as 330 W, losing 2 W.
Rounding now uses 3 decimal places, preserving the device's native
precision end-to-end. Home Assistant's default display precision for POWER
(kW) and ENERGY (kWh) sensors is already 3 decimals, so the improvement is
visible immediately without any UI configuration changes.
Why 3 decimals, not 2?
The Alfa device's Modbus registers return integer watts and integer watt-hours.
When the integration divides by 1000 to convert to kW/kWh, the full precision
becomes a 3-decimal number (e.g. 332 → 0.332). Rounding to only 2 decimals
was destroying that 3rd decimal before the value ever reached Home Assistant.
With 3 decimals, the values round-trip cleanly: 332 W is stored as 0.332 kW,
which Home Assistant can render as 0.332 kW or convert to 332 W exactly.
Credits
Thanks to asp Andrea on the Home Assistant community forum for spotting
and reporting this precision issue.
Full Changelog:
compare/v1.13.0...v1.13.1