Yes, the core card does give correct results for energy. If you are seeing something odd then there is probably an issue with the way you have set up the Energy Dashboard.
This is not good advice and the reason your values don’t add up. It’s similar to saying something is 10km away and now you replace km with km/h. You can’t do this — not if you want it to be correct. That was what Tom was trying to point out to you.
My calculated values are correct, 100% certain since I have an alternative monitoring system.
For me there is no harm in changing this value since it is a representation of the calculated values. In my case the used and produced energy for a day.
At midnight the values are reset and during the day the values go up.
Again, for my purpose this is perfect. If you don’t know how to calculate energy yes then you can get maybe some strange results.
Just for clarity sake. I don’t have any intention of supporting or adding an option for kWh. If the builtin cards don’t work right or the integration being used doesn’t work right then issues should probably be opened there. That said, if anyone wants to hack on the “compiled” javascript or fork the source, that’s totally fine by me, enjoy yourselves But obviously I can’t support that.
@ulic This is exactly what i was looking for. The instant power production/consumption
But i can not make it work… i install the repository via HACS latest version, i see it has created the power-flow-card directory and files in www/community , the resource is added to the Dashboards, but i can not find the actual card to add it to the dashboard.
@Momo Thanks! I’m glad you like it. The card currently only supports manual configuration. Meaning there is no GUI editor. So you could select the “Manual” card and then fill out the configuration from there.
In the next release I’ll make it so that you can pick it from the list of cards, but it will still be a manual configuration. At some point I may get around to a GUI configuration, but no telling when that might happen.