Step 1:
Select the Automation to set the rules on.
Step 2:
Next select edit on the Automation.
Step 3:
Next select Add Condition to set the rules.
Step 4:
Select the condition to set the rules on.
Step 5:
Select the items from the condition to use the rules on. Select if you want to include or exclude the items. The selection accepts multiple items.