Generic Rule Components

Hi Ninjas,

We've created some useful generic rule components to help you create advanced custom rules that weren't previously possible with the UI. These rule components expose the underlying structures that our rules engine is built upon. It is now possible to create rules with triggers and actions based on your custom devices.  

  1. Turn on Developer Mode in your Settings->Preferences


  2. Navigate to the Rules page
  3. Use the custom rule components (listed at the end of your device components)
  4. For each component, select the device that it should correspond to.

Triggers

  1. Change
    Matches value and type. ie: a '===' comparison.

  2. Equality
    Basic mathematical comparison (assumes numerical values)
    • Greater Than: Fire if data point is greater than value
    • Greater Than Equals: Fire if data point is greater than or equal to value
    • Less Than: Fire if data point is less than value
    • Less Than Equals: Fire if data point is less than of equal to value

  3. Threshold
    • Rises Above: Fire once when value rises above the threshold.
    • Drops Below: Fire once when value drops below the threshold.
    • When Above: Fire on all data points when value is above the threshold.
    • When Below: Fire on all data points when value is below the threshold.

Actions

  1. Send Value
    Send a value to a device


  2. Generic Toggle
    Toggle a device between two values

 

While the functionality is a bit advanced, we think this will open up the rules engine to more of your applications.

Happy rule making! :)


Jeremy Manoto
Jeremy Manoto

Author