You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](https://www.buymeacoffee.com/2ys3cdCZk)
4
4
5
-
Nord Pool is a service provider that operates an electricity market and power system services, including the exchange of electricity on a spot market Nordics and Baltic countries.
5
+
Nord Pool is a service provider that operates an electricity market and power system services, including the exchange of electricity on a spot market Nordics and Baltic countries.
6
6
7
-
This integration provides the spot market (hourly) electricity prices for the Nordic, Baltic and part of Western Europe.
7
+
This integration provides the spot market (hourly) electricity prices for the Nordic, Baltic and part of Western Europe.
8
8
9
9
The Nordpool sensor provides the current price with today's and tomorrow's prices as attributes. Prices become available around 13:00.
10
10
@@ -31,8 +31,8 @@ The Nordpool sensor provides the current price with today's and tomorrow's price
31
31
- Restart Home Assistant
32
32
33
33
*or*
34
-
- Go to `HACS` -> `Integrations`,
35
-
- Select `+`,
34
+
- Go to `HACS` -> `Integrations`,
35
+
- Select `+`,
36
36
- Search for `nordpool` and install it,
37
37
- Restart Home Assistant
38
38
@@ -44,15 +44,15 @@ cd YOUR_HASS_CONFIG_DIRECTORY # same place as configuration.yaml
See the [Nord Pool region map](https://www.nordpoolgroup.com/en/maps/) for details
115
115
116
-
| Country | Region code |
116
+
| Country | Region code |
117
117
| --------- | ----------- |
118
118
| Austria | AT |
119
119
| Belgium | BE |
@@ -132,30 +132,30 @@ See the [Nord Pool region map](https://www.nordpoolgroup.com/en/maps/) for detai
132
132
| Sweden | SE1, <br> SE2, <br> SE3, <br> SE4 |
133
133
134
134
### Additional costs
135
-
The idea behind `additional_costs` is to allow the users to add costs related to the official price from Nordpool:
135
+
The idea behind `additional_costs` is to allow the users to add costs related to the official price from Nordpool:
136
136
- Add simple or complex tariffs
137
137
- Calculate VAT
138
138
139
139
There are two special special arguments in that can be used in the template ([in addition to all default from Homeassistant](https://www.home-assistant.io/docs/configuration/templating/)):
140
140
- ```now()```: this always refer to the current hour of the price
141
-
- ```current_price```: price for the current hour. This can be used for example be used to calculate your own VAT or add overhead cost.
141
+
- ```current_price```: price for the current hour. This can be used for example be used to calculate your own VAT or add overhead cost.
142
142
143
143
Note: When configuring Nordpool using the UI, things like VAT and additional costs cannot be changed. If your energy supplier or region changes the additional costs or taxes on a semi-regular basis, the YAML configuration or a helper (example 4) work best.
144
144
145
145
#### Example 1: Overhead per kWh
146
146
147
-
Add 1,3 cents per kWh overhead cost to the current hour's price
147
+
Add 1,3 cents per kWh overhead cost to the current hour's price
148
148
149
149
```{{ 0.013 | float }}```
150
150
151
151
#### Example 2: Percentage (VAT)
152
-
Add 19 % VAT of the current hour's price
152
+
Add 19 % VAT of the current hour's price
153
153
154
154
```{{ (current_price * 0.19) | float }}```
155
155
156
156
#### Example 3: Overhead and VAT
157
157
158
-
Add 1,3 cents per kWh overhead cost, 0.002 flat tax and 19% VAT to the current hour's price
158
+
Add 1,3 cents per kWh overhead cost, 0.002 flat tax and 19% VAT to the current hour's price
@@ -208,7 +208,7 @@ Add 21% tax and overhead cost stored in a helper
208
208
- ```country```: What Country data is fetched for
209
209
- ```region```: The specific region of prices
210
210
- ```low_price```: If price is below low_price_threshold
211
-
- ```price_percent_to_average```:
211
+
- ```price_percent_to_average```:
212
212
- ```today```: List of all values
213
213
- ```tomorrow```: list of all values
214
214
- ```tomorrow_valid```: If tomorow´s values is in yet
@@ -218,9 +218,27 @@ Add 21% tax and overhead cost stored in a helper
218
218
- ```additional_costs_current_hour```: If there is any additional costs this hour
219
219
- ```price_in_cents```: Boolean if prices is in cents
220
220
221
-
### One sensor per hour
221
+
## Actions
222
+
Actions has recently been added. The action will just forward the raw response from the Nordpool API so you can capture the value your are interested in.
222
223
223
-
By default, one sensor is created with the current energy price. The prices for other hours are stored in the attributes of this sensor. Most example code you will find uses the default one sensor option, but you can run the `create_template` script to create separate sensors for every hour. See the help options with ```python create_template --help```. You can run the script on any system where Python is installed (install the required packages `pyyaml` and `click` using `pip install pyyaml click`)
224
+
Example for an automation that get the last months averge price.
225
+
```yaml
226
+
alias: Example automation action call with storing with parsing and storing result
0 commit comments