If you live in Australia, joined Amber because of its nice and transparent APIs (like me), and don’t have a whole house energy monitoring device. Hope this custom component gives you a bit of a remedy. GitHub - Tmbao/amberelectric-usages
The main feature is that it fetches the energy usages from Amber API, and populates them retrospectively to HA statistics, so that you can see them easily in your HA energy dashboard.
The setup flow is similar to the component built into HA core. After that, you’ll get some statistics for your electricity usage and cost. It’s subject to the limitation of the usages in Amber app, data will be delayed and only available on the next day. Also a limitation of retro data is that it cannot be more granular than hourly, but Amber data is only per 30 min interval anyway.
Enjoy!
Edit, installation guide:
Make sure that you’ve had HACS installed (see here for instructions)
Once HACS is installed, add the amberelectric-usages github repo as a custom repository, then you should be able to find this integration (amberelectric-usages) via HACS
Once you’ve downloaded the integration, make sure to restart your home assistant,
Come to Devices & Services in your Settings, hit Add Integration and find Amber Electric Usages. You’ll need the API key to use this integration, which can be obtained following this other instruction.
Are you saying that the usage stats don’t normally come through the default Amber sensors, so this component makes extra API calls to retrieve the usage information?
Hey thanks for putting this together. I have both the amber integration and now the usage integration installed. And I have usage appearing in the energy dashboard using this integration. I have two questions you may have already solved for ;
(1) When you setup the energy dashboard with the usage sensor, is it possible to also add the amber general price to the energy dashboard associated with that usage? I assume that it is difficult because the usage is delayed and price data is realtime sensors.
(2) I have Home Assistant setup to export sensors to InfluxDB for a longer time view. This includes the amber integration realtime price etc sensors. I dont think the usage data from this integration will go into Influxdb as there are no associated sensors. Do you know any easy / alternate way to direct the usage data from this integration to Influxdb?
Just another bit of info, when I hover over “failed setup”, as per above screenshot, it says Invalid statistic_id. Not sure if that provides any clues as to why my integration isn’t working. Sorry I’m fairly new to using home assistant, so any help is greatly appreciated!
That’s all good, in your Settings > System > Logs, you should be able to find more details about the issue. Can you share that specific logs that related to amberelectric usages here, I can help diagnose the issue
The integration writes directly to HA statistics so you wouldn’t find them under the entities linked to the integration (due to some limitation of writing historical data in HA).
To find the statistics, go to Developer Tools > Statistics and search for amber. However, these statistics can be used in your energy dashboard