Giter Club home page Giter Club logo

Comments (4)

TimSoethout avatar TimSoethout commented on August 10, 2024

Hey, unfortunately I don't have a battery, so I'm not sure which fields to use for this?

Maybe you can try to look at the json?
Log in to: https://www.semsportal.com/
Open de develop tools en check the json of https://www.semsportal.com/GopsApi/Post?s=v1/PowerStation/GetMonitorDetailByPowerstationId in the network tab.

from goodwe-sems-home-assistant.

HeinTheTerrible avatar HeinTheTerrible commented on August 10, 2024

Hi, seems like Goodwe has blocked access to the API sites. Most of the other links I found didn't work either.

I did try a couple of different attributes and got the battery SOC to show!

  pv_soc:
    value_template: '{{ states.sensor.sems_portal.attributes.soc }}'
    unit_of_measurement: '%'
    friendly_name: "Battery power"

Currently, the "power output" sensor shows the combined output of the PV panels and battery and NOT the PV output only.

  pv_outputpower:
    value_template: '{{ states.sensor.sems_portal.attributes.outputpower }}'
    unit_of_measurement: 'W'
    friendly_name: "PV Power output"

As you mentioned before you don't have a battery to test and I'm a complete noob with this stuff. Thought I just share my findings.

Cheers

from goodwe-sems-home-assistant.

TimSoethout avatar TimSoethout commented on August 10, 2024

Thanks. I added them as examples to the readme. :)

from goodwe-sems-home-assistant.

rastislavpapp avatar rastislavpapp commented on August 10, 2024

Hi, the battery power value is located in the /GetMonitorDetailByPowerstationId response at the jsonResponseFinal["data"]["inverter"][0] level as battery_power (in Watts):

{
  ...
  "data": {
    ...
    "inverter": [
      {
        "invert_full": {
          ...
        },
        ...
        "battery_power": 20.17,
        ...
      }
    ]
  }
}

so adding:

self._attributes["Pbattery"] = jsonResponseFinal["data"]["inverter"][0]["battery_power"]

at the end of sensor.py would solve this.

from goodwe-sems-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.