Back to Hubitat Guides
Hubitat

How Do I Get Started with Hubitat Rule Machine?

Hubitat GuideSmart Hubs
medium difficulty 30 minutes 130 views 5 found helpful Where this fix applies: Global Updated
This guide applies to: Hubitat Hubitat Elevation (All Models)
At a glance — most common causes
  • Trigger versus condition confusion
  • Trigger event not actually firing
  • Conditions blocking the rule
30 minutes13 solutions coveredmedium level

Expert Review & Technical Scope

DeviceHubitat Hubitat Elevation
Model CoverageAll Models
Fix Time30 minutes
DifficultyMedium
Required ToolsWeb browser
Network / ProtocolWi-Fi / app-based troubleshooting context

Problem Description

You want to get started with Hubitat Rule Machine to build automations from triggers, conditions, and actions. Rule Machine is powerful but strict, and beginners get stuck on the difference between triggers and conditions, choosing the right trigger event, and why a rule that looks correct does not fire.

Why This Happens in Real Homes

Rule Machine trips up beginners because triggers (what starts the rule) and conditions (what must be true) are separate, and a rule only fires when its trigger event actually happens. In real homes people put everything in conditions and wonder why nothing triggers.

Start with one clear trigger and few conditions, test the actions with Run Actions, and build up from there.

Symptoms

  • Unsure how to structure a rule
  • Rule does not trigger
  • Confused by triggers versus conditions
  • Actions do not run
  • Rule fires at the wrong time
  • Cannot get a motion rule working
  • Rule too complex to follow
  • Changes do not take effect

Recognize these? Here's what usually causes it.

Common Causes

  • Trigger versus condition confusion
  • Trigger event not actually firing
  • Conditions blocking the rule
  • Wrong trigger type chosen
  • Device not reporting the state used
  • Actions targeting the wrong device
  • Rule not saved or enabled
  • Overcomplicated logic

Most fixes happen in the first 3 steps.

Warning

Do not factory reset your hub unless absolutely necessary as this removes all paired devices, automations, and settings. You will need to re-pair every single device from scratch which can take hours for a large setup. Always try a simple restart first.

Tools & Requirements

Web browser

Step-by-Step Solution

1

Create your first Rule Machine rule

In the Hubitat web interface, go to Apps > Add Built-In App > Rule Machine. Give your first rule a name (e.g., Front Porch Light at Sunset). Rule Machine is Hubitat's most powerful automation engine — it can do anything from simple on/off schedules to complex conditional logic with multiple triggers, conditions, and actions. Start simple and build complexity as you learn.

2

Set a trigger

The trigger is what starts the rule. Common triggers: a device changes state (motion detected, door opens, switch turns on), time of day (sunset, 10:00 PM, sunrise + 30 minutes), a mode changes (Home to Away), or a hub variable changes. Select your trigger type and configure it. Example: Trigger = Motion Sensor (Front Porch) changes to Active. You can have multiple triggers — any one of them fires the rule.

3

Add conditions (optional)

Conditions are extra checks that must be true for the actions to run. Example: trigger is motion detected, condition is time between sunset and sunrise. The rule fires on motion but only runs the actions at night. Conditions use AND/OR logic — you can require all conditions to be true (AND) or any one of them (OR). If you skip conditions, the actions run every time the trigger fires.

4

Define actions

Actions are what happens when the rule fires and conditions are met. Common actions: turn on/off a switch, set a dimmer level, lock/unlock a door, send a notification, set a variable, delay for a period then do something. Example: Turn on Front Porch Light, Delay 0:10:00, Turn off Front Porch Light. This turns the light on for 10 minutes after motion. You can chain multiple actions and use conditional actions (IF device is on THEN do X ELSE do Y).

5

Test and monitor your rule

After saving, trigger the rule manually to verify it works. On the Rule Machine rule page, click Run Actions to test the action sequence. Watch the Hubitat Logs page for rule evaluation messages — Rule Machine logs each trigger, condition evaluation, and action execution. If the rule does not behave as expected, check the logs for which condition evaluated to false. Common mistakes: using AND when you meant OR, setting the wrong trigger device, or forgetting to select the correct attribute (e.g., motion vs. temperature on a multi-sensor).

Quick Solutions

Set a trigger for what starts the rule and conditions for what must be true
Pick a trigger event the device actually sends
Keep conditions minimal at first
Test with Run Actions to confirm the actions work
Confirm the trigger device reports its state
Select the correct target devices
Save and enable the rule
Start simple, then add complexity

Still having issues? This is usually the deeper cause below.

If the hub reconnects then drops every few minutes, check for an IP conflict — two devices sharing the same DHCP address fight each other continuously.

Pro Tip

Place your hub in a central location in your home, elevated off the floor and away from your WiFi router by at least 3 feet. This provides the best Zigbee and Z-Wave signal coverage to all corners of your house.

Real-World Insight

Hub disconnections that cycle repeatedly are almost always IP conflicts — two devices fighting over the same DHCP lease after a router restart.

What Usually Goes Wrong
  • Trigger versus condition confusion
  • Trigger event not actually firing
  • Conditions blocking the rule
  • Wrong trigger type chosen
  • Device not reporting the state used
Best Hubitat Elevation Options

Most popular upgrades chosen by Hubitat Elevation owners.

As an Amazon Associate we earn from qualifying purchases.

Official Manufacturer Manual

Hubitat provides official product documentation through their online manual rather than downloadable PDF. Access setup guides, troubleshooting steps, and product specifications for your Hubitat Elevation.

View Hubitat Elevation Online Manual

Source: hubitat.com

Need More Help? Hubitat Support

Note: The contact information below connects you directly to Hubitat's official customer support team, not Trunetto. They can help with warranty claims, device replacements, and advanced technical issues.