Currently unit is hardcoded EUR/kWh/h. Ideally it should be derived from nordpool's unit, but how to? As pragmatic solution, let's just make it adjustable (but optional). It may be nice to set it to EUR/kWh to get it in same plot as nordpool prices. Even if EUR/kWh is not strictly correct, neither is EUR/kWh/h except when filter_length=2 is used.
Also name could well be adjustable. For default, current nordpool_diff_N is good.
BTW I think hass gets confused if unit of an enity changes. At least history plots use the old unit, how long? Need to change name to treat it as "new". This complects testing a bit.
Currently unit is hardcoded
EUR/kWh/h
. Ideally it should be derived from nordpool's unit, but how to? As pragmatic solution, let's just make it adjustable (but optional). It may be nice to set it toEUR/kWh
to get it in same plot as nordpool prices. Even ifEUR/kWh
is not strictly correct, neither isEUR/kWh/h
except whenfilter_length=2
is used.Also name could well be adjustable. For default, current
nordpool_diff_N
is good.BTW I think hass gets confused if unit of an enity changes. At least history plots use the old unit, how long? Need to change name to treat it as "new". This complects testing a bit.