Skip to content

Reads wholesale power prices from Amber's API and publishes them to an MQTT server.

Notifications You must be signed in to change notification settings

tjhowse/amber_to_mqtt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Amber to MQTT relay

This is some basic glue that connects to Amber Electric's realtime wholesale electricity pricing API. It pulls out some stats, does some calculations and publishes the result to an MQTT server for integration with home automation systems.

The API is not ready for general consumption, I've kindly been given access for experimentation, but you may have success in contacting their support folk and asking nicely.

Purpose

The goal of this interface is to enable smarter decisions on domestic power usage in order to minimise power bills and benefit the environment. I can selectively charge up my home battery storage and hot water systems while electricity is cheap/free/negative and avoid drawing from the grid when the prices are high.

Right now I'm consuming the MQTT with Telegraf into Influxdb and graphing with Grafana. Later on, once we've actually switched over to Amber for our electricity supply, I'll probably use Nodered to automate our battery and hot water system based on the price of electricity.

Configuration

Edit the contents of secrets.py to your heart's content, or copy it to secrets_real.py and make your changes there if you're worried about pushing the changes to a public repo. You'll need to populate the API_URI variable with the actual API URL from Amber Electric. If/when I get the OK to include the URL in this script by default, I'll do so.

About

Reads wholesale power prices from Amber's API and publishes them to an MQTT server.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published