I’m just discovering ESP8266 devices connected via MQTT into Node Red and passing data to Home Assistant, working well so far.
I was trying to figure out a sensible way to show HA that the sensor has stopped - unplugged, crashed, etc and not sending any data. The method used to pass the data to HA maintains the last sent value so it looks like the sensor is still working albeit that the data is not changing any more.
I was thinking monitoring the wifi strength which i am also feeding into MQTT, or maybe using a watch-dog timer set to a bit longer than the update period (60s) so it sets the data to null if nothing comes in for a period.