skrashevich/double-take

[FEAT] Decrease time of recognised state - MQTT

Mikescotland opened this issue · 10 comments

Is your feature request related to a problem? Please describe.
Now, the state of person recognised is assigned to a camera for 10 minutes (600 seconds). This is too long, considering automations, like door opening. It means that automation won't work again unless 10 minutes have passed. So for instance, going just to take bins out, or a corner shop, lock won't open, if I return within 10 minutes (camera recognises me going out and sends mqtt)
The MQTT is:

{
  "name": "michal",
  "object_id": "double_take_michal",
  "icon": "mdi:account",
  "value_template": "{{ value_json.camera }}",
  "state_topic": "homeassistant/sensor/double-take/michal/state",
  "json_attributes_topic": "homeassistant/sensor/double-take/michal/state",
  "availability_topic": "double-take/available",
  "unique_id": "double_take_michal",
  "expire_after": 600
}

Describe the solution you'd like
I would like to have option to decrease "expire_after" to just 120 seconds

Additional context
Add any other context or screenshots about the feature request here.

Implemented in the last beta (skrashevich/double-take:beta)

Please test

How to pull the beta as a HA Addon? I can see only stable release.

Unfortunately, there is no easy way to do it :(
I'll publish new release with this feature soon (after some tests...)

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

This issue was closed because it has been stalled for 5 days with no activity.

Any news on the HA Addon with new version please?

Any news on the HA Addon with new version please?

you can use beta add-on from same repository

How to set up the mqtt expire in config? Thanks