Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Battery Capacity is "0.00kWh" #236

Open
4 tasks done
mathiasolofsson87 opened this issue Jan 16, 2024 · 10 comments
Open
4 tasks done

Battery Capacity is "0.00kWh" #236

mathiasolofsson87 opened this issue Jan 16, 2024 · 10 comments

Comments

@mathiasolofsson87
Copy link

Before you create an issue, make sure to update to the current version of modbus_sungrow.yaml

Describe the bug:

Value for battery capacity is not existing in HA(battery_capacity).
Screenshot 2024-01-16 at 14 33 19

In my Sungrow Plant Configuration on the iSolarapp the battery capacity is shown as 9.6kWh.

I have a SH6.0RT-V112 inverter with a 9.6kWh sungrow battery.

Your Sungrow inverter:

  • Model: [e.g. SH-10.RT v112]

  • The inverter is connected via (mark one)

    • LAN (internal port)
    • [] WiNet-S (LAN)
    • [] WiNet-S (WLAN)
  • Are you using a Modbus Proxy (mark one)

    • [] yes
    • [] no
    • I don't know what that is

Home Assistant version:

  • Version: [e.g. 2024.1.3]

modbus_sungrow.yaml:

  • Version/ time stamp : # last update: 2023-12-31
  • I ensured to use the most recent version

** Inverter Firmware Status:**

  • I made sure that the newest firmware is installed via the installers account
@liquidblack
Copy link

liquidblack commented Jan 17, 2024

Almost identical for me with a SH10RT v112. Fully patched. What is the register that the capacity is read from?

@liquidblack
Copy link

Reference to #184 (comment) I found and tested that the capacity can be found in input register 13038 - the following works after a restart of home assistant

        - name: Battery capacity
        unique_id: sg_battery_capacity
        slave: !secret sungrow_modbus_slave
        address: 13038 
        input_type: input 
        data_type: uint16
        unit_of_measurement: kWh
        device_class: energy
        scale: 0.1
        scan_interval: 10

I've never made a PR before but would love to contribute if possible :)

@mathiasolofsson
Copy link

Unfortunately 13038 was not the adress for my battery_capacity on my inverter.

Also my battery_capacity info in the modbus_sungrow.yaml has input_type: "holding", not "input"

@mastameista
Copy link
Contributor

@mathiasolofsson, @liquidblack you can set the capacity in iSolarCloud. There are two settings and under plant configuration is not enough. you have to set it in advanced settings too. For this you nid an installer account on your plant.
HowTo: #88 (comment)

@btota
Copy link

btota commented Jan 20, 2024

@liquidblack works perfect with SH10RT-V11.2, thx!
@ll with setting up on ISC, I had an issue, which had an impact on my max_charge/discharge_power, I wasn´t able to charge/discharge more than 5 kW from battery. So I had to reset back to NULL on ISC. Also the work of @alex&@alan https://github.com/AlexanderLanin/homeassistant-sungrow showed me that capacity is working with HA.
@mkaiser @liquidblack PR would be great!

@liquidblack
Copy link

@mathiasolofsson, @liquidblack you can set the capacity in iSolarCloud. There are two settings and under plant configuration is not enough. you have to set it in advanced settings too. For this you nid an installer account on your plant. HowTo: #88 (comment)

Thanks @mathiasolofsson - it was a bit of dance to get the account set up - for anyone else reading this I needed to added a separate account, create the account, remove the share, re-add the share and then it showed up. I'll do some testing to see if the information shows up on the battery.

My open question then becomes - which value should be used if the system "knows" that it's a 9.6kWh battery but I have to set it in another place (to whatever I like) - shouldn't the inbuilt value be the one that's used?

@mastameista
Copy link
Contributor

@liquidblack, sry don't know. The deteced value is under "plant configuration" which might not be available over modbus? or do you own a SH10RT-V112 and get this value by reading input register 13038?

@gsteger81
Copy link

gsteger81 commented Jun 18, 2024

Hello,

I had the same issue, Battery capacity showed 0 in Dashboard. Setting the right Value in iSolarcloud with installer account like @mastameista suggested worked.

@mathiasolofsson, @liquidblack you can set the capacity in iSolarCloud. There are two settings and under plant configuration is not enough. you have to set it in advanced settings too. For this you nid an installer account on your plant. HowTo: #88 (comment)

Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Sep 29, 2024
@purcell-lab
Copy link
Contributor

@RafAustralia has some alternative registers to try for battery capacity at #354

@github-actions github-actions bot removed the stale label Oct 6, 2024
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

No branches or pull requests

7 participants