Reading Australian smart meter data

I am thinking it might be possible to pull these metrics using the File Integration as it seems to be formatted basically as a CSV file.

Edit: I have just realised it is in JSON format :wink:

For the benefit of the next person who didn’t grok this, to use JAS-MRS’s lovelace card:

  1. install HACS if not yet installed
  2. go to HACS → Frontend, choose “+ Explore & Download Repos” and search for and install:
    a) mini-graph-card
    b) Vertical Stack In Card
  3. go to your dashboard, edit it, choose add a card, select “Manual” at the bottom of the card list, and paste the YAML from the above post (post #10)
  4. reload the frontend (lovelace)

@JAS-MRS your code gets the latest data up to and including “yesterday”. However, it’s possible to get all of the hourly data today so far. The “Week” tab shows the days up to and including today; just click on today to get today’s hourly data.

The URL changes from

https://energyeasy.ue.com.au/electricityView/period/day/1?_=1652777316985

to

https://energyeasy.ue.com.au/electricityView/period/week/0/drilldown/1?_=1652777316985

But also, it turns out that the original URL works, with the day number set to zero:

https://energyeasy.ue.com.au/electricityView/period/day/0?_=1652777316985

I’ve no idea how this would be used to enhance the data collection, not being a coder. But I think it’d be a really useful update to be able to show hourly data up to the previous hour.

Also, I tried to hook this into the new HA native power dashboard (Settings > Dashboards > Energy > Add consumption), but it couldn’t find any “statistics” for consumed energy. Is there some magic keyword we can add to the new entities that will make them available to the energy dashboard?

MEEH group on FB agrees with me (so I must be right, right): Heat pump storage running off solar is excellent. Up front cost needs to be considered though.

(Also, hi, first post. I’m in Perth, I’ve just installed the HA container, starting to figure out how to get electricity data to it. Enjoying this thread.)

Welcome, fellow Perthian. I am also working on adding my energy usage data to HA currently, having already added my solar production data previously. Currently trying to determine whether the Synergy API is sufficient for this or if I’ll end up going with a meterbox device like others in this thread have suggested.

this has just reminded me, i never got around to posting my python scraper.
@salty2011 not sure if you ended up doing anything but here is the code i made GitHub - TomW1605/synergyPowerScraper

i got it outputting nice timestamped data for import and export (still at least a day behind) but i cant work out how to get the data into HA. any ideas would be welcome (issues or pull requests on trhe github are probably best)

i would like to get this working
(this is my admission that i will never get around to installing my Iotawatt. asked the sparky about it when he was out and we had a look in the switch board and it is a mess, so not as quick job. also he pointed out the cables on the ct clamps are not long enough to get to the roof and there is no room in the switchbox)

1 Like

Great, thanks for sharing. Do you think something like RESTful - Home Assistant would be suitable to process and expose the relevant data?

unfortunatly i dont think that will work, there is no way to authenticate with a diffrent url and the RESTful intergration dosnt handle cookies

Have you looked at a PowerSensor? 5 min diy job to install and there is a HA unofficial integration. It’s within 5% accuracy for me and instant info.

1 Like

unfortunatly i dont have easy access to the requiered cables. i can access the solar cables but i already get solar data from the inverter directly. the data i want is the inport/export data and i cant access those cables to put the sensor on.

The powersensor just velcroes on next to your main fuse or smart meter, not around any cables in the meterbox.

See about 1:10 mark of https://help.powersensor.com.au/hc/en-au/articles/360003636696-Overview-of-how-to-install-Powersensor don’t need a sparky at all.

yes but it needs to velcro to the cable you want to mesure. the cable i want to mesure is entierly in a wall or underground so no way to attach the sensor

See the edit for the video, only the solar sensor goes around a cable. The meterbox once just goes next to your fuse or smart meter. It senses the cable behind.

oh i see, it us using the same tech as those AC power detecotrs. cool i will look into it. i still dont think it will work for me because my meter box is well out of BT range of any power points but i will have a look

Ahh ok yeah maybe not a good match of your needs then. You could get a normal PowerPoint installed in or near your meterbox and then it’s more your wifi range to give you the updates on your phone or HA (assuming your wifi range is decent). But then you would want to have something decent using the PowerPoint next to your meterbox every now and then (they recommend a spikey load at least once a week ongoing after intial learning process). Like a electric leaf blower or something maybe.

honestly, im cheap, if i get a power point next to the meter box i will just build one of those things that uses the flashing light (although i havnt worked out how that deals with export)

Fair enough, this explanation helped me understand the limitations of the light method.


If you have solar power we recommend you check the LED at two times of day to understand how your meter works:

  1. At night, when you are importing power from the grid.
  2. On a sunny day, when you are exporting power.

In most cases - the LED stops flashing when solar power exceeds household consumption. In this case, Powerpal reports NET household electricity consumption. This is quite useful as it helps you get the most out of your solar panels and minimise usage at all other times of the day.

In some cases - the LED flashes for both imported and exported power. This situation is a little more confusing. It means Powerpal will report exported power during the day, and imported power at night (but with no distinction).

Powersensor gives you solar generated, solar consumed, grid imported, grid exported. The light method will not give you all dimensions (still helpful though).

i think with both the light and the raw data from the inverter i shoudl beable to calculate all the values listed there.

also i just realised i have an iotawatt (i got it cheap on gumtree) so if i am getting a power point installed in the meter box i can just have the sparky put a ct clamp around the main line and use that.

edit: to clarify, i havnt had the iotawatt installed because our celings are too high so the cables are not long enough and there is no room to put it in the fuse box itself

Nice, I had completely forgotten about this thread :slight_smile:

What I might do is take a look at another integration for home assistant on github to get the general gist of how other integrations are working with power… and then attempt to reverse engineer.

Might take me a little while as python isnt more strong suite at the moment

i ended up asking about this on the HA discord and apparently there is no way within HA to add historical data. you can only add data with the current time stamp so while we can get the data adding it to HA would be a day offset