Repository navigation
fix(1P): correct Battery Current scale from 0.01A to 0.1A (register 191) - #128
Conversation
See #123 register 190 (battery power) is scaled as 10W on my inverter. which is part of register 54 ac power scaling. |
a1b4df9 to
523c69b
Compare
|
@SupermotoJerry and @TheApsik thanks for all of this. Nice. Could you summarize it in simple words? Do we still need this if I merge #123? I'm a bit confused and not sure if auto-detection works for all values or not. |
Hi Lewa-Reka, #123 is regarding power. #128 is only for current, but i think #128 we need to add a way to select inverter or auto select that changes the current based on the inverter. #123 deals with a scaling value for power. it happens to cover alot of registers
register 54 is used as a scale for the highlighted registers.
|
|
@sourcery-ai review |
Reviewer's guide (collapsed on small PRs)Reviewer's GuideUpdates the single-phase hybrid inverter Battery Current sensor scaling from 0.01 A to 0.1 A per register unit, fixing readings that were reported at one-tenth of the actual current. File-Level Changes
Assessment against linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
@SupermotoJerry thx! |
… 3389-1515) New entry point pv_inverter/deye_hybrid_1p_lv_v118.yaml next to the existing 1P one, so users on older firmwares are unaffected. Reuses inverter/load/pv from deye_hybrid_1p; includes the AC power ratio scaling (Lewa-Reka#123), External CT Power state_class (Lewa-Reka#152) and Battery Current scale (Lewa-Reka#128) fixes. Shared-register switches (248, 274-279, 280, 326) write via read-modify-write so toggling one bit no longer clears the others.

Description
Fixes the scaling of the Battery Current sensor (register 191) for single-phase
hybrid inverters. Fixes #127.
The sensor was applying a
multiply: 0.01filter, but register 191 reportsbattery current with a resolution of 0.1 A per LSB, so the reported current was
10x lower than the actual value.
As shown in #127, comparing battery current from inverter screen vs the inverter's
Modbus data:
Battery Power agreed perfectly between the two, but Battery Current
was exactly 10x too low. Since power was correct, only the current scale factor
was wrong. With
multiply: 0.1the current matches the BMS reading and isconsistent with Power = Voltage × Current.
Changes relate to
Summary by Sourcery
Bug Fixes: