Skip to content

fix: correct scale errors in deye_hybrid.yaml (Battery Current + 9 power sensors)#997

Closed
polamoros wants to merge 2 commits intodavidrapan:mainfrom
polamoros:fix/deye-hybrid-battery-current-scale
Closed

fix: correct scale errors in deye_hybrid.yaml (Battery Current + 9 power sensors)#997
polamoros wants to merge 2 commits intodavidrapan:mainfrom
polamoros:fix/deye-hybrid-battery-current-scale

Conversation

@polamoros
Copy link

Summary

Two categories of scale errors in deye_hybrid.yaml for the DEYE single-phase hybrid inverter (SG0*LP1), verified on a DEYE 10 kW unit.


Fix 1 β€” Battery Current (0x00BF): scale: 0.01 β†’ scale: 0.1

Register 0x00BF uses 0.1 A/bit resolution, not 0.01 A/bit. The wrong scale caused Battery Current to display 10Γ— too low.

Physics proof:

Sensor Register Value
Battery Power 0x00BE βˆ’1,016 W (no scale, correct)
Battery Voltage 0x00B7 53 V (scale 0.01, correct)
Battery Current 0x00BF βˆ’18.90 A (scale 0.1, fixed)

Expected: P / V = βˆ’1016 / 53 = βˆ’19.2 A βœ“ (matches within 1.5%)
Before fix: βˆ’1.89 A (10Γ— too low)


Fix 2 β€” Power sensors (0x00A7–0x00B2): scale: [1, 10] β†’ scale: 10

Nine sensors used scale: [1, 10], which resolves to scale=1 for single-phase inverters (CONF_MOD=0), causing all readings to be 10Γ— too low.

Confirmed against DEYE cloud (SolarmanPV) live values:

Sensor Register Before After DEYE cloud
Grid Power 0x00A9 910 W βœ“ 910 W 910 W
Load Power 0x00B2 85 W βœ— 850 W 850 W
External CT1 Power 0x00AA 91 W βœ— 910 W 910 W

Sensors fixed:

  • Grid L1 Power (0x00A7)
  • Grid L2 Power (0x00A8)
  • Grid Power (0x00A9)
  • External CT1 Power (0x00AA)
  • External CT2 Power (0x00AB)
  • External Power (0x00AC)
  • Load L1 Power (0x00B0)
  • Load L2 Power (0x00B1)
  • Load Power (0x00B2)

πŸ€– Generated with Claude Code

Register 0x00BF (Battery Current) uses 0.1 A/bit resolution per the
Deye Modbus protocol, not 0.01 A/bit. The incorrect scale caused
Battery Current to display 10Γ— too low.

Physics proof from observed sensor values on a DEYE 10 kW single-phase
hybrid inverter:
  Battery Power   = -723 W  (register 0x00BE, no scale, correct)
  Battery Voltage =   53 V  (register 0x00B7, scale 0.01, correct)
  Expected I = P / V = -723 / 53 = -13.6 A
  Displayed I (scale 0.01) = -1.35 A  ← 10Γ— too low

Changing scale from 0.01 to 0.1 gives -13.5 A, consistent with the
independently measured Battery Power and Voltage readings.

PV current sensors (PV1–PV3, scale 0.1) were verified correct:
  PV1: 326 V Γ— 1.40 A = 456 W β‰ˆ 445 W (measured) βœ“
  PV2: 277 V Γ— 1.40 A = 388 W β‰ˆ 391 W (measured) βœ“
Nine power sensors used `scale: [1, 10]` which resolves to scale=1
for single-phase inverters (CONF_MOD=0), causing all readings to be
10Γ— too low.

Confirmed against DEYE cloud (SolarmanPV) live values on a DEYE 10 kW
single-phase hybrid inverter (SG0*LP1):
  Grid Power  (0x00A9): HA 910 W == DEYE cloud 910 W  βœ“
  Load Power  (0x00B2): HA  85 W  β†’ DEYE cloud 850 W  (10Γ— off)

Sensors fixed (scale: [1, 10] β†’ scale: 10):
  - Grid L1 Power       (0x00A7)
  - Grid L2 Power       (0x00A8)
  - Grid Power          (0x00A9)
  - External CT1 Power  (0x00AA)
  - External CT2 Power  (0x00AB)
  - External Power      (0x00AC)
  - Load L1 Power       (0x00B0)
  - Load L2 Power       (0x00B1)
  - Load Power          (0x00B2)
@polamoros polamoros force-pushed the fix/deye-hybrid-battery-current-scale branch from 0e02631 to 9072eaf Compare March 5, 2026 11:44
@polamoros polamoros closed this Mar 5, 2026
@polamoros polamoros deleted the fix/deye-hybrid-battery-current-scale branch March 5, 2026 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant