Thanks, but that wasn’t really what I was looking for. I did find something that looks promising though:
And am working with this now. Since I am still in a static price contract and just playing around I can still experiment freely without fear of expensive mistakes…
I have done this little different. I have a slider where I can choose how many cheapest hour I need. I’m using this one to manage my garage heat pump.
These links are for Finnish but you’ll see codes how its done.
Request for help:
I updated the documentation for this integration. It turns out some of the parameters did not have the most descriptive name, so I submitted a pull request to fix the names on the UI.
Please have a look at the language files and check if they still match the English version. If anything is unclear, consult the documentation.
Secondly, there are many good examples in this threat, but it can be hard to find. If you have a good and fitting example which would be useful for a large audience, please add it to the documentation.
I’ve got some issues with my Nordpool, and that’s not the extension but the calculating. I don’t understand. I don’t have a dynamic energy contract yet, but I want to know the right prices. So I hope someone can help me.
Within my configuration.yaml file. If you can see, the VAT will be calculated (6%) for now. The price is correct. If I calculate the Market data from Nord Pool, you see between 00-01 a price of 130,01. So I calculate 130.01*0.01 * 1.06 which is good now. But when I add the marge of 0.2040 it has to be on 13,9973 but it calculates within HA this value: 15.005 which is incorrect…
130.01*0.1+0.2040 * 1.06 = 13,9973 and not 15.005. Any idea why it goes wrong?
Even when I add a extra 0 at marge (0.02040) it calculates wrong, it’s saying then 13,903…
The add. costs are this:
You can see here the right prices of all add. costs:
{% set s = {"VAT": 1.06,"kwh_tarief": 0.0394475,"bijz_accijns": 0.0144160,"energiebijdrage": 0.0020417,"groenestroom_wkk": 0.02714,"marge": 0.002040 } %}
{{((current_price + s.marge) * s.VAT + s.kwh_tarief + s.bijz_accijns + s.energiebijdrage + s.groenestroom_wkk) | float}}
I have modified a few templates found here, special thanks to sepahewes post up here.
Simple value template for use as a condition in automations. Returns true if this hour is among the cheapest x hours this day. Change number in range() to increase or decrease threshold:
{% set np_tdy=state_attr('sensor.nordpool_kwh_se3_sek_3_095_0', 'raw_today') | sort(attribute='value') %}
{% for n in range(4) %}
{% if np_tdy[n].start <= now() <= np_tdy[n].end %}
{{ true }}
{% endif %}
{% endfor %}
Similar to above but also include tomorrows prices if they are available. Change range() to increase or decrease threshold.
{% set np_tdy = state_attr('sensor.nordpool_kwh_se3_sek_3_095_0', 'raw_today') %}
{% if state_attr('sensor.nordpool_kwh_se3_sek_3_095_0', 'tomorrow_valid') == true %}
{% set np_tmr = state_attr('sensor.nordpool_kwh_se3_sek_3_095_0', 'raw_tomorrow') %}
{% set np_cmd = (np_tdy+np_tmr) | sort(attribute='value') %}
{% else %}
{% set np_cmd = np_tdy | sort(attribute='value') %}
{% endif %}
{% for n in range(10) %}
{% if np_cmd[n].start <= now() <= np_cmd[n].end %}
{{ true }}
{% endif %}
{% endfor %}
These can be used as conditions for smarter automations. I plan to modify the sensor to also include the level or increase or decrease in price, for example “Next 6 hours: Slighly decreasing” and “Tomorrow: High increase”.
Many lines I know, I’m sure they can be shortened by someone with more syntax experience
Hi Community! I’m stuggling a bit of getting an automation to work in HA, where I want the color of a bulb to turn into green, yellow or red, based on the current Nordpool Energy Price. I could ofcause set my own threshold, but I want to acheive this by setting the treshold based on what be the highest, median and lowest price for that specific day. Does anyone have an example on how to solve this?
Hi who is one of the top Dutch contributors to this wonderful integration please? I’d like to ask him/her for their referal code before signing up to tibber (they get EUR 50 worth of smart home shopping credit).
It will give you true in case it’s one of the cheapest. Just add the following to get attributes containing the date/time of the cheapest hours (or most expensive hours if you sort them the other way around)
I decided to switch to Tibber today, of course it will take a while until the switch will actually happen, so I have some time to get my scripts ready.
My “endgame” is to charge my solar battery when electricity is cheap and then use the power. Of course always calculating in how much power my solar is going to generate within the next 12 (or 24?) Hours. I can already do it with “cheapest consecutive hours” but not yet with individual hours.
I will do the same switch to Tibber. As far as I can tell from Nordpools license agreement, any unlicensed usage of their data is not allowed (even personal). Looking for licensed users on their web page, Tibber is one of them. I cannot find Home Assistant as a licensed end user nor as a licensed data re-distributor.
For sure I cannot afford to pay the ridiculously expensive license fee myself.
But maybe I am not looking in the right place.
I would prefer to use data right from Tibber eventually, but right now I don’t get anything useful. I hope that will change when I get the “Pulse”.
Nordpool has some kind of fair use policy for their API it I am not mistaken… but I am not sure about the details.
Edit: actually…I just found some neat Tibber based Templates that look promising…