Skip to content
buerlinoPublic

About

A smart energy planner that calculates the most cost-effective times to run home appliances based on real-time and forecast electricity prices.

Resources

Stars

4 stars

Watchers

1 watching

Forks

Repository files navigation

GridLoad

A smart energy planner that tells you the best times to run home appliances (washing machine, dishwasher, EV charger, ...) based on real-time and forecast electricity prices.

Purpose

Shift everyday loads to the grid's most desirable time, e.g. noon when PV production peaks. This reduces demand at peak hours (evening), stabilizes the grid, lowers overall costs borne by society, and cuts CO2 emissions.

Audience: households who want to use energy effectively and reduce CO2 now; grid operators who want better grid stability.

What it shows

One colour, like a traffic light:

Colour Meaning
Red Bad time: electricity is expensive and busy, wait if you can
Orange Fair time: average price, only run what you need
Green Good time: cheap, run your appliances now

The price now is compared with the next 24 hours (until tomorrow's prices come out, with today: between noon and 18:00 depending on the utility, and at about 13:00 for the market price), and the screen shows when the next good time starts.

Below it, the price curve (the first panel, for everyone) shows those prices, each slot in its colour, with how long the green lasts ("Green until 16:30") or when it starts. The Price curve switch in Settings → Region hides it.

The colour depends on the dynamic tariff of the electricity utility that supplies your grid, or, where no utility publishes one, on the day-ahead market price. You pick your country and then your region; tap the region at the top of the screen to change it. Pull down to refresh.

Switzerland: utilities' dynamic tariffs

Region Utility Data source
Central Switzerland (Zentralschweiz) CKW (Centralschweizerische Kraftwerke AG), Home Dynamic https://e-ckw-public-data.de-c1.eu1.cloudhub.io/api/v1/netzinformationen/energie/dynamische-preise
Canton of Zurich EKZ (Elektrizitätswerke des Kantons Zürich), Energie Dynamisch + Netz 400D https://api.tariffs.ekz.ch/v1/tariffs
Einsiedeln EKZ Einsiedeln, Energie Dynamisch + Netz 400D https://api.tariffs.ekz.ch/v1/tariffs
Fribourg and Neuchâtel Groupe E, Vario https://api.tariffs.groupe-e.ch/v2/tariffs
Northwestern Switzerland Primeo Energie, NetzDynamisch https://tarife.primeo-energie.ch/api/v1/tariffs
Olten area AVAG (Aare Versorgungs AG), NetzDynamisch https://tarife.primeo-energie.ch/api/v1/tariffs
Gretzenbach ELAG (Elektra Gretzenbach AG), NetzDynamisch https://tarife.primeo-energie.ch/api/v1/tariffs

All of them follow the VSE/AES standard for dynamic tariffs. Each utility serves only its own grid area, and the colour follows its dynamic tariff, so outside those areas it says nothing about your price.

Elsewhere: the market price

Country Region Bidding zone Peak billed
Austria Austria AT from 1 Jan 2027, at least 2 kW
Belgium Flanders BE yes, at least 2.5 kW
Belgium Wallonia and Brussels BE no (the time-of-use grid fee isn't in the colour)
Germany Germany DE-LU no
Luxembourg Luxembourg DE-LU no
Netherlands Netherlands NL no
Liechtenstein Liechtenstein CH (hourly, shown in €) no

Data source: https://api.energy-charts.info/price, day-ahead prices, out at about 13:00. Market prices: Bundesnetzagentur | SMARD.de, via Energy-Charts (CC BY 4.0). The market price isn't what you pay, but your supplier's markup, the grid fee and the levies add the same amount to every hour, so the colour is the same. To see your own price, enter that add-on (ct/kWh excl. VAT, from your bill) in Settings → Region; the VAT is preset per country.

On a fixed-price tariff, common in Germany, the colour doesn't change your bill, but it still shows when the grid has power to spare.

What works where

Layer Where
Prices: the colour, the next good time, your price every region above
The whatwatt: what you draw now and what it costs wherever a whatwatt adapter fits your smart meter's customer port
Peak load and appliances with a whatwatt; it saves money where a peak is billed (CKW, Austria from 2027, Flanders), elsewhere the limit is a cap you set yourself

Measurement

With a whatwatt Go on the smart meter (home Wi-Fi, Plus licence), switched on in Settings under Measurement, the screen also shows what the home draws right now and what that costs per hour.

Peak load (a switch under Settings → 📊 Mode, needs the whatwatt): some tariffs also charge for the month's highest 15-minute average draw (CKW Home dynamic: 1.00 CHF per kW and month). Below the price, a panel shows how many kW are still free and a scale with the three quarter hours before, this quarter hour's projected draw ("now": what it used so far, then the average draw of the last 2 minutes until it ends, or the latest reading, under Settings → 📊 Mode → Draw ahead), three coming columns and one line, the limit. By default the limit is the highest of the month's highest, the floor (the heaviest quarter hour of the biggest appliance with "Counts for the limit" on, plus a margin, 20% by default) and the least peak your tariff bills (Austria 2 kW, Flanders 2.5 kW). Settings → 📊 Mode → Limit has a switch for each of these parts and for a goal of your own (at least one stays on), and says which part sets the limit now. When this quarter hour reaches the limit, the bar turns red and the phone vibrates (unless it's silent, or always: Settings → 📊 Mode). Share, beside the warning, sends it to your household through Android's share sheet (any messenger), so nobody switches on another big appliance until the quarter hour ends. Power shows in kW or W (Settings → Measurement).

The quarter hours come from the GridLoad recorder, a small Berry script that the app installs on the whatwatt (Settings → Measurement → Recorder → Install). It records every quarter hour on the whatwatt's SD card around the clock, also while the app is closed or the phone is away, and the app copies the new ones when it opens. There is no fallback: if the recorder stops, the app says exactly what is wrong (no SD card, not installed, another script in the slot, stopped, nothing saved since a time). Quarter hours it missed (e.g. while the whatwatt restarted) are listed in Settings under Recorder, opened.

Appliances (the third panel, with peak load on): measure each appliance once with + (tap Start, switch it on, tap Done when it has finished). From the recorder's quarter hours, GridLoad learns how much it draws, for how long, and when in the run. Each row then says OK, or WAIT with when: starting now would reach the limit, or, for appliances that can wait (a dishwasher, a washing machine), a later start is clearly cheaper, with what waiting saves ("Cheaper at 12:30 · saves 0.09 CHF"; in a market-price region once your add-on is set). Tap a row to see its run in the peak window, with what goes over the limit in red. A WAIT with a time has a timer button: it opens the clock app with a timer, named after the appliance, until then. With a start delay on the appliance, it says what delay to set instead. "Counts for the limit" (on by default) lets an appliance's heaviest quarter hour raise the floor, so the biggest appliance on its own is never told to wait. A measured appliance gives variants with another run time ("Cooking 60 min", or "Kettle 1.5 L" from the amount of water). Settings → Mode → Appliances exports and imports them as a file, for a new phone.

History (the fourth panel): the month so far, one bar per day (its highest quarter hour), with the limit across it. Tap the chart for a day's quarter hours and last month. Below it, the base load: what your home draws all the time (fridge, router, standby), the median of the night's quarter hours over the last 7 days, and about how many kWh that comes to in a year (the hours, 02:00 to 05:00 by default, and a switch to hide it are under Settings → 📊 Mode → Base load). All four panels fold to their top line.

What you need

What Price (CHF, 2026)
1 whatwatt Go on your smart meter 90
2 The whatwatt adapter for your meter (e.g. Kamstrup OMNIPOWER) 20
3 whatwatt Plus licence (on the device, no account needed) 19
4 Your meter's encryption key from your grid operator (CKW: email messtechnik@ckw.ch with the meter number) free
5 For peak load: a microSD card in the whatwatt, formatted FAT32 (cards over 32 GB usually come as exFAT and need reformatting). Any size: the recorder uses about 1 MB a year a few
6 For peak load: recent whatwatt firmware (the recorder is tested on 2.8.2). Update it in the whatwatt's web page, on USB power
7 For peak load: the whatwatt's one Berry script slot free (GridLoad never replaces another script)
8 The whatwatt on your home Wi-Fi (2.4 GHz), with a fixed address (DHCP reservation) and Device Protection off
9 Your phone on the same network (at home, or over a VPN such as Tailscale) to see live values

The app walks you through setting up a new whatwatt, one step at a time: Settings → 📟 Measurement → "New whatwatt? Set it up step by step".

Tested with a whatwatt Go WW_Go_1.3, firmware 2.8.2, on a Kamstrup OMNIPOWER at CKW.

Later ideas

  • Colour by the grid's carbon intensity (gCO2e/kWh) instead of, or next to, the price. The data could come from Electricity Maps or the National Grid Carbon Intensity API.

Tech stack

Native Android app (Kotlin + Jetpack Compose), distributed via F-Droid and Obtainium.

Building

Needs JDK 21 (Gradle picks it through gradle/gradle-daemon-jvm.properties) and the Android SDK with platform 37.

ANDROID_HOME=~/Android/Sdk ./gradlew :core:test :app:assembleDebug

./gradlew :app:assembleRelease gives an unsigned, R8-shrunk release APK; signing is described in CLAUDE.md.

License

See LICENSE.

About

A smart energy planner that calculates the most cost-effective times to run home appliances based on real-time and forecast electricity prices.

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages