Comments (10)
Thanks for this, it's probably mixed up, will take a look!
from ha-myenergi.
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.
I’ve just checked mine and the green value is tracking / equivalent to the Eddi readings, so definitely a problem.
from ha-myenergi.
too here
from ha-myenergi.
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.
from ha-myenergi.
"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.
I have no generation so nothing is getting diverted, it's 100% imported energy
from ha-myenergi.
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.
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)
- Add a sensor for Eddi currently active heater
- Is a hub required? HOT 1
- Platform myenergi does not generate unique IDs HOT 6
- Diverted power in watts to EDDI HOT 5
- Set charge power level of the Zappi HOT 5
- Boost Service HOT 15
- Firmware versions not updated in Device Info page HOT 7
- Support MODE request, enabling stopping Eddi (and other devices) HOT 3
- Integration setup aborts with “invalid handler specified” HOT 6
- Zappi status is always "Boosting" HOT 7
- "Green Energy Today" / "Grid Import": Trying to understand the values I get from my system HOT 4
- Add support for libbi HOT 45
- Charge mode selector not available any more ? HOT 6
- How to change API key in add-on? HOT 8
- Order of zappi charge mode vs eddi operating mode HOT 3
- Sample Documentation on how to change charge mode in Nod-Red HOT 2
- Be able to use myenergi CT's for solar panels/battery storage HOT 17
- Appear to have lost daily Export?
- Sensors to read boost / smart boost settings
- 0.0.24 has introduced duplicate entities HOT 30
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ha-myenergi.