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

Moderator: leecollings

Post Reply
Plantje
Posts: 451
Joined: Friday 16 October 2015 7:58
Target OS: Windows
Domoticz version:
Contact:

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

Post 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 549 times
User avatar
waltervl
Posts: 5846
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

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

Post 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 ;-) )
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Plantje
Posts: 451
Joined: Friday 16 October 2015 7:58
Target OS: Windows
Domoticz version:
Contact:

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

Post 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?
Geitje
Posts: 170
Joined: Monday 22 January 2018 21:52
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post 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.
Domoticz beta, on Raspberry Pi 3B, Raspian Buster
Zwave, Zigate, RFlink etc.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest