Problem med nord_pool sensorn #199
Replies: 4 comments 6 replies
-
Sensorn finns och funkar. |
Beta Was this translation helpful? Give feedback.
-
|
Tyvärr så är det så att den måste matas med den som finns på HACS. |
Beta Was this translation helpful? Give feedback.
-
|
@martinwetterstedt Jag gjorde en egen sensor som skapar upp det viktiga i HACS Nordpoolsintegration baserat på HAs officiella Nordpoolsintegration :) . Den är lite yxig och behöver optimeras men funkar med PumpSteer. Nedan läggs i configuration.yaml. Byt ut !!!CONFIG_ENTRY!!! med det config entry som du kan kopiera från HAs Nordpoolsintegration. |
Beta Was this translation helpful? Give feedback.
-
|
Jättebra
ons 21 jan. 2026 kl. 19:56 skrev Peter Elgåker ***@***.***>:
… @martinwetterstedt <https://github.com/martinwetterstedt> Jag gjorde en
egen sensor som skapar upp det viktiga i HACS Nordpoolsintegration baserat
på HAs officiella Nordpoolsintegration :) . Den är lite yxig och behöver
optimeras men funkar med PumpSteer.
Nedan läggs i configuration.yaml. Byt ut !!!CONFIG_ENTRY!!! med det config
entry som du kan kopiera från HAs Nordpoolsintegration.
image.png (view on web)
<https://github.com/user-attachments/assets/fe99b745-e55a-4c75-bf6c-0e97a3137697>
template:
- trigger:
- trigger: time_pattern
minutes: "/15"
seconds: "1"
- trigger: homeassistant
event: start
action:
- action: nordpool.get_price_indices_for_date
data:
config_entry: !!!CONFIG_ENTRY!!!
date: "{{ now().date() + timedelta(days=1) }}"
areas: SE4
currency: SEK
resolution: "15"
response_variable: tomorrow_price
- action: nordpool.get_price_indices_for_date
data:
config_entry: !!!CONFIG_ENTRY!!!
date: "{{ now().date() }}"
areas: SE4
currency: SEK
resolution: "15"
response_variable: today_price
sensor:
- name: Nordpool
unique_id: nordpool
unit_of_measurement: "SEK/kWh"
icon: mdi:cash
state: >
{{ ((states('sensor.nord_pool_se4_current_price') | float) * 1.25)| round(4, default=0)}}
attributes:
raw_today_price: >
{{today_price}}
raw_tomorrow_price: >
{{tomorrow_price}}
raw_today: >
{% if today_price is mapping %}
{% set data = namespace(prices=[]) %}
{% for state in today_price['SE4'] %}
{% set data.prices = data.prices + [{'start':state.start, 'end':state.end, 'value': (((state.price)*1.25/1000) | round(4, default=0))}] %}
{% endfor %}
{{data.prices}}
{% else %}
[]
{% endif %}
today: >
{% if today_price is mapping %}
{% set data = namespace(prices=[]) %}
{% for state in today_price['SE4'] %}
{% set data.prices = data.prices + [((state.price)*1.25/1000) | round(4, default=0)] %}
{% endfor %}
{{data.prices}}
{% else %}
[]
{% endif %}
raw_tomorrow: >
{% if tomorrow_price is mapping %}
{% set data = namespace(prices=[]) %}
{% for state in tomorrow_price['SE4'] %}
{% set data.prices = data.prices + [{'start':state.start, 'end':state.end, 'value': (((state.price)*1.25/1000) | round(4, default=0))}] %}
{% endfor %}
{{data.prices}}
{% else %}
[]
{% endif %}
tomorrow: >
{% if tomorrow_price is mapping %}
{% set data = namespace(prices=[]) %}
{% for state in tomorrow_price['SE4'] %}
{% set data.prices = data.prices + [((state.price) * 1.25 / 1000) | round(4, default=0)] %}
{% endfor %}
{{data.prices}}
{% else %}
[]
{% endif %}
tomorrow_valid: >
{% if ((tomorrow_price is mapping) and (tomorrow_price['SE4'])) %}
{{ true }}
{% else %}
{{ false }}
{% endif %}
—
Reply to this email directly, view it on GitHub
<#199 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGFEGZYU35ZLPLQ6KMKTMD34H7DWHAVCNFSM6AAAAACSKYA4NCVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTKNJWGMYDMNY>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
-
Är det rätt sensor jag använder? Jag använder den vanliga Nord pool integrationen som kommer med HA.
Beta Was this translation helpful? Give feedback.
All reactions