Skip to content
/ eltim Public

gadget to show the cheapest electric prices using tibber api

License

Notifications You must be signed in to change notification settings

rtitmuss/eltim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eltim

A gadget to show the cheapest time to use your appliances (dishwasher, tumble dryer, etc) when you have an hourly agreement with Tibber. The display shows the cost to run the appliance now compared to the cheapest time. The led is red or green when it's expensive or cheap. The top left button toggles through different appliances, and the bottom right button shows the cost at different times.

A more complex build allows you to make dumb appliances smarter, allowing them to automatically start when the electricity is cheaper.

Hardware

To build this you need:

Build

If you bought a Raspberry Pi Pico W without headers you first need to solder the headers onto the board, otherwise you can skip this step:

Attached the Pico Display Pack to the Raspberry Pi Pico W:

Press fit the Pico assembly into the case and then attach the base:

Fully assembled:

Install

Install MicroPython with support for the Pico Display Plack from pimoroni/pimoroni-pico. Follow the Installing the custom firmware instructions.

Then install the eltim app using:

mpremote connect /dev/tty.usbmodem14??? mip install --target . github:rtitmuss/eltim/picokernel/main.py
mpremote connect /dev/tty.usbmodem14??? soft-reset mip install --target picokernel github:rtitmuss/eltim/picokernel
mpremote connect /dev/tty.usbmodem14??? soft-reset mip install --target app github:rtitmuss/eltim

When the device starts it checks for app updates, and automatically installs them from github.

Configuration

On the device filesystem copy app/config_example.py to config.py. You then need to edit the file.

Add you wifi ssid and password:

WIFI_SSID = 'ssid'
WIFI_PASSWORD = 'password'

Get an access token from Tibber from https://developer.tibber.com/settings/access-token:

TIBBER_TOKEN = 'token'

Choose if you want to rotate the display:

ROTATE = False

Add your timezone and currency:

TIMEZONE = 'Europe/Stockholm'
CURRENCY = 'sek'

You can add the grid price (for example Ellevio) in kWh, this is added to the Tibber prices.

GRID_PRICE = 0.27 + 0.45 + 0.0596

Finally configure your appliances with a name and consumption per hour. Examples are includes for a dishwasher, washing machined and tumble dryer.

APPLIANCE = [{
    'name': 'washer',
    'kwhPerHour': (0.9, 0.1)
}]

Save the updated configuration file and restart the device. It will then connect to your wifi and download the latest electricity prices from Tibber. Enjoy!

Development

Before submitting PRs format the files using yapf -i *.py

About

gadget to show the cheapest electric prices using tibber api

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages