@Murdoch do you know if it’s possible to get the current enabled status of the charger? The status endpoint just returns the following for me:
{
"hubStatus": "200",
"miniStatus": "200"
}
@Murdoch do you know if it’s possible to get the current enabled status of the charger? The status endpoint just returns the following for me:
{
"hubStatus": "200",
"miniStatus": "200"
}
@tom_w - I found a Pypi library which has some basic control of the charger and I’ve since made my own version which adds functions for getting the status (off peak on|off, solar charging on|off, etc), and overwriting these with new options.
I have no idea how to make an integration in HA, so I’ll take a peek at yours and hopefully learn something
@tom_w To get the current enabled/disabled status, call List Mini in the Postman collection
https://eoappi.eocharging.com//api/mini/list
Great, thank you!
Hi, thank you for your hard work. I have managed to connect my charger and can plot the cumulative charge time and cumulative watts. For the life of me I can seem to get any calculation to get the instaneous wattage (i.e change in seconds divided by change in wattage). I don’t suppose you have a good way of calculating this or being able to pull that info directly into Home Assistant?
Do you mean you want the power usage in watts? I’m curious what that’s useful for. You’d be able to do it with a derivative helper I guess?
Sorry for delayed response! As in I’d like the exact kilowatts the charger is using per second as shown on the EO app. I can sign in and see the exact wattage being drawn at that second (generally 6.9kw) I’d like this data so I can build up my own consumption figures hourly or to the minutes if that makes sense? And have my line charts all on the same chart of wattage drawn by heaters, fridge, car etc. If you have an example way I can do this from the cumulative data you have already extracted that would be great!
I see. The energy dashboard, which shows that sort of information, relies on cumulative sensors. To work out the average watts drawn over a period of time, you simply take the values at the beginning and end of a period and then divide them by that period’s amount of time… The derivative helper should allow you to take cumulative data and see that. If not, it should be easy enough to get the historical data and do it manually in the python, though I don’t know how to access the history information off the top of my head.
Hi, thanks for that. I’ve tried the utility meter (Utility Meter - Home Assistant) but this still gives the output in Wh.
I also tried the derivative helper which doesnt seem to work due to the cumulative nature of the output from your plugin - i.e it gives positive values even when it isn’t charging.
I also tried the derivative helper on the utility meter senor from above but this gives positive and negative values with a unit of Wh/s… Tearing my hair out as I can’t quite get it to work - do you know of any other things I can try?
Thanks again for your hard work and help!
Hi. Not sure what the utility meter thing is - i meant the energy dashboard.
I don’t understand how the derivative of a flat value can be positive - it’s the rate of change. In theory the python code can have a new sensor added to do the derivative, but since the derivative helper is already there, I don’t quite get why it would be needed.
Yeah I don’t understand either. So for example the EO Mini Pro 2 consumption from 4.30am to 9.30am was level at 27,900Wh. But for some reason the derivative for the exact same period was 1,326 Wh/s! No idea what’s going on all I did in the derivative setting was select the EO Mini Pro 2 consumption as input sensor, left time window as default and selected hours as time unit. Any thoughts or do I just need to give up…
Ok I think the issue is to do with how infrequent the data updates once the charging has finished as seen by some others in this post. I now need to do some sort of manual refresh every 30 seconds or so I think - does that make sense?
Hi everyone, just came across these positive developments.
I am not familiar with Postman at all and have just pulled down the Github. Will there be, or is it even possible, to allow the EO to pass the status and allow for toggling of the power on/off and the times for off peak etc into HA?
Hi, How did you get on finding out how to merge this into Home Assistant? I am totally new and have no idea where to start to breing this info and usability into HA
How do we get this into HA?
I’ve got the same model, and wanting to get it into HA to control.
Awesome work Tom.
I’ve got the same charger and was really hoping for an integration so thanks.
If I can be of any assistance in testing etc. please reach out. I’m a developer, but not in Python, but can run things through and provide logs etc. as required.
Hoping you and @Murdoch might be able to combine knowledge and get the pause charging functionality in there.
There are instructions for installing the integration in the repository. Via HACS you can also add it as a custom repository, which is easier.
The pause functionality is available as a switch in the integration - it’s the same as pressing the lock button in the app. HTH.
Thanks @tom_w got it in and did wonder about the lock functionality if it did the same thing.
I’ve put a bug report in with an error that HA is throwing with the integration.
wondering also if it is possible to change the units for the time, seems to be an issue reporting it in seconds and the value that is then stated by HA and the history graph.
I’ve imported this into Postman, and can get a token, but any requests after that just get denied, what am I missing?
This looks to be a really useful integration, but I cannot find it to add through HACS. Has it been removed or am I just making a simple error?!