programming PIR for lights
Posted: Sunday 12 June 2016 11:14
Hi,
How can I program (blockly) this :
When movement (PIR) the light should switch on for 2 minutes
If within this 2 minutes there is again movement detected (PIR) the (already running) 2 minutes counter should restart
In this way Domoticz would keep the light on as long as there is movement in the room, and only when there is no more movement it will switch the lights off after 2 minutes
Now I have this programmed in blockly to get the PIR to switch on the light "for 2 minutes" but in this way it doesn't restart the 2 minutes counter when more movement is detected while the 2 minutes are already running ... so whatever happens, the lights will go out after 2 minutes anyway ... kinda stupid when there is still movement in the room ...
Shouldn't this be easy to do ?
Isn't this quite basic functionality ?
Switching the light on with PIR and leaving it on untill there is no more movement ... (in human language : switch the light on in the room when somebody enters and keep it on until this somebody leaves the room again)
In my current situation the light gets switched off after 2 minutes, and then we must wave to the PIR and wait for it to get it back on again ... quite annoying ...
any ideas ?
How can I program (blockly) this :
When movement (PIR) the light should switch on for 2 minutes
If within this 2 minutes there is again movement detected (PIR) the (already running) 2 minutes counter should restart
In this way Domoticz would keep the light on as long as there is movement in the room, and only when there is no more movement it will switch the lights off after 2 minutes
Now I have this programmed in blockly to get the PIR to switch on the light "for 2 minutes" but in this way it doesn't restart the 2 minutes counter when more movement is detected while the 2 minutes are already running ... so whatever happens, the lights will go out after 2 minutes anyway ... kinda stupid when there is still movement in the room ...
Shouldn't this be easy to do ?
Isn't this quite basic functionality ?
Switching the light on with PIR and leaving it on untill there is no more movement ... (in human language : switch the light on in the room when somebody enters and keep it on until this somebody leaves the room again)
In my current situation the light gets switched off after 2 minutes, and then we must wave to the PIR and wait for it to get it back on again ... quite annoying ...
any ideas ?