I was wondering if anyone had seen any work or approach to a Home Assistant integration? I can’t seem to find any info on possible APIs. It would provide perfect inputs to the new HA Energy feature.
Thanks, Matt
Client is working on all the API endpoints that would be needed to integrate into HA. Need to sort out the WebToken refresh/fetch process before I can sign off on this side (I’m currently manually extracting this from the web-portal).
While I have all the basic data for the readings API (this is the main API that fetches time series data on energy usage etc) there looks to be many different types of devices (some of which I don’t have) and many have additional information or a slightly different data schema. It would help greatly if I could get the results of one of these API requests so I can determine the differences.
You will need to be partially familiar with Chrome/Firefox Developer Tools Console.
Open the developer tools console and select the Network tab
Click on the “Live View” in the Combined Energy portal
Client code is now at a beta level with all features required for integration complete (including Auth).
I’d still expect the odd bug as this is reverse-engineered without any documentation or description of the API’s behaviour beyond what can be observed and an element of intuition.
Update
Have a working Home Assistant component.
Currently only generating an entity for connection status, and am working my way through other devices (inverters/water heaters etc) to provide the full energy monitoring for the setup.
Will likely start with a simple amount of information in the first PR to homeassistant core before extending the component to support more devices. Will require a lot of testing as I still find the API returns odd responses on occasion.
I am aiming for direct integration into Home Assistant.
Work is nearing completion of the HA integration, providing both energy readings along with instantaneous power readings, hot water levels and temperature. The current code meets all requirements for Silver quality as well as meeting almost all Gold and Platinum requirements.
Will publish a link to my clone branch with the latest code once I fix some outstanding niggles.
@timsavage not sure if you got this past review, but I’ve been watching and hoping to see it integrated. Would you consider using HACS to have it incorporated as a custom component vs into core?