miflora-mqtt-daemon icon indicating copy to clipboard operation
miflora-mqtt-daemon copied to clipboard

Add config option for "expire_after"

Open Cupmar opened this issue 2 years ago β€’ 2 comments

On Homeassistant the following payload is received for the battery: I would like that the sensors in homeassistant are longer available before their values are discarded: Can "expire_after" be added to the config?

name: Elastica1 Battery unique_id: c47c8d6c811c-battery unit_of_measurement: '%' device_class: battery state_topic: miflora/sensor/elastica1/state value_template: '{{ value_json.battery }}' device: identifiers: - MiFlorac47c8d6c811c connections: - - mac - c4:7c:8d:6c:81:1c manufacturer: Xiaomi name: Elastica1 model: MiFlora Plant Sensor (HHCCJCY01) sw_version: 3.3.1 expire_after: '3600' platform: mqtt

Cupmar avatar May 06 '22 15:05 Cupmar

Hey! I agree with the idea but didn't test so far. Any feedback from your side?

https://github.com/ThomDietrich/miflora-mqtt-daemon/pull/149#issuecomment-963528223=

ThomDietrich avatar May 09 '22 12:05 ThomDietrich

Did you test this?

ThomDietrich avatar Aug 16 '22 08:08 ThomDietrich