Repository navigation
Commit 3e2b22d
fix(fox): correct half-kW inverter capacity and round noisy production totals
Fox's device/detail 'capacity' field is a truncated integer, so a 10.5kW
KH10.5 inverter reported as 10kW everywhere - both the reported
inverter_capacity/inverter_limit sensor and the fdpwr_max clamp that was
silently capping the correct 10500W scheduler value down to 10000W. Now
corrects the value from deviceType when it ends in '.5'. Also round the
_today/_month production sensors (e.g. generation_today) which were
carrying long floating-point summation artifacts from Fox's raw history
data.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>1 parent 1f950c6 commit 3e2b22d
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1494 | 1494 | | |
1495 | 1495 | | |
1496 | 1496 | | |
1497 | | - | |
| 1497 | + | |
1498 | 1498 | | |
1499 | 1499 | | |
1500 | 1500 | | |
| |||
0 commit comments