Introduction
This guide covers the process of using Rule Machine, Hubitat’s automation engine to modify a device’s internal configuration parameters based on a schedule.
This is particularly useful for tasks like dimming the LED indicators on smart switches at night or changing the sensitivity of motion sensors during specific hours.
Prerequisites
Device Driver Support: Ensure you have the Inovelli drivers installed (manually or with Hubitat Package Manager) as the Inovelli device drivers support the
setParametercommand. Most community drivers and advanced built-in drivers include this.Parameter Details: You will need the Parameter Number and the Value you wish to set. These are usually found in the device's manual or the manufacturer's online documentation.
Creating Rules in Rule Machine
Creating If This -Than That based rules in Rule Machine
Step-by-Step Configuration Of a Conditional Rule
Create a Conditional Rule (If This Event-Then That Action)
1. Create a New Rule
Navigate to the Apps tab on your Hubitat dashboard.
Open Rule Machine and select Create New Rule.
Select Create New Rule
Give Your Rule a Unique Descriptive Name
Create Your Triggers
Then click the +
Then
Then Certain Time
Then pick one of the three options Certain Time, Sunrise, or Sunset
Then set your time
Then select Done with this trigger event
Note: You will need to create 2 (two) triggers. One to start the rule and one to stop the rule
2. Create The Condition (If This -Than That)
Select Actions To Run
Click the +
Select select action type to add
Select Conditional Actions
Click select which action
Select IF expression THEN
Define the condition
Select New Condition
Select Capability
Then
Set you from and to times
Select done with this condition
Repeat steps 8 through 11 to create the condition to stop the rule between the hours you want the load to be controlled from the MMWave sensor.
Once both conditions are created select done with this condition
Select create new action
Select action type to add
Select IF expression THEN
Select the starting condition you created
Select done with IF expression THEN
Click Create New Action
Select Action to Add
Select Run Custom Action
Select capability for action: Choose the capability of your device (usually Switch, Dimmer or Actuator).
Select devices to add to action: Pick the specific device you want to modify.
Select custom command: Look for
setParameter.Note: If
setParameterisn't there, the driver may not support manual overrides via Rule Machine.
Add Parameter(s): You will need to add two parameters the parameter number and the value
Click Done with Action, then Done with Actions.
Click Create New Action
Click ELSE-IF Expression THEN
Then select the condition created to stop enable load control of the MMWave switch
Click Done with IF Expression THEN
Click Create New Action
Select Set Variable or File, Run Custom Action and Run Custom Action and Actuator and Actuators to act on select your MMWave switch and setParameter
Select Add a parameter
Select parameter type and add integer value for load control parameter 110 and Done with parameter
Select Add a parameter
Select parameter type number, integer value 1 (one) to enable load control and click Done with parameter
Click Done with Action
Click END-IF
Click Done with Actions
Click Install Rule





















































