Convert somehow an energy counter into a live/history Wh information

Hello,

Since my question is not very clear, two screenshots :

I’d like to create a sensor using a template or something that converts values from this sensor
image

to something that looks like that :

image
That’s not a sensor but a statistics graph with the “change” stat type, 5 min period, so it’s off by a factor of 12

I would need an actual sensor with thoses values not just a correct graph.

I checked the helpers but did not find any that would actually help.

Thanks in advance !

The derivative integration measures the rate of change of a sensor.

The derivative of energy with respect to time is power. This will be measured in W, not Wh as per your second graph.

I find it hard to believe that the device that is supplying your energy sensor does not have a power sensor. Maybe check the entities in the device page. Settings → Devices & Services.

Woops, for some reason I tested that and was not successfull. But it’s indeed the right way to do it…
Unit is kind of weird though, Wh/h .

The device does not have a powersensor, it’s a french utility meter, I have some kind a serial adapter connected to it and push data into hass via mqtt.

Anyway, thanks a lot Tom !

Wh/h = W.

You can change it using customize but that really should be reported as an issue.