veeceeoh / xiaomi-hubitat

veeceeoh's Xiaomi device drivers for the Hubitat Elevation Hub
Apache License 2.0
74 stars 47 forks source link

[Aqara Motion Sensor] Version 0.8.0 #24

Open gabriele-v opened 5 years ago

gabriele-v commented 5 years ago

Change behaviour of inactive motion: consider latest motion instead of every motion

veeceeoh commented 5 years ago

This already happens due to the use of runIn().

Every time motion is detected, the runIn() timer is effectively reset, so the call to set the inactive motion event is always based on the time of the most recent motion detected event.