Future state changes

I"m building an integration to import ENTSO-E day-ahead electricity prices into HA. The data is essentially a list of electricity spot prices for tomorrow broken down by hour. I want to be able to graph today’s spot prices in a dashboard so I can see in the morning what the prices will be like over the day.

It seems natural to create a sensor that has hourly state changes indicating the price. The problem I’ve run into is that state changes seem to be assumed to be happening ‘now’, not in the future. Is there an accepted way to register state changes in the future? Or am I abusing the whole idea of sensor state changes?

1 Like

I have the same challenge. So far I’ve found no solution.

The nordpool custom integration solves this by having the future prices as state attributes. This way it also possible to trend them, e.g. by ising ApexCharts.