wills106 / homeassistant-solax-modbus

SolaX Power Modbus custom_component for Home Assistant (Supports some Ginlong Solis, Growatt, Sofar Solar, TIGO TSI & Qcells Q.Volt Hyb)
281 stars 85 forks source link

[Bug]: wrong negative values on "SolaX CT Power" entity #914

Open jika9876 opened 1 month ago

jika9876 commented 1 month ago

Describe the bug

SolaX CT Power negative values shows below 65535. If I add "unit = REGISTER_S16," to right place of "CT Power" entitiy in file "/homeassistant/custom_components/solax_modbus/plugin_solax.py" it shows values correctly. But I thing I must do it every time, when update integration.

Integration Version

2024.05.7

Homeassistant core version

2024.5.5

Inverter brand

SolaX Power

Plugin used

plugin_solax.py

Serial prefix

XB4036

Inverter firmware versions

ARM 0.28 and DSP 0.2

Connection Method

SolaX Pocket WiFi 3.0

Dongle firmware

3.015.02

Detailed Error Log

No response

Additional context

No response