nordpool icon indicating copy to clipboard operation
nordpool copied to clipboard

Show the energy cost as an line in the energy dashboard in home assistant

Open Bach-Danielsson opened this issue 3 years ago • 3 comments

Is it possible to get the energy cost added to the energy dashboard as my sketch ?

cost

Bach-Danielsson avatar Sep 07 '22 05:09 Bach-Danielsson

I think the answer is yes because home assistant is open source, but how to do it, you should ask from HA forums.

raudraido avatar Sep 07 '22 08:09 raudraido

Nordpools sensor's dosen't have the correct state_class to show up as avalible entities on Energy display. To solve this, you can make a template sensor that takes the value from Nordpool's sensor and put it in a sensor with the correct state_class.

template:
  - sensor:
      - name: "Timpris Nordpool"
        state_class: total
        device_class: energy
        unit_of_measurement: "SEK/kWh"
        state: "{{ states('sensor.nordpool_kwh_se3_sek_2_095_025') }}" 

Just change the name and Nordpool sensor to you'r desire.

djjoakim avatar Oct 18 '22 15:10 djjoakim

I'm not really sure that would be the correct device class. Monatary seems more correct. I'll look into how to add this to the table.

Hellowlol avatar Nov 10 '22 19:11 Hellowlol