Giter Club home page Giter Club logo

Comments (4)

sixtybi avatar sixtybi commented on August 10, 2024

Hi, have you figured this out already? I just faced the same issues here. Not very clear how to fetch more data. I only have current power and generated total.
Please let me know how to proceed with this. Thanks!

from goodwe-sems-home-assistant.

TimSoethout avatar TimSoethout commented on August 10, 2024

It seems the template syntax has changed, see https://www.home-assistant.io/integrations/template . Although the old syntax does still work for now.

It should become something like this (untested):

template:
  - sensor:
      - name: "PV energy day"
        unit_of_measurement: "kWh"
        state: '{{ states.sensor.inverter_$NAME.attributes.eday }}'

I agree that in the future these values should be added as separate sensors.

from goodwe-sems-home-assistant.

patrickmoll83 avatar patrickmoll83 commented on August 10, 2024

I have the same issue, can someone help me?

from goodwe-sems-home-assistant.

f00f avatar f00f commented on August 10, 2024

For me, this worked:

template:
  unique_id: pv_gw10k_et
  sensor:
    - name: "PV Energy day"
      unique_id: pv_gw10k_et.pv_energy_day
      device_class: energy
      state: '{{ states.sensor.inverter_gw10k_et.attributes.eday }}'
      state_class: total
      unit_of_measurement: kWh
    - name: "Battery SoC"
      unique_id: pv_gw10k_et.pv_soc
      state: '{{ states.sensor.inverter_gw10k_et.attributes.soc }}'
      state_class: measurement
      unit_of_measurement: '%'
      icon: mdi:battery-20
    - name: "Battery SoH"
      unique_id: pv_gw10k_et.pv_soh
      state: '{{ states.sensor.inverter_gw10k_et.attributes.soh }}'
      state_class: measurement
      unit_of_measurement: '%'
      icon: mdi:battery-check-outline

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.