UK "smart" energy meters

I use the PZEM-0046 V3 sensor with a D1 mini and get all the values but cannot get it to work with the Utility meter component, Would you mind sharing you Yaml?
Yes the PZEM just clamps around one of the tails to or from the meter it does not matter.

Actually I got my inspiration on these forums, if you search youā€™ll find a lot of topics, such as this one:

Yep thats correct mate. I must admit iā€™ve been blown away by their supoprt. I had some issues with my IHD and i emailed them they fixed it remotly and back in action.

The only thing i am noticing as iā€™ve been using this for a while now is that if you change electricity suppliers, the IHD seems to stop working. So i dont know if the meter drops all config when current supplier lets go of the meter and handover to new supplier?

So you have to email them to reset the IHD as you cant do it yourself since you have no direct access to admin it.

The whole smart meter thing in the UK is so imature and very poorly implemented, no supplier fully has the grasp of it and what they are doing with it. just my 2 cents worth. Hopfuly things will improve and become a bit more seemless!

Hey,

Is there anyone whoā€™s got Geo Trio from
https://www.geotogether.com/products-services/smarter-energy/
Smart Meeterr?
They seem to be pretty popular nowadays

Iā€™ve was trying to find official doc how to use their API but instead found and implementation of the integration for Open Hub

Its quality is questionable (it canā€™t even be started) but the idea is pretty clear:

Maybe someone with proper knowledge in Python multi-threading can convert it to the working integration for HA

3 Likes

I have this as well and it would be ace to get the info into HA. I like the mobile app but having it all together in one place is much better.

Okay iā€™ve managed to get the code ā€˜workingā€™ in that I can output the data to a json file. Can anyybody help is getting that data stored and in to Home Assistant?

You can create an integration by first setting up the development workflow and then running the command to start a new integration. It adds a barebone integration from where you can add your code. You can specify a config, services and provide entityā€™s states. Iā€™m doing the same for my meter on EDF energy. Share your code on Github please!

Hi.

Iā€™m interested in the glow device- though it all appears to be out of stock at present.

I wonder, do the manufacturers charge a monthly fee to access their API?

While nobody wants to pay another subscription, Iā€™d feel a little more comfortable that the company wonā€™t just stop supporting it two months in if theyā€™re receiving a revenue to cover their server expenses.

No, there are no monthly fees or costs at this time. I guess with anything that relies on a third party service there is a chance that could change but for me the 60ish quid was worth it to have the instant electricity usage. Iā€™ve been happy with the company so far though, they are responsive in their forums and via email.

Does the glow addon just provide current usage, or does it provide historical data too?

Having not written a home assistant addon before Iā€™m trying to use and understand that code base and was planning to try and use it as the basis for an attempt at an addon to work with the Geo Trio IHD.

I donā€™t know about the addon as Iā€™ve not used it. I use the mqtt connection they provide.

This gives a good overview of whatā€™s accessible via the mqtt connection:

Iā€™ve got a trio 2, and a basic python script to pull data from the API.
Just need to find some time and learn how to get that data into HA

2 Likes

Iā€™m in same position with trio 2 so will be interested as and when you get it working. Iā€™ll update once Iā€™ve had chance to try and figure it out.

Late to the party Iā€™m sure but just throwing this out there in case it hasnā€™t already been said, I recently had a Honeywell SMET2 meter fitted which came with Chameleonā€™s IHD6, my current energy supplier is Outfox the Market which Iā€™ve currently had no response to my queries around opening up access to the Chameleon Technology ā€œcloudā€ or creating some form of API themselves for me to access my data.

I saw someone mention Samsung Smart Things has an Integration for accessing the Smart Meter data for Bulb Energy customers. After looking at the setup document on Samsungā€™s website ( Set up Samsung SmartThings Energy Control | Samsung UK) this is geared specifically for the IHD3 and IHD6 so I tried my luck with the setup process and it seems to have worked?

My thought is that Samsung Smart things is dealing directly with the Chameleon API rather than a Bulb API to pull the data which means itā€™s not verifying that you are a Bulb customer. As it stands currently my energy data is being displayed in the app and as I say Iā€™m not a Bulb customer.

