Rules consist of three components: Input, Logic, and Action. Rule inputs define which devices provide the data to be used, the rule logic defines the condition to be applied to the data and the rule actions define which action is triggered if the condition is met.