I wanted to give an update on the open API we’re working on & how we plan to enable integrations to Home Assistant or other similar platforms. A few of you recently gave your feedback on this and that was quite useful in getting this far! So I would love to hear any further thoughts on this before we finalize the feature.
Here’s how we plan to make this feature work:
Adding API Integrations
You will be able to enable the “API Integration” feature like you add any other device. You will need to have a working Smart Meter with half hourly data connected.
Initially, we will be opening up only the /equivents endpoint which you can query to get historic & current equivent data. Let us know what other endpoints & data you would find useful in creating your automations!
This could be used for a lot of different automations (like Home Assistant). What it does is enable you to receive an HTTP call based on certain triggers.
The initial triggers we’re adding are event started & event ended (let me know what else you’d like to see!)
You would need to enter a URL that you’d like us to call (we will be making a POST call) when the selected trigger happens. You can also optionally provide a payload. There’s also a few custom variables that you can include in the URL or the payload if you’d like to receive some additional data.
This is great, exactly what I’m looking for and the Webhook will allow it to be used immediately in Home Assistant before the creation of a custom integration. For my personal use case I want to be able to create an automation so that when an Equivent starts, my Tado will temporarily turn down all zones in the house causing the electricity consumption of the Air Source Heat Pump to drop for the duration of the Equivent. The Tado side of the equation is already sorted. This (as described above) will immediately enable me to automate that from the Equiwatt side. Looking forward to see the release of this!
In the longer term I would definitely like to see a Python library for the API, followed by a custom integration, eventually progressing to be a standard HA integration. IMHO that will also help to attract new users to Equiwatt. Generally that is community led though, I wouldn’t expect you to go any further than the python library (as it tends to get used by multiple platforms) and even that is often community developed.
Just wanted to feedback how well this is working for me. The webhook is currently being consumed by Home Assistant which, during each Equivent drops the temperature in all rooms down to 5 degrees on the Tado system. The Tado is integrated with the air source heat pump which turns off because there is no demand. As a result every time there is an Equivent the air source heat pump turns off alongside the Kasa plugs, drastically increasing the savings! That’s the single biggest change to our consumption that we can make in the house but does open the door for a few other savings driven by Home Assistant now being Equivent aware.
In the background I’ve also started to write a python library that a Home Assistant custom integration could consume but I’ve got a bit more work to do on the data model and a lot more python knowledge to acquire to finish it off.