In the mobile app, you will now find an option to add “groups of events” which will allow you to add all events that should be met in order to execute a scene: for example, you can select a device as a trigger and also add a second activation condition to be a schedule (every day at X time of the day), or select before, at or after sunrise/sunset).
Interesting. But your mixing triggers and conditions all within “Group of Events”?
For me triggers and conditions are two separate things.
Can I have a trigger that whenever a device is turned On, that runs the scene.
But only If two (or more) conditions are met?
Check that another switch is currently turned off
If both conditions are met then the action of the scene is carried out.
So in your screen shot “Smart Switch Gen5” turning on is the trigger?
In this case, a scene can have multiple devices as triggers as a “Group of events”. Once you create the scene you can choose if the scene runs when all the events met or if any event is met.
In the following example, the scene has 3 triggers, they all should meet for the scene to run.
After you select your triggers you can select the actions that will take place once the scene runs, they can be multiple actions too.
So what if my switch is already off?
I dont want a trigger for when that switch changes to off.
I want a condition that checks if the switch is already off.
For example say I create a virtual switch as a “blocker.”
In my scene I want a condition that checks that virtual switch is turned off. And the scenes Actions will only be run if that condition is met.
However if the virtual switch is turned on, then the conditions is not met and I don’t want the scenes Actions to run.
I guess my question is.
Is “Whenever switch state changed off”
Is that a trigger? It looks like it to me.
Or can it be a condition?
Does that make sense?
There is a different between a trigger and a condition.
So in my simple example I have one trigger.
Switch A is turned ON
And I have two conditions.
Switch B must be off
It must be Night time
If both conditions are met then run the actions.
These are all just triggers by the looks of it. Not conditions?
Unless the wording is not correct.
It’s not correct for “After Sunset”
Once selected it says
“Everyday at Sunset”
But it should read as
“Everyday After Sunset”
Also its a Schedule? not a condition?
So does that mean the scene runs after sunset?
What if I just want to check it’s night?
So that action only runs if it’s night
I dont necessarily want my scene to run at or after sunset.
Maybe it’s your wording and terminology that is confusing?
But to me they all read as being triggers.
A schedule is a trigger
A switch “state changed” to on or off is a trigger.
So where are the conditions?
In the app, all the events are conditions or triggers, the scene will run when any of the events is met (OR conditional) or when all the events are met (AND conditional).
For you example scene:
If you choose the first option (when all the events are met)
If (Switch A is ON) AND (Switch B is OFF) AND (Is night time) then
(The scene will run)
If you choose the second option (when any of the events are met)
If (Switch A is ON) OR (Switch B is OFF) OR (Is night time) then
(The scene will run)
In case you want to run the scene at night you can run the scene by schedule at a specific time.
So how am I checking its night time?
It looks like I am creating a schedule for the scene to be run “after sunset” which I don’t want.
I dont want any schedule at all.
My only trigger for the scene to be run is that switch A is turned ON.
So the only trigger here that ever initiates the scene, is that switch A is Turned On, and the conditions are switch B must be Off and its night time
I dont think that is right, because if switch B is later turned On and then Off again whilst switch A has remained On and whilst it’s still Night time, then the scene will be run again. Yes?
However I don’t want this scene to be fired and run again.
This is why triggers and conditions should be separate as they are two different things.
The only trigger I want that ever initiates this scene, is that switch A has been turned On.
And the only conditions I want is that switch B must be off And its night time.
All you are doing here is showing basic AND / OR operators. And I still can’t see how you are checking its night time?
What if I want to change this sightly is this possible?
Switch A OR Switch B are turned ON
It’s night time
Can I do this?
I have this exact problem. I created a virtual switch that is on after sunset and off after sunrise but the scene only allows the “OR” operator. I need the logic to say turn on light off motion sensor is tripped “AND” it is after sunset.
If you are using an Ezlo controller, you should be able to add triggers with the operator AND. Please check this topic I created for instructions.
In your case, you will need to add this day/night virtual device to a group with the other triggers and select the option “All events should be met.”
That seems to have done the trick! Thank you so much for the tip. I didn’t even see the section for any or all events. I have fixed my automation and it works as intended. I really appreciate the help.
You’re more than welcome. Happy to help!