Need to set MQTT values to 0 after sensor loss

Hi,
In MQTT, the usual way a failure or disconnect is detected is with a Last Will and Testament (LWT) which the broker uses if there is no communication within a keepAlive timer:

Sending a LWT needs config on the client, so there is another way in the HASS MQTT Sensor:

Search is your friend - just expect to need several attempts as you learn better and better search terms and start to understand the features you’re homing in on.

If this helps, :heart: this post!