This PR adds support for autoReset with a configurable delay to the MqttPresenceSensor. It should behave just like the autoReset in the DummyPresenceSensor.
Back story; last week when I went on a holiday the device hosting my MQTT presence sensor was turned off and the last state reported was 'present' so my Pimatic behaved as if we were present during the whole holiday... The autoReset will helpt prevent this scenario in the future.
This PR adds support for
autoReset
with a configurable delay to the MqttPresenceSensor. It should behave just like theautoReset
in the DummyPresenceSensor.Back story; last week when I went on a holiday the device hosting my MQTT presence sensor was turned off and the last state reported was 'present' so my Pimatic behaved as if we were present during the whole holiday... The
autoReset
will helpt prevent this scenario in the future.