Hi, I have an integration that was kindly made by tom_w for my EO Mini Pro 2 home car charger. This calculates cumulative Wh each day then resets to 0 the following day.
I would like to see this as instantenous wattage, i.e if the charger is on it would be pulling around 7kw and I’d like to see this in my HA setup. The issue is, if the car finishes charging, the integration doesn’t repeat it’s cumulative Wh. So when I use the derivative helper it often gives a false continuous over or underreading until the the sensor resets or I plug the charger back in.
For example if at 10pm the charger stops and cumulative charging is 10kwh, I would expect the derivative to be 0w after this. But because the integration doesn’t repeat 10kwh again after it finishes the derivative only calculates the derivative of the last 2 points, so say 9.5kwh and 10kwh and falsely giving a value of say 5kw when it should be 0.
I’ve tried a few things including using the Utility meter (same issue) but it doesn’t seem to work. I’ve also used the updater entity too but this doesn’t update the figure either.
I think I need something that can read the 10kwh value in, and if it doesn’t change by the integration it repeats that value every 30 seconds or 1minute? So that when the derivative looks at this new senor i will accurately report 0w when the charger stops. Hope this makes sense and someone is able to point me in the right direction!