You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: total solar power no longer publishes zero on a failed read (#384)
The v1.6.6 fix converted the twelve PV fields decoded straight from a register,
but pv_total_power is derived and was missed in both of its branches:
- profiles that map pv_total_power_low still went through 'or 0.0'
- profiles without that register sum pv1..pv4_power, and unread strings sit at
their 0.0 default, so the sum produced a confident zero
The second is the common case - SPF, and most profiles, have no total register.
So the sensor the fix was reported against, and the energy-flow cards that read
it, kept showing the drop it was meant to remove.
Per-string power derived as V*I (#361 path, MIN TL-XH2) had the same shape and is
corrected alongside it.
Verified red without the fix: all three new assertions fail on the prior tree.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
0 commit comments