I’m working on retrieving battery data from production.json page of the Envoy.
Though I have some questions as I don’t have an Envoy with ACB or Encharge or the Encharge Smart Switch device.
I can pull the Battery data and display this in Home Assistant:
For most users without Batteries installed the production.json web page returns this at the end of the page:
...
"storage":[{"type":"acb","activeCount":0,"readingTime":0,"wNow":0,"whNow":0,"state":"idle"}]}
Though the one (and only one that I’ve seen) where batteries were installed the production.json returned this at the end:
...
"storage": [{"type": "acb","activeCount": 4,"readingTime": 1595203104,"wNow": -178,"whNow": 285,"state": "charging","percentFull": 6}
The difference between the two is the percentFull attribute.
I’m thinking rather than display the above data in Home Assistant for everyone, only display the battery data if the percentFull attribute is present, which would result in something like this in Home Assistant:
The questions I have for everyone is:
- Is
percentFullalways only shown for systems that have batteries installed? - For @ryans suggestion to display the status of the Encharge Smart Switch, would it make sense to display it as a separate entity in Home Assistant as this device can be installed without Batteries?

