dawidchyrzynski / arduino-home-assistant

ArduinoHA allows to integrate an Arduino/ESP based device with Home Assistant using MQTT.
https://dawidchyrzynski.github.io/arduino-home-assistant/
GNU Affero General Public License v3.0
480 stars 116 forks source link

Feature request: expire_after for MQTT sensors #171

Closed ngolf closed 7 months ago

ngolf commented 1 year ago

(Thanks for the library BTW!!, it makes things super easy!)

It would be nice if one could set the expire_after for sensor values. Unless of course there is a better way to achieve the same effect (having sensors become unavailable if haven't reported to HA for a period of time), but I (newbie) couldn't find one.

dawidchyrzynski commented 7 months ago

This feature will be available in the upcoming version of the library. Please refer to the linked Pull Request for more information.