#Derivative sensor update rate

1 messages · Page 1 of 1 (latest)

sullen prawn
#

On the picture I have 3 elements:

  • top yellow: Temperature from the sensor
  • top blue: Temperature from the template sensor, that is a sum of temperature from the actual sensor (yellow) and bottom blue part
  • bottom blue: Derivative of the temperature from the sensor, so derivative from the top yellow.

The template sensor (top blue) has state defined as a sump of sensor + derivative and it has the availability set to both states tested against | is_number

What I don't understand is why my derivate sensor isn't reloaded after the HA restarted, like it was the actual yellow sensor? Seems that derivative is only reloaded after the source sensor updated. Is this because HA can't pull the value before it was unknown/unavailable ?

Derivative sensor has a time window of 1h, so I would assume it can pull the 1h state on powerup and calculate starting value?

Bottomline, is this an expected behavior?