i have three door sensors and if one of the doors would be opend something should be triggered. If two doors are open and one would be closed, the trigger should triggered.
So i need a OR combination, if any of my three doors are open or opened, something should be triggered to set to on.
Regardless of the combination of doors opened, will the resulting action always be the same ?
If so, there are probably many ways to do this.
I’d go for 2 binary helper groups. One set to on if any of the group are on, and one set to on if ALL the members of the group are on.
I’d then trigger on the first group to start the automation, but use a condition to check that the ALL group is not on before continuing. This means at least 1 door is still closed.
yes, its always the same action. if one of three doors is open light should be turned on. if any of the three doors are still open, light should be still on. if all doors are closed, light should be turned out.
Check the link out above, but in essence, a group lets you consider multiple devices as a single entity.
So, given that a door sensor has only 2 states, open and closed, thats the equivalent to on or off, or true and false, or otherwise known as a binary switch.
Can you make groups (like a binary group) change their state when any single member of the group changes state, or configure the group to only change its state when ALL the members of the group change state, hence my suggestion to use 2 different groups to achieve your goal.