Met deze Home Assistant automatiseringen krijg je een melding bij een negatieve stroomprijs: op het moment zelf, en de dag van tevoren met het tijdvak en de laagste prijs. Bij een negatieve prijs krijg je geld toe als je stroom gebruikt, dus dat is het moment om de wasmachine, vaatwasser of laadpaal aan te zetten.
De melding verdwijnt vanzelf van je telefoon zodra de prijs weer positief is.
Wat het pakket doet:
- Een sensor die rond 13:00 weet of de prijs morgen negatief wordt, met aantal kwartieren, begin- en eindtijd en laagste prijs
- Een melding de dag van tevoren met het tijdvak, zodat je je planning kunt aanpassen
- Een melding op het moment zelf met de actuele prijs in centen per kWh
- De melding wordt automatisch weggehaald als de prijs weer boven nul komt
Onderaan dit artikel kun je de complete, kant-en-klare YAML downloaden, met een uitgebreide PDF-handleiding. Getest met Home Assistant 2026.10.
Het pakket bestaat uit: een sensor voor negatieve prijs morgen, een melding bij negatieve prijs nu en een melding als morgen negatief wordt.
⚙️ Wat heb je nodig?
Hardware:
- Een dynamisch energiecontract bij Zonneplan
- Een telefoon met de Home Assistant Companion-app (iPhone of Android)
In Home Assistant:
- De integratie Zonneplan ONE met
sensor.zonneplan_current_quarter_hourly_electricity_tariff - De meldingsdienst van je telefoon, bijvoorbeeld
notify.mobile_app_telefoon_1 - Ondersteuning voor packages in
configuration.yaml
🧩 De 3 onderdelen
Sensor: Stroomprijs negatief morgen
Wat doet dit: kijkt in de prijsverwachting van Zonneplan of de prijs morgen in minstens één kwartier onder nul komt.
Hoe maak je dit:
binary_sensor:
- name: Stroomprijs negatief morgen
unique_id: hac_stroomprijs_negatief_morgen
Een trigger-based template sensor rekent opnieuw bij het opstarten, om middernacht en zodra Zonneplan nieuwe prijzen binnenhaalt. In de attributen staan het aantal negatieve kwartieren, het eerste kwartier, het einde van het laatste kwartier en de laagste prijs van morgen.
Automatisering: Melding bij negatieve prijs nu
Wat doet dit: stuurt een melding zodra het huidige kwartiertarief onder nul zakt en haalt de melding weg als het weer positief wordt.
Hoe maak je dit:
triggers:
- trigger: numeric_state
entity_id: sensor.zonneplan_current_quarter_hourly_electricity_tariff
below: 0
id: negatief
Twee numeric_state-triggers: één voor onder nul en één voor boven nul, elk met een eigen id. Een choose stuurt de melding of haalt hem weg met clear_notification. Door dezelfde tag te gebruiken, vervangt een nieuwe melding de oude in plaats van ze op te stapelen.
Automatisering: Melding als morgen negatief wordt
Wat doet dit: meldt zodra de prijzen van morgen bekend zijn dat de stroomprijs morgen negatief wordt, met het tijdvak en de laagste prijs.
Hoe maak je dit:
triggers:
- trigger: state
entity_id: binary_sensor.stroomprijs_negatief_morgen
to: "on"
De trigger is de sensor uit onderdeel 1 die naar on gaat. Dat gebeurt één keer per dag, als Zonneplan na 13:00 de prijzen van morgen binnenhaalt. De melding leest de attributen uit, bijvoorbeeld: “Morgen is stroom 8 kwartier(en) negatief, van 12:00 tot 14:00”.
📝 Gebruikte templates
- Negatieve kwartieren morgen — loopt door de prijsverwachting en telt de kwartieren van morgen met een prijs inclusief belasting onder nul.
- Tijdvak — het eerste negatieve kwartier is het begin; het einde is het laatste negatieve kwartier plus 15 minuten.
- Prijs in centen — de melding vermenigvuldigt de prijs in euro met 100 en rondt af op één decimaal.
❓ Veelgestelde vragen
Wanneer is de stroomprijs negatief? Vooral op zonnige en winderige dagen rond het middaguur, als er meer stroom wordt opgewekt dan verbruikt. Met een dynamisch contract krijg je dan geld toe voor elke kWh die je gebruikt.
Werkt dit op iPhone en Android? Ja, de melding en het weghalen met clear_notification werken met de Companion-app op allebei.
Wat is het verschil met “terugleveren kost geld”? Deze melding gaat over de prijs inclusief belasting: dan levert verbruiken geld op. Terugleveren kost vaak al geld als de kale prijs onder nul zakt; daarvoor hebben we een apart pakket.
Krijg ik elke dag een melding? Nee, alleen op dagen waarop de prijs morgen echt negatief wordt.
Wil je je zonnepanelen automatisch laten stoppen met terugleveren als dat geld kost? Lees dan Terugleveren stoppen bij negatieve stroomprijs.
Hieronder kun je bovenstaande automatiseringen downloaden incl. de genoemde helpers en templates, de volledige YAML en een uitgebreide PDF-handleiding.
Let op gebruik is op eigen risico!!
Home Assistant: notification for negative electricity prices, now and tomorrow (Zonneplan)
With these Home Assistant automations you get a notification for negative electricity prices: at the moment itself, and a day in advance with the time slot and the lowest price. At a negative price you get paid to use electricity, so that is the moment to start the washing machine, dishwasher or EV charger.
The notification disappears from your phone by itself as soon as the price is positive again.
What the package does:
- A sensor that knows around 13:00 whether the price will be negative tomorrow, with number of quarters, start and end time and lowest price
- A notification a day in advance with the time slot, so you can adjust your planning
- A notification at the moment itself with the current price in cents per kWh
- The notification is removed automatically when the price goes above zero again
At the bottom of this article you can download the complete, ready-to-use YAML with an extensive PDF guide. Tested with Home Assistant 2026.10.
The package consists of: a sensor for a negative price tomorrow, a notification for a negative price now and a notification when tomorrow turns negative.
⚙️ What do you need?
Hardware:
- A dynamic energy contract with Zonneplan
- A phone with the Home Assistant Companion app (iPhone or Android)
In Home Assistant:
- The Zonneplan ONE integration with
sensor.zonneplan_current_quarter_hourly_electricity_tariff - The notify service of your phone, for example
notify.mobile_app_telefoon_1 - Support for packages in
configuration.yaml
🧩 The 3 parts
Sensor: Negative electricity price tomorrow
What it does: checks the Zonneplan price forecast for at least one quarter below zero tomorrow.
How to build it:
binary_sensor:
- name: Stroomprijs negatief morgen
unique_id: hac_stroomprijs_negatief_morgen
A trigger-based template sensor recalculates on start-up, at midnight and as soon as Zonneplan fetches new prices. The attributes contain the number of negative quarters, the first quarter, the end of the last quarter and tomorrow’s lowest price.
Automation: Notification for a negative price now
What it does: sends a notification as soon as the current quarter-hourly tariff drops below zero and removes it when it is positive again.
How to build it:
triggers:
- trigger: numeric_state
entity_id: sensor.zonneplan_current_quarter_hourly_electricity_tariff
below: 0
id: negatief
Two numeric_state triggers: one for below zero and one for above zero, each with its own id. A choose sends the notification or removes it with clear_notification. Using the same tag makes a new notification replace the old one instead of stacking up.
Automation: Notification when tomorrow turns negative
What it does: notifies you as soon as tomorrow’s prices are known that the price will be negative tomorrow, with the time slot and the lowest price.
How to build it:
triggers:
- trigger: state
entity_id: binary_sensor.stroomprijs_negatief_morgen
to: "on"
The trigger is the sensor from part 1 turning on. That happens once a day, when Zonneplan fetches tomorrow’s prices after 13:00. The notification reads the attributes, for example: “Tomorrow electricity is negative for 8 quarter(s), from 12:00 to 14:00”. The message text in the code is Dutch; change it to your own language.
📝 Templates used
- Negative quarters tomorrow — goes through the price forecast and counts tomorrow’s quarters with a price including tax below zero.
- Time slot — the first negative quarter is the start; the end is the last negative quarter plus 15 minutes.
- Price in cents — the notification multiplies the price in euro by 100 and rounds to one decimal.
❓ Frequently asked questions
When is the electricity price negative? Mainly on sunny and windy days around noon, when more electricity is generated than used. With a dynamic contract you then get paid for every kWh you use.
Does this work on iPhone and Android? Yes, the notification and removing it with clear_notification work with the Companion app on both.
What is the difference with “returning power costs money”? This notification is about the price including tax: then using electricity earns money. Returning power often already costs money when the bare price drops below zero; we have a separate package for that.
Do I get a notification every day? No, only on days when the price will really be negative tomorrow.
Want your solar panels to stop returning power automatically when that costs money? Read Stop returning power at negative electricity prices.
Below you can download the automations above including the helpers and templates mentioned, the complete YAML and an extensive PDF guide.
Use at your own risk!!


Geef een reactie