The current pitfall to this is the app displays that Iā€™m on the ā€œVari-fairā€ tariff so the kWh charges for both fuels are incorrect. The usage seems to be out of kilter but needs to dig into the settings as it may just be interpreting the data for the month rather than the day. I set this up late last night and was surprised to see data this morning so I may need to poke around in the settings on the IHD or in the app to correct the inconsistencies. Then go off and see if there is any way for me to link this into HomeAssistant as Iā€™ve not used the SmartThings integration.

Hope this has the same success for anyone else with this IHD.

2 Likes

Hi,

IIUC, and my experience of getting this working this evening (some caveats) supports. is that some SMETSv1 and any SMETSv2 can be used with the ā€œBright/Glowā€ API, for which there are apps for on Android and iOS.

So iā€™m with PurePlanet, and they fitted me with a GEO TRIO 2. Turns out I have the WiFi module, but i didnā€™t configure that for this to work.

the magic is all here:

I followed that guide, and I now have 30min updates in HA.
Glow will tell you that in order to get ā€œreal-timeā€ (as in relatively regular and by no-means deterministic which is what real-time actually means - argh) you will need the IHD with MQTT online backend.

at this point iā€™ve now got my smart meters in HA, and a bright app on my phone and I can see on my phone all past data. In HA i can only see data since activating the integration.

caveats are:

  1. update period - 30mins i think
  2. gas. HA Energy thingy expects gas meter to be in m3, which isnā€™t very helpful as you need to apply a formula to convert that into kWh taking into account environmental factors. The Bright/Glow api or rather the energy supplier or just something in the path does this conversion already into kWh but HA doesnā€™t expect this - probably HA needs to adapt.

Next I realised that I have the WiFi module, after reading that PurePlanet donā€™t provide this. Anyway, itā€™s there. itā€™s now connected to my wifi, and iā€™ve installed the ā€˜Geo Homeā€™ app.
thatā€™s where my journey tonight ends, I donā€™t know how to use the Geo stuff in HA.

Edit/update:

Now using:

Also Octoberā€™s release of home assistant now supports kWh gas meters, and this fork of glow API provides m3 meters, as well as tariff and costs trackers

6 Likes

How did you setup the geo trio2 in the bright app?

nvm, got it working with that integration now. Thanks!

Yeah. it was not obvious to me.
seems like with SMETSv2 and DCC all data is available to all (so to speak).
you just need to know your unique IDā€™s to get it.

using the DCC data means you only have access to 30min updates, which i assume is because thatā€™s the rate to local meters update the energy supplier. (assumption).

I have not tried to access my data from the GEO trio 2 directly, or from the the GEO Home API. I donā€™t yet know what is possible, but I assume you can then see more frequent data. Either way, the GEO trio 2 would need the wifi adaptor to connect cloud - and this would maybe make its DRO accessible locally too - or maybe not

You can pull the data from the geo home API with the following, currently it will just spit out the json responses from the API for live and periodic data.

Not a programmer myself so just ripped this from other projects and will look at working out to get this data into HA unless someone beats me to it.

#!/usr/bin/env python
from urllib.request import urlopen
import requests, json

BASE_URL='https://api.geotogether.com/'
LOGIN_URL='usersservice/v2/login'
DEVICEDETAILS_URL='api/userapi/v2/user/detail-systems?systemDetails=true'
LIVEDATA_URL = 'api/userapi/system/smets2-live-data/'
PERIODICDATA_URL = 'api/userapi/system/smets2-periodic-data/'
USERNAME= 'XXXXXXX'
PASSWORD = 'XXXXXXX'

# Request authToken
data = { 'identity' : USERNAME , 'password' : PASSWORD }
r=requests.post(BASE_URL+LOGIN_URL, data=json.dumps(data), verify=False)
authToken = json.loads(r.text)['accessToken']
headers = {"Authorization": "Bearer " + authToken}
#print(authToken)

# Get deviceId
r=requests.get(BASE_URL+DEVICEDETAILS_URL, headers=headers)
deviceId = json.loads(r.text)['systemRoles'][0]['systemId']
#print( 'Device Id: ' + deviceId)


# Get LIVEDATA
r=requests.get(BASE_URL+LIVEDATA_URL+'/'+deviceId, headers=headers)
#a=r.content
#h=' '.join(a)
h = json.loads(r.content)
print(h)


# Get PERIODICDATA
r=requests.get(BASE_URL+PERIODICDATA_URL+'/'+deviceId, headers=headers)
h = json.loads(r.content)
print(h)

This is a good find. Works for me as well! Did you manage to get the data into HA?