I have a bunch of DS18B20 Dallas temp sensors on an ESP32 ESPhome device.
I want to make sure these sensors are actually alive (their update interval in ESPhome is 1 minute)
is there a way to setup an automation if (for example) there hasn’t been a temp update from a certain sensor in 5 the last minutes ?
… imagine if the sensor stops sending temp updates and the heating keeps going all night full throttle because the thermostat’s incoming temperature is “frozen” (no pun intended) …
Are you experiencing drop-outs or is this a preemptive strike? I ask because there are many ways things can fail
definitely as a preemptive strike …
Yes, you can do that by using the “last changed” value of the sensor’s state object. But, what if the temperature has just been 18.0˚ for 6 minutes…?
exactly right … it’s risky indeed …
in my ESPhome logs I see that the ESP sends the values to HA every minute … so can’t I use a “last received data” value of the sensor, instead of “last changed” value ?