What is 'on delay' and 'off delay'?

Moderator: leecollings

Post Reply
irongarment
Posts: 12
Joined: Friday 24 November 2017 21:42
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: New Zealand
Contact:

What is 'on delay' and 'off delay'?

Post by irongarment »

These are two values you can set when configuring a switch, however, they are not documented in the manual or on the wiki.

Thank you.
User avatar
emme
Posts: 909
Joined: Monday 27 June 2016 11:02
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Location: Milano, Italy
Contact:

Re: What is 'on delay' and 'off delay'?

Post by emme »

On_Delay = the amount of secs between the switch button and its actual state change from off to on
Off_Delay = the amount of secs between the switch button and its actual state change from On to Off
The most dangerous phrase in any language is:
"We always done this way"
irongarment
Posts: 12
Joined: Friday 24 November 2017 21:42
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: New Zealand
Contact:

Re: What is 'on delay' and 'off delay'?

Post by irongarment »

Thanks.

What is the purpose? Is it so that the button can be flicked back on (or off) quickly without causing the device to change state? Or another reason?

Thank you.
Jem101
Posts: 66
Joined: Saturday 02 May 2015 21:26
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Bexleyheath, SE London, UK
Contact:

Re: What is 'on delay' and 'off delay'?

Post by Jem101 »

Well as an example I have a nighttime scene which I trigger by either pressing a button or via the Amazon Echo - what it does is to turn on a light in my hallway (so I can see my way up the stairs), turn off all the lights in my living room and then has a 30 second delay before it turns off the kitchen lights.

That way I can trigger the scene, walk out of my living room, walk into the kitchen to take any plates or cups out and then just go up to bed knowing that the living room lights will all be off and that the kitchen light will turn off after 30 seconds.
I firmly believe in having an open mind - although not so open that your brain falls out!

- sometimes attributed to Carl Sagan, but the original quote is much older than that
irongarment
Posts: 12
Joined: Friday 24 November 2017 21:42
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: New Zealand
Contact:

Re: What is 'on delay' and 'off delay'?

Post by irongarment »

Ah, got it. Thanks.

This should be documented, however, the manual is not editable, and the wiki doesn't have an entry for switches. What to do?
AlBundy
Posts: 4
Joined: Sunday 09 September 2018 21:59
Target OS: Linux
Domoticz version: 4.9700
Location: The Netherlands
Contact:

Re: What is 'on delay' and 'off delay'?

Post by AlBundy »

Hi all,

Using V4.9700 the Off Delay for a light/switch isn't working as described by emme.

Emme wrote: Off_Delay = the amount of secs between the switch button and its actual state change from On to Off

My experiences:
Off Delay is the time in seconds the light/switch says On before it switches back to Off.
When you press the light/switch to On it waits Off Delay seconds before it is switched Off again automatically.
So it is not Off Delay but more like "Stay On for xx seconds"

On Delay for a light/switch works as expected but Off Delay doesn't.
This can't be intended, or is it?
AlBundy
Posts: 4
Joined: Sunday 09 September 2018 21:59
Target OS: Linux
Domoticz version: 4.9700
Location: The Netherlands
Contact:

Re: What is 'on delay' and 'off delay'?

Post by AlBundy »

I would like it to be like emme explained.

Off_Delay = the amount of secs between the switch button and its actual state change from On to Off

This makes sense.
AlBundy
Posts: 4
Joined: Sunday 09 September 2018 21:59
Target OS: Linux
Domoticz version: 4.9700
Location: The Netherlands
Contact:

Re: What is 'on delay' and 'off delay'?

Post by AlBundy »

Using a group and setting a Off Delay works as expected.

So why is Off Delay different between a Light/Switch and a Group?
PaulOckenden
Posts: 10
Joined: Friday 25 March 2016 12:59
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: What is 'on delay' and 'off delay'?

Post by PaulOckenden »

Sorry to resurrect an old topic.

I can't get either on or off delay to work for a (z-wave) switch. If I enter 60 seconds for both the specified actions always run instantly.

I'm running Version 4.10717 (May 9th 2019)

Any ideas?

P.
Decyph
Posts: 10
Joined: Monday 07 November 2016 11:43
Target OS: Linux
Domoticz version: 11838
Location: Hoofddorp, NL
Contact:

Re: What is 'on delay' and 'off delay'?

Post by Decyph »

I was trying to find out the same thing.
It seems that the on delay and off delay of a switch work different.
The off delay turns the switch off again (if switched to on) after x seconds
But the on delay is x seconds from flipping the switch to on and it actually being on.

To me that seems weird.

Version 4.10833
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest