Select multiple devices in rule triggers and actions


#1

Hey Josh. In rules engine… Can you select multiple devices as the trigger, for and/or? Or do you have to build 1 and then the other? maybe I overlooked something.

+1 for sort or search or something…


Rule Engine Device Sorting
#2

Hi Tommy,
Yes, you can add multiple devices as the trigger of the rule, and the rule flow will be executed when any of the trigger event happens. Ex: Anytime my front door or garage door status is changed to opened, my door check rule will be executed.

Then, you can add IF_Condition in the flow to only do things when certain conditions are met. (You can pick either “AND” or “OR” logic in IF_Condition card by clicking on “EDIT” and select all/any from the drop-down at top.) In my door check rule example, it only sends out notification when neither my wife and myself are not present, and you can use the same way to check the trigger devices’ conditions if you need to.

I am updating the device list to be sorted alphabetically now, and should be released soon. And the search feature is added in my list. :slight_smile:


#3

Ok. But I cant pick two under hereimage

I am trying to click small door and large door (garage doors), and I will have to do this exercise 2x.

So instead of doing your front door and garage door separate (your example)it would be nice to click 'small door, large door" for me.
IMO…

This I think goes for the action as well. If either garage doors open, i want to turn on my whole house, i would have to create 20 separate triggers?


#4

Tommy-
Thanks for the feedback. The current design is to add a trigger for each event that you want to act as a trigger. If there are multiple devices, you’ll need to add multiple device triggers.

How would you envision the UI working for adding multiple devices at the same time? For example, if I want to add a trigger for my motion sensor detecting motion or my front door being opened.

Is this referring to IF conditions? Is so, you would create an IF condition and then add two devices into the IF condition. You could then choose to OR those conditions.

I’m not sure I understand where 20 is coming from though?

Just for anyone else who finds this in the future:

  • Triggers are events
    • Triggers are evaluated as OR (if X or Y or X happens, then…)
  • IF Conditions are states
    • You can determine if you want to AND or OR your IF conditions together - or even nest IF conditions within IF conditions

Also, I had originally posted the following video in one of the SmartThings Facebook groups after a few people had asked about the Rule Engine… you might find it helpful as well (if you haven’t already seen it!):


#5

I have to make separate items for garage doors to do same thing and then the lights all to do the same thing…[quote=“josh, post:8, topic:210”]
How would you envision the UI working for adding multiple devices at the same time? For example, if I want to add a trigger for my motion sensor detecting motion or my front door being opened.
[/quote]

I have to make separate items for garage doors to do same thing and then the lights all to do the same thing…

For example in webcore, I can just click on all the devices I want to group together.
So when either the garage doors open (click both)

and for lights, I can click all the ones I want to have turn on in one task vs 5. .

Does that make sense?


#6

Hi Tommy,
Thanks for the feedback. I can see the reason how selecting multiple devices with same action may help reduce the work. I think the device list will have to filter/gray out those devices which don’t have the exact same “capabilities” as the device(s) previously selected. Ex: If a switch is selected, then only allow other devices with switch capability to be selected. This will require some planning work to make sure the capability definition map properly across different platforms.

I think it might be confusing for users in Webcore that they can select multiple different devices with different capabilities, and the command which might be supported by all selected devices.

BTW, I moved this multi-device selection discussion to new thread from the original device sorting discussion.


#7

Not suggesting you do this but thought this was interesting bc I had not thought about the issue you brought up of different devices. SO… I tried different devices.

It lets me chose all the actions that are appropriate for each device. I have not tested but looks like it will not be a problem.

I picked a camera/light/thermostat and it lets me choice a feature for each.
image

Just FYI…


#8

By the way. The bathroom is a light not the camera. :joy: