JNS
February 7, 2020, 6:35pm
31
I would start with reading the following. If you're new to this type of thing my recommendation would be to review other rules, ask questions and just play with it. All of the sudden a light bulb will go on and it will all make sense.
This was written before RM 4 came out but the basics are the same.
Rule MachineĀ® is a generalized rule engine for Hubitat. It allows you to predicate actions to be taken by Hubitat by a logical rule based on specified conditions of your system. Rule Machine also provides Triggers, basic event-causes-action building blocks, and Triggered Rules where an event causes a rule evaluation. Rules, Triggers, Triggered Rules, and Actions work together to create sophisticated automations.
What are rules?
A rule is a method of specifying certain conditions and their trā¦
This document covers the changes in RM4
https://docs.hubitat.com/index.php?title=Rule-4.0
Rule Machine Global Variables [Beta]
In response to community requests, we have added Global Variables to Rule Machine. This new feature is a beta release. There is preliminary functionality within a framework. We're looking for feedback as to additional functionality that is needed.
Creating Global Variables
Before you can use a Global Variable you must first create it in the Rule Machine app. There are four types: Number, Decimal, String and Boolean. Numbers are integer values, whileā¦
Time Variables Available in 2.1.8
Rule Machine has been enhanced to support variables representing time. Like other Global or Local Variables, Time Variables can be created and deleted, their values set, and Connectors created for use in Dashboards. Hubitat Dashboard now has a Variable Time template to display and change Time Variable Connectors. Time Variables show time of day in either 12 hour or 24 hour display depending on the hub's setting for time displays, and show hours and minutes. ā¦
Here is another thread discussing using RM for motion lighting.
So, you might be asking: "Why not just use motion lighting?"
Well, I'm using a very similar rule for my kitchen to set color based on time. So my question is: How do I get a rule to wait until the motion sensor is inactive before it starts the timer to turn off the light, or dim, or do whatever else the rule does? I threw this together by reading a few other posts, and it still doesn't do what I expect, which is keep the lights on until no motion is detected, and then start the timer, cancellinā¦
This link will take you to a list of example rules.
2 Likes