Giter VIP home page Giter VIP logo

Comments (8)

mkaiser avatar mkaiser commented on June 4, 2024

will release soon. Here for the impatient...

just copy the content of the file at the end of your modbus_sungrow.yaml

This creates two new input sliders.

open issue: After writing a new min / max value, the current min / max SoC values are only updated in the next modbus update cycle (aka scan interval), which is currently set to 60seconds

*edit: deleted attachment, see below...

from sungrow-shx-inverter-modbus-home-assistant.

lindehoff avatar lindehoff commented on June 4, 2024

Hi,
Shouldn't the holding register address for max Soc be 13058 and 13059 for min Soc?
13057 seams to be Battery capacity.

from sungrow-shx-inverter-modbus-home-assistant.

mkaiser avatar mkaiser commented on June 4, 2024

that a very nice modbus "feature". I am not sure if it is the home assistant modbus integration or the modbus spec.

Every Register in Sungrows specification needs to be decremented by one.

This is the same for the iobroker plugin

from sungrow-shx-inverter-modbus-home-assistant.

lindehoff avatar lindehoff commented on June 4, 2024

Ok, nice "feature" I did not know that πŸ™‡

from sungrow-shx-inverter-modbus-home-assistant.

lindehoff avatar lindehoff commented on June 4, 2024

We could also add sensors for these, like so

      - name: Battery Min. SOC
        slave: !secret sungrow_modbus_slave
        address: 13058
        input_type: holding
        count: 1
        scan_interval: 600
        data_type: uint16
        swap: word
        precision: 0
        unit_of_measurement: "%"
        state_class: measurement
        scale: 0.1

      - name: Battery Max. SOC
        slave: !secret sungrow_modbus_slave
        address: 13057
        input_type: holding
        count: 1
        scan_interval: 600
        data_type: uint16
        swap: word
        precision: 0
        unit_of_measurement: "%"
        state_class: measurement
        scale: 0.1

right?

from sungrow-shx-inverter-modbus-home-assistant.

mkaiser avatar mkaiser commented on June 4, 2024

oh, I kind of already have this lines in my version, but left it out copying to the file above.... I hope I did not cause you much debugging

attached is my current state, which includes the holding registers you meantioned.
I will work on your other requests for setting the EMS. If that worls I will do a proper commit with all modifications merged

modbus_sungrow.yaml.txt

from sungrow-shx-inverter-modbus-home-assistant.

lindehoff avatar lindehoff commented on June 4, 2024

Great, thanks a lot. πŸ‘

from sungrow-shx-inverter-modbus-home-assistant.

mkaiser avatar mkaiser commented on June 4, 2024

committed here: https://github.com/mkaiser/Sungrow-SHx-Inverter-Modbus-Home-Assistant/tree/testing

will push in to main branch, if someone can confirm it to be working.

Please leave feedback in this issue: #11

from sungrow-shx-inverter-modbus-home-assistant.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.