We recently (and slightly begrudingly) had a smart meter installed: it's more or less a requirement if we want to receive payment for energy exported from our solar install (or, at least, it is if we want any kind of sensible rate per unit).
Unsurprisingly, the IHD that EDF supplied (a Geo Trio) was little more than e-waste (to be fair, they're not alone: research found that IHDs have little impact on people's energy usage habits) and soon found it's way to the electrical recycling bin (actually, really, I was quite good - the temptation to try and serial into it to mess around with the meter hub's Zigbee network really was quite strong).
I go a little bit further than most when it comes to monitoring our electrical usage, so with a smart meter now collecting and submitting readings periodically, I wanted to move to using these instead of those collected by my previous solution (an Own Intuition clamp meter).
Unfortunately, unlike some other suppliers, EDF doesn't appear to make readings available via API. In fact, despite the meter submitting readings every 20 minutes (UPDATE: apparently it doesn't submit them, it stores them locally and then the supplier retrieves the last 48hrs once a night), it can take days for details to appear in their "energy hub" web-portal (for example, whilst proof reading this on 2 Jul, the most recent hourly stats in EDF's hub are from 29 June!).
I find this.... disappointing, to say the least. The provider has gained the ability to effectively remotely disconnect us (even if by accident) and can't even provide the means to pull usage metrics in a timely manner? GTFO.
Thankfully, I remembered reading (somewhere) about an after-market IHD which had the ability to write usage metrics out to a MQTT broker - a quick search found the Hildebrand Glow IHD. This promised to give near real-time reading, much like those I already have via Owl Intuition.
This post details the process that I followed to
- Stand up a Mosquitto MQTT Broker for Glow to write into
- Configure Telegraf to subscribe to the MQTT topics and write into InfluxDB
- Create a Grafana dashboard to visualise the stats
- Have HomeAssistant also fetch the stats for use in automations
Because of strict rules on what can and can't be connected to a smart meter, it is necessary to create a (free) account before ordering the Glow. The account is easiest to create via the Bright App.