Page 1 of 1

Is the order of steps in a group/scene important?

Posted: Wednesday 14 April 2021 11:55
by Plantje
I have some scenes in my house for when I leave the house, get out of bed etc.

For example one step is to switch on the light in the "Hal" and another step is to switch off the light in the "Hal" with a delay of half an hour or 15 minutes. I am not sure what triggers it, but I notice that at times the light stays on way longer and the automation that I have created (using LUA) to switch the light for only 5 minutes when movement is detected is not working.

So, I was wondering if the order of these steps is important.

I know, I AM switching it off before switching it on, but I only switch it off after 900 seconds, right?
Lights.png
Lights.png (20.1 KiB) Viewed 550 times

Re: Is the order of steps in a group/scene important?

Posted: Wednesday 14 April 2021 15:04
by waltervl
I have just learned that the off delay is meant as a delay to switch off after switching it on. So only the switch on command is necessary to switch the light on and off (after the delay).
But it would be nice to test some scenario's (with short delays ;-) )

Re: Is the order of steps in a group/scene important?

Posted: Wednesday 14 April 2021 15:14
by Plantje
So, if I want to switch on a light for 10 minutes after 5 minutes I would add one line:
Lamp Hal | On | 100% | 300 | 900
Because it would switch on with a delay of 300 seconds and from triggering the scene it will switch off with a delay of 600 seconds?

And if I just want to switch off a device after 10 minutes? Then I add one line:
Lamp Hall | Off | 0% | 600 | 0
Because I want to delay the trigger of the line (switching off) by 10 minutes? And that's why to put it in the "Inschakelvertraging" and not in the "Uitschakelvertraging"?

So what would happen with this?
Lamp Hall | Off | 0% | 0 | 600
Would the action in the line (switching off the light) be "switched off" after 600 seconds thus switching on the light after 600 seconds?

Re: Is the order of steps in a group/scene important?

Posted: Friday 16 April 2021 22:46
by Geitje
I'n not sure if you can set an on and off command in the same line. But you can try!
I always seperate on and off commands.
So to "switch on a light for 10 minutes after 5 minutes" you could use two lines in a scene:
Lamp Hal | On | 100% | 300 | 0
Lamp Hal | Off | 0% | 0 | 900

Your other statements are right I think.