jmcollin78 / versatile_thermostat

A full featured Thermostat for Home Assistant: presets, window, motion, presence and overpowering management
MIT License
327 stars 34 forks source link

Motion detection enhancement #556

Closed jmcollin78 closed 1 month ago

jmcollin78 commented 1 month ago

With the motion feature, if the motion sensor briefly switch to off and then to on, the detection is canceled and the VTherm will never switch target temperature. This is particularly true if the motion sensor is configured with a small delay.

One enhancement is to check also the sensor state at the end of the delay. If it is in expected state, then the swicth of temperature can occurs.

This is easy to do and will robustify the motion detection.

jmcollin78 commented 1 month ago

https://github.com/jmcollin78/versatile_thermostat/releases/tag/6.4.0