I wasn’t really able to find anything specific, perhaps using the term false positive in the title will make it easier in case others are looking for an answer too. My PIR motion sensors tie into the system using a rule I found somewhere in here, and everything works well except that the PIR occasionally has a false positive and signals the lights on when they aren’t needed. That’s not a big deal in the basement but I would like to add similar setups in more sensitive areas of the house where random light activity would be less acceptable. Any suggestions on how to filter out the false positive - like only responding to the second motion sensed within a certain time span? Any suggestions would be appreciated.
Here is my current motion sensor rule
rule "basement light motion"
when
Item Motion2 changed from 0 to 1
then
if (basement_timer != null)
{
basement_timer.reschedule(now.plusMinutes(basement_timeout))
logInfo("basement","basement timer rescheduled for " + basement_timeout + " minutes")
{
sendCommand(StartCountdown,ON)
}
}
else
{
sendCommand(Light_Hue_9,ON)
sendCommand(Light_Hue_10,ON)
logInfo("basement","basement timer create with " + basement_timeout + " minutes")
basement_timer = createTimer(now.plusMinutes(basement_timeout))
[|
if (Motion2.state == 1)
{
basement_timer.reschedule(now.plusMinutes(basement_timeout))
logInfo("basement","basement timer triggered, but rescheduled again for " + basement_timeout + " minutes")
}
else
{
sendCommand(Light_Hue_9,OFF)
sendCommand(Light_Hue_10,OFF)
basement_timer = null
}
]
}
end