Closed gigatexel closed 2 months ago
2 observations:
HA displays timestamps in the entity status view with UTC timestamp (= timezone offset 0). But the timestamp is correct and if you display the sensor value in Lovelace (e.g. an entity card), it will also use your local timezone.
Any feedback on this?
I changed my Apex data generator as follows. This now seems to render the right result:
data_generator: >
return entity.attributes.data.map((entry, index) => { return [new
Date(entry.start_time).getTime(), ((0.2040 + entry.price_ct_per_kwh) *
1.06 ) + (1.582+4.71756+0.20417+5.03288)]; }).slice(new
Date(hass.states['sensor.start_laagste_prijs'].state).getHours(),new
Date(hass.states['sensor.start_laagste_prijs'].state).getHours()+3);
I'm trying to determine the start of the lowest price interval, based on the
epex_spot.get_lowest_price_interval
service call.If I use this service call in the Developers tools:
I get this response:
12:00 in localized time is correct!
But when I use the service call like this, in the config-file:
Then the
sensor.start_laagste_prijs
gets a different value, that is wrong.