Skip to content

Latest commit

 

History

History
103 lines (77 loc) · 2.95 KB

rule_examples.rst

File metadata and controls

103 lines (77 loc) · 2.95 KB

Additional rule examples

Using the scheduler

../conf/rules/time_rule.py

Mirror openHAB events to a MQTT Broker

../conf/rules/openhab_to_mqtt_rule.py

Trigger an event when an item is constant

Get an even when the item is constant for 5 and for 10 seconds.

Process Errors in Rules

This example shows how to create a rule with a function which will be called when any rule throws an error. The rule function then can push the error message to an openhab item or e.g. use Pushover to send the error message to the mobile device (see Avanced Usage <advanced_usage> for more information).