I want to find out the coldest room in the house to control the heating. Since my temperature sensors are zigbee sensors and these do not always deliver reliable values, I would like to ignore individual sensors if they have not delivered any values for >30 minutes. Does anyone have an idea how I can do this?
An ’ is missing in front of the sensor.aqara_room4_temperature. I was able to solve that myself
2. It seems the template returns 0 if a single sensor does not deliver a value within 30 minutes.
2. The template seems to return 0 if the sensor with the lowest temperature is not up to date
But I want only the one non-updated sensor to be ignored and the template to give me the lowest value of the remaining sensors
It seems unlikely, but the only cause I can think of is that none of your sensors have updated within your defined window. Could some of them be related to restarts?
You should probably set an availability. That would get rid of the zeros, but the sensor would just report unavailable whenever there aren’t any values that are recent enough.