Problem with sensor calculating watts to NOK price with nordpool input

Trying to calculate the price of consumption of energy of a single sensor in watts. But it does not calculate the correct value. Anyone who can hlep with this?


utility_meter:
  cost1:
    source: sensor.totalt_pris
    cycle: daily


- name: "totalt_pris"
  unit_of_measurement: "NOK"
  state: >
    {{ max(((states('sensor.power_volkedpower-w') | float(0) / 1000) * states('sensor.nordpool_kwh_krsand_nok_3_095_025') | float(0)) | round(2), 0.00) }}

that entity_id isn’t correct

hmm? why not? it reports the current watt.

Because entity_ids don’t have dashes in them