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)
295 stars 88 forks source link

[Bug]: Growatt SPH 10000TL3 BH-UP wrong data #710

Open Hellraiser8 opened 6 months ago

Hellraiser8 commented 6 months ago

Describe the bug

installed and something is working but the data seems very odd. Looks like registers are read wrongly. See pic attached, esp if you compare Phase 1,2,3

Bildschirmfoto 2023-12-16 um 19 54 20

Integration Version

2024.01.8

Homeassistant core version

2023.11.3

Inverter brand

Growatt

Plugin used

plugin_growatt.py

Serial prefix

TPJ4CH

Connection Method

Waveshare Adapter

Detailed Error Log

No response

Additional context

No response

the-sim87 commented 6 months ago

I have the same issue with my Growatt SPH 6000TL3 BH-UP

wills106 commented 6 months ago

If you edit: "AC Power to Grid L1" "AC Power to Grid L2" "AC Power to Grid L3" "House Load L1" "House Load L2" "House Load L3"

Replacing unit = REGISTER_S32 with unit = REGISTER_U32

So https://github.com/wills106/homeassistant-solax-modbus/blob/e4c4f436780009eeb175134f7a19c6905293b68c/custom_components/solax_modbus/plugin_growatt.py#L2667-L2680

Becomes:

    GrowattModbusSensorEntityDescription(
        name = "AC Power to Grid L1",
        key = "ac_power_to_grid_l1",
        native_unit_of_measurement = UnitOfPower.WATT,
        device_class = SensorDeviceClass.POWER,
        state_class = SensorStateClass.MEASUREMENT,
        register = 1023,
        register_type = REG_INPUT,
        unit = REGISTER_U32,
        scale = 0.1,
        rounding = 1,
        allowedtypes = GEN | GEN2 | X3,
        icon = "mdi:home",
    ),

Do they return correct values?

the-sim87 commented 6 months ago

Hi!

No, still no correct values:

Bild_2024-02-15_161258357

MichaelNRW commented 5 months ago

Hi, the same issue with SPH 4000TL3 BH-UP

a9e78rauijasdf commented 4 months ago

I would like to see if I can replicate your problems - but at the moment I am unable to get data into the system. Would you mind sharing your setup parameters (modbus parameters, solax integration parameters) ?

the-sim87 commented 4 months ago

Hi! My setup: Raspberry-Pi with evcc and RS485 adapter running with these options: baudrate: 9600 and comset: "8N1" evcc is making a modbus-proxy, I am accessing with homeassistent-solax-modbus with TCP, no other options active, everything standard.

a9e78rauijasdf commented 4 months ago

Thank you for replying :-) Im not sure your default parameters/options are the same as mine - would it be possible to post a screenshot of all settings? Can you confirm using pin 4/5 (blue/blue-white) and RS485-3?

the-sim87 commented 4 months ago

Hi! RS485-3 is correct. I use Pin 1 (orange-white) to B and Pin 5 (blue-white) to A. EVCC settings is as here: meters:

modbusproxy:

homeassistant-solax-modus settings: image

sccssf commented 4 months ago

Same problem. Same modbusproxy Evcc

Integration Version

2024.03.7

Homeassistant core version

2024.3.1

Inverter brand

Growatt 50510

IMG_0598 IMG_0597

a9e78rauijasdf commented 4 months ago

Hi, I have just got it working. I dont see any weird values (yet?), sorry.

asiudoisjdfo commented 4 months ago

Hi, I have just got it working. I dont see any weird values (yet?), sorry.

Sorry, i stand corrected - I also have weird values for some entities:

image

There are a few other entities with errors as well.