Page 1 of 1

'Off delay' doesn't work as expected

Posted: Tuesday 02 May 2017 13:38
by jvmaanen
I configured an 'off delay' of 300 seconds for my motion sensor and dusk sensor (separate devices). My expectation was that when they switch off, they stay on for 300 seconds and then switch off. I would like to use this option to prevent these sensors from switching on/off all the time. Once on, they should stay on for at least 300 seconds.

Re: 'Off delay' doesn't work as expected

Posted: Tuesday 02 May 2017 13:55
by Swifty
I believe off delay will actually wait that amount of time before automatically switching off.

Ie. you have a plug, with an off delay of 5 minutes, so you switch it on then automatically after 5 minutes it will switch off itself.

Sounds like you want to prevent switch off for (x) minutes instead?

Re: 'Off delay' doesn't work as expected

Posted: Tuesday 02 May 2017 16:30
by asjmcguire
Obviously when the motion sensor sends the off command then domoticz will honour it. The way I have used it is like this:

I have a 433MHz Switch (but you can easily just use a virtual one instead). This Switch in Domoticz has a 300 second off timer. If any of 3 contact sensors or the motion sensor detects movement, then using Blockly - we tell Domoticz to turn on the Virtual Switch (plus the associated light). This means that as long as movement is detected or the doors are constantly opening and closing, then Domoticz will keep resetting the 300 second timer. Finally after no movement detected or doors being opened, Domoticz will send the Off command for the switch. Another benefit of removing the direct connection is that I get to tell the system to ignore any triggers either via switch, door contacts or motion sensor during daylight hours.

Re: 'Off delay' doesn't work as expected

Posted: Tuesday 02 May 2017 19:38
by jvmaanen
@Swifty, yes that's what I was expecting. I like to prevent to switch off for 300 seconds.

@asjmcguire, thanks for your explanation. This works.