mkaiser / Sungrow-SHx-Inverter-Modbus-Home-Assistant

Sungrow SH Integration for Home Assistant for SH3K6, SH4K6, SH5K-20, SH5K-V13, SH3K6-30, SH4K6-30, SH5K-30, SH3.RS, SH3.6RS, SH4.0RS, SH5.0RS, SH6.0RS, SH5.0RT, SH6.0RT, SH8.0RT, SH10RT, SH5.0RT-20, SH6.0RT-20, SH8.0RT-20, SH10RT-20, SH5.0RT-V112, SH6.0RT-V112, SH8.0RT-V112, SH10RT-V112, SH5.0RT-V122, SH6.0RT-V122, SH8.0RT-V122, SH10RT-V122, SH4.6R
304 stars 79 forks source link

Battery Capacity wrong #267

Closed tobaco closed 3 months ago

tobaco commented 3 months ago

Describe the bug:

My battery capacity shows a wrong value. It shows 0.0 instead of 9.6

Your Sungrow inverter:

Home Assistant version:

modbus_sungrow.yaml:

Inverter Firmware Status:

Additional context I tried several modbus addresses mentioned in other issues, but nothing showed the correct value (eg. 655).

Here's my current setup (including my tried addresses):

      - name: Battery capacity
        unique_id: sg_battery_capacity
        device_address: !secret sungrow_modbus_slave
        address: 33048 # changed from 33048 to 13038 to 13039 to 33049 to 13038 to 33048 # reg 33049
        input_type: holding # changed from holding to input to holding
        data_type: uint16
        precision: 1
        unit_of_measurement: kWh
        device_class: energy_storage
        scale: 0.01
        scan_interval: 600
mkaiser commented 3 months ago

can you check this?

https://github.com/mkaiser/Sungrow-SHx-Inverter-Modbus-Home-Assistant/issues/88#issuecomment-1646586986

tobaco commented 3 months ago

I'll try. It's something my solateur has to do. And getting him to react and to do this, will be a challenge. Thanks for the link!

mkaiser commented 3 months ago

you can also setup a new isolarcloud account with another email adress and register yourself as "installer". Sungrow does not check this (we all did this :) )

Then you can add the plant to you as installer and have complete access to your hardware

tobaco commented 3 months ago

Oh, I didn't knew this. Is my original installer then still in control or will he be out of the system. I don't want to jeopardize my warranty. Thanks!

tobaco commented 3 months ago

can you check this?

#88 (comment)

My installer answered me in a record time (😳) and told me, he has corrected the value and also did a firmware update. But the sensor still shows "0,0". I also tried the other modbus addresses, but it only changed to "655".

Is it a big problem if the sensor has an incorrect value? So does that have any effect?

Could I just set it via the developer tools or define it statically somehow? It shouldn't actually change, should it?

Louisbertelsmann commented 3 months ago

The sensor shouldn't change, except when you expand or shrink the battery, e.g. adding or removing a module. If you aren't using the sensor, I don't see why you would want to change it. If you are using it, like for predicting the amount of charge left after a night, you can create a helper to set that capacity.

argually commented 3 months ago

you can also setup a new isolarcloud account with another email adress and register yourself as "installer". Sungrow does not check this (we all did this :) )

Then you can add the plant to you as installer and have complete access to your hardware

OK, New Installer Account is created, but how can one add the inverter to the new installer account? If I am trying to add it via it´s serial number that does not work.

Gnarfoz commented 3 months ago

You need to share it from the existing customer account to the new installer account:

image

argually commented 3 months ago

Thanks a lot!