Now we have the batteries networked & internet connectivity in the Hog, the data is posted to EcoFlow's cloud service which enables the EcoFlow Battery App to present the data to all with access.
Any shedder wishing to remotely check the battery state can install the EcoFlow app & contact me (providing their email details) for battery data access.
However if you want historic data, then the EcoFlow app doesn't cut it, but we can scrape the data from the EcoFlow API, this isn't a public API nor is it documented, but there are posts discussing this on a number of home automation forums, the URL is as follows:
https://iot1.ecoflow.com/api/v1/devices/queryDeviceData?sn=<MySerialNumbe>
ThE API requires an API key & secret, which I've requested from email:support@ecoflow.com
Once I have access to the API above, then I'll scrape the data from a service running on the shed Raspberry Pi, and post the data to grafana cloud as graphite metrics, a relatively trivial bit of python will do the job of scraping & posting.
I've already monkeyed up a dashboard Battery Status, which will show us 2 weeks worth of charging & usage data. You'll need a Grafana 'free forever plan' account to access the dashboard (or the well drilling dashboard) register here, no credit card required...
Currently the dashboard data is artificially generated, once I get the API keys I'll cut it over so it's the real deal.
The dashboard now has live battery data, from about 9pm this evening.
It uses a different approach than initially planned, as it turns out that Ecoflow have an MQTT broker to expose IoT data.
This isn’t a documented interface, however there's an example of its use here https://github.com/berezhinskiy/ecoflow_exporter which was a useful starting point.
There's a great deal more data available via the MQTT topic compared to the REST interface, though I'll just stick to the basics for now.
The dashboard is now also publicly available, so you can see it without a Grafana account @ https://peterpiper.grafana.net/public-dashboards/65f4e52f597c4cc28a2d8c37573538cc?orgId=1