[FEAT] MQTT and sensor.person states
Closed this issue · 2 comments
Is your feature request related to a problem? Please describe.
Just now, a disconnection from mqtt server and reconnection results in the last person or unknown mqtt message being resent which can be cancelled by configuring expire_after to 0. This causes the false positives even if noone is at the camera.
The sensor.person goes to unavailable after set amount of time which causes some problems with automations when HA reacts to unavailable sensors.
Describe the solution you'd like
DT could send another mqtt message with no expiration after set period (expire_after) with, for instance "none" instead just expiring and leaving sensor unavailable.
So:
- Person detected, sensor.person goes to value of the camera where the person was detected
- Wait for expire_after
- Send mqtt message with "nowhere" or "none", non expiring
- Sensor.person goes to "none" or "nowhere" until the person detected again.
Additional context
This would allow to have expire_after setting still functional and sensor.person not going to unavailable possibly causing problems with automations and also would prevent firing a false positive detection if mqtt reconnected.
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.