MQTT sensor timeout

I am new to Home Assistant and ran into the following problem:
I want to display a MQTT value on the Home Assistant GUI. This works well with an MQTT sensor in configuration.yaml(Is this the standard way to do it? It is quite cumbersome.).
But if the sensor does not publish anymore because of an error, Home Assistant will still display the old sensor value. I previously used Node Red for this and set a timeout to like 30min and Node Red would display an error instead of the last known value.
Is this also possible with Home Assistant?


Thank you!

1 Like