Giter Site home page Giter Site logo

Comments (7)

fsaris avatar fsaris commented on July 19, 2024 2

I had the same challenge and solved it by using an integration sensor:

  - platform: integration
    source: sensor.zonneplan_p1_electricity_production
    name: electricity_production
    unit: kWh
    unit_prefix: k
    round: 2

This seems to do the trick as you can then select the electricity_production sensor.

@pim-simons This is indeed a valid work around. Didn't see at first that you used the integration component to calculate the kWh.

Tnx for this hint. Will add it to the readme so others can also use this until we got the real values from the API

from home-assistant-zonneplan-one.

robhuls avatar robhuls commented on July 19, 2024 1

This works for me too, thanks!

from home-assistant-zonneplan-one.

fsaris avatar fsaris commented on July 19, 2024

It has already the needed attributes see

You are using version 0.0.4?

For me it shows up in the energy entity selector
IMG_20210808_194132

from home-assistant-zonneplan-one.

robhuls avatar robhuls commented on July 19, 2024

Electricity consumption has the correct properties and is visible. However, electricity production is not visible (at least, if I understand correctly).

from home-assistant-zonneplan-one.

pim-simons avatar pim-simons commented on July 19, 2024

I had the same challenge and solved it by using an integration sensor:

  - platform: integration
    source: sensor.zonneplan_p1_electricity_production
    name: electricity_production
    unit: kWh
    unit_prefix: k
    round: 2

This seems to do the trick as you can then select the electricity_production sensor.

from home-assistant-zonneplan-one.

fsaris avatar fsaris commented on July 19, 2024

The yield total value holds the production of your solar panels.

_p1_electricity_production is a W value and not a kWh that is why it doesn't show up in the selector.

from home-assistant-zonneplan-one.

fsaris avatar fsaris commented on July 19, 2024

The energy dashboard only works with kWh values. And I don't think it's possible to calculate the W values to kWh as the first is a current value and the second a cumulative.

The P1 provides the kWh values in the official protocol but seems like Zonneplan doesn't expose these in there API response. Will reach out to them to see if they are available.

from home-assistant-zonneplan-one.

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.