Skip to content

Automation Rules

inhies edited this page Dec 15, 2016 · 2 revisions

Triggers

github.com/oleksandr/conditions has rules like this which look like they'd work well for automation triggers:

($0 > 0.45) AND ($1 == `ON` OR $2 == \"ACTIVE\") AND $3 == false

I'd like to expand that to work with MQTT topics natively:

(`Hue/Light1/Color Name` == "Red") && (`Hue/Light1/State` == "On")

Rules

When a trigger is activated, if true then the rule will be evaluated. Maybe define some kind of functions that are avaialble?

  • Publish(topic, payload)
  • Get(topic) payload

Not sure. We could do like the vera does where it just gives you a screen with every device in the system on it, and you just set the ones you want to affect to the desired state. For example you would turn on a light, or tell the front door to lock, etc.

Clone this wiki locally