I couldn’t find this feature request, but if it already exists you can delete this message.
I suggest being able to combine two (or more) variables at the trigger level:
If condition1=true AND condition2=true then action1 then action2 …
As I understand the application, this seems almost essential and would probably reduce the need for Node-RED flows.
Here’s an example:
Trigger => If temperature<18°C AND Night
Action => Turn on heating
The second possibility, but perhaps less clean, would be to be able to create « devices » or « virtual variables » that would take the value « true » if the 2 (or more) conditions were met.
@GBoulvin, not bad, I hadn’t seen that we could take the problem that way.
However, even if it’s doable today, I think we can gain clarity and reduce the number of scenes with an AND in the triggers rather than launching the scenes every x amount of time.
It seems logical to fire a trigger if and only if all conditions are met.
In Gladys’ logic that doesn’t really make much sense…
An event must be the trigger, so even if you want to have several conditions met, you must set 1 event as the trigger (ex: change in temperature), and then you test your 3 conditions in the scene, either in parallel or one after the other, as you wish.
To take your example, it would look like this:
TRIGGER :
change of state of a device: temperature
ACTION 1 :
get temperature state
get brightness state
ACTION 2 :
continue only if temperature < 18°
continue only if brightness = 0
Debate as old as Gladys ^^ @pierre-gilles has already talked about it on another topic, and he sticks to his choice regarding triggers.
You’ll need to do as @GBoulvin advised you and use multiple scenes ^^
On other solutions you can say that an event is composed of several devices and trigger on that event.
For example you put your door-opening devices, motion sensors into a security event.
And the scenes are triggered by the security event.
Here Gladys does essentially the same thing except that we add the devices as scene triggers.
But in no case can a trigger be conditioned by another