GithubHelp home page GithubHelp logo

Comments (10)

CJNE avatar CJNE commented on June 13, 2024 1

Thanks for this, it's probably mixed up, will take a look!

from ha-myenergi.

markruys avatar markruys commented on June 13, 2024 1

Naming here is confusing/incorrect. The myenergy API labels all non-boosted charge as diversion. It isn't necessarily green and could be very well be imported from the grid.

But I also observed that energy_green isn't computed correctly. Looking at the source I think it doesn't account for local time zone (the myenergy API is in UTC), and because it uses hourly resolution which isn't accurate to get today's data.

from ha-myenergi.

G6EJD avatar G6EJD commented on June 13, 2024

I’ve just checked mine and the green value is tracking / equivalent to the Eddi readings, so definitely a problem.

from ha-myenergi.

albenex avatar albenex commented on June 13, 2024

too here

from ha-myenergi.

apbarratt avatar apbarratt commented on June 13, 2024

This is a problem for me too. The only MyEnergi Kit I have is the Zappi2 and the hub that came with it. My Energy dashboard only shows the car charge usage as "Green Energy today".
When this is fixed, it would be helpful to understand how the fix is done here so we can prepare for it in such a way that we don't lose our existing data :)
Let me know if there's anything I can share on my side if you need data/testing or point me to the relevant code if I find myself with a bit of free time that you don't have right now :)

from ha-myenergi.

apbarratt avatar apbarratt commented on June 13, 2024

Screenshot 2022-07-20 at 15 21 03

from ha-myenergi.

markruys avatar markruys commented on June 13, 2024

"Green Energy today" (energy_green) is computed from h1d + h2d + h3d, which is supposed the diversion charge (hence the 'd'). It is green in the sense it's used for charging instead of being exported to the grid.
"Energy used today" (energy_total) is computed from h1b + h2b + h3b, which is boosted charge (hence the 'b').

I think you need to add these two values to obtain the actual energy charged. It's not swapped, but the naming is really confusing.

from ha-myenergi.

Ulrar avatar Ulrar commented on June 13, 2024

I have no generation so nothing is getting diverted, it's 100% imported energy

from ha-myenergi.

G6EJD avatar G6EJD commented on June 13, 2024

The idea of GitHub is also to offer a solution to the issues found by analysing the code and finding an error, then correcting that error through revised code, then if the author agrees, they incorporate the change. All I see recently is criticism for all the hard work that Johan put into this integration without which we’d have nothing.

from ha-myenergi.

markruys avatar markruys commented on June 13, 2024

Lol, I am working on a PR. But first we need to understand the problem. I might be wrong after all.

from ha-myenergi.

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.