Time for action - applying an automation rule to devices