wutu / pimatic-mqtt

MQTT plugin for Pimatic
https://pimatic.org/plugins/pimatic-mqtt/
GNU Affero General Public License v3.0
9 stars 13 forks source link

Support autoReset in MqttPresenceSensor #36

Closed qistoph closed 6 years ago

qistoph commented 6 years ago

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.

wutu commented 6 years ago

Duplicate PR with https://github.com/wutu/pimatic-mqtt/pull/35