You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When a sensor is no longer available (e.g. due to dead battery) Home Assistant is still reporing the current state as if it is a correct reading.
To Reproduce
Publish sensor reading
Remove e.g. battery from the sensor
Home assistant is showing the old reading even days later
Openmqttgateway does not maintain state for any sensors sending data thru it. This is an issue for the application receiving the sensor data and not omg.
I believe this can be set via MQTT Discovery topics.
The included rtl_433_mqtt_hass.py auto discovery script provided by rtl_433 has a flag (-x) that sets a single value for the expiration of all data.
parser.add_argument("-x", "--expire-after", type=int,
dest="expire_after",
help="Number of seconds with no updates after which the sensor becomes unavailable")
Describe the bug
When a sensor is no longer available (e.g. due to dead battery) Home Assistant is still reporing the current state as if it is a correct reading.
To Reproduce
Expected behavior
Expire sensor readings after some (configurable?) time when no new message arrives. See https://www.home-assistant.io/integrations/sensor.mqtt/#expire_after
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: