I am planing a fun Project.
I want to use 2 Xiaomi Motion Sensors for the Goals of my football table.
But I noticed that Xiaomi Motions Sensors retain their Status for ca. 2 minutes.
Even if you reset them with a rule they do not detect new motion within this 2 minute window.
So my question would be, is there a workaround, setting I missed?
Do you guys have an Idea ?
I’m not really sure if it’s possible but you could try to set state of MotionSensor_MotionTimer item to something less than 120 seconds (which is default).
// Xiaomi Motion Sensor
Switch MotionSensor_MotionStatus <motion> { channel="mihome:sensor_motion:<ID>:motion" }
// minimum 5 seconds - remember that the sensor only triggers every minute to save energy
Number MotionSensor_MotionTimer <clock> { channel="mihome:sensor_motion:<ID>:motionOffTimer" }
And rule would look like this:
rule "Set the minimum timeout for motion sensors"
when
System started or
Item SomeSwitch changed to ON
then
sendCommand(MotionSensor_MotionTimer_FirstSensor, 5);
sendCommand(MotionSensor_MotionTimer_SecondSensor, 5);
end
The sensors send reports every 60sec when there is constant motion. It’s a hardware limitation. It is still possible to deact the switch with timers down to 5sec - but then the sensor is “dead” for theoretically 55sec