Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add config option for "expire_after" #154

Open
Cupmar opened this issue May 6, 2022 · 2 comments
Open

Add config option for "expire_after" #154

Cupmar opened this issue May 6, 2022 · 2 comments

Comments

@Cupmar
Copy link

Cupmar commented May 6, 2022

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

@ThomDietrich
Copy link
Owner

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

#149 (comment)

@ThomDietrich
Copy link
Owner

Did you test this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants