Updated Rule Cookbook (markdown)

Michael Ingraham 2019-08-03 16:50:36 -04:00
parent f717b0ce5a
commit fc592d19f8
1 changed files with 1 additions and 1 deletions

@ -1294,7 +1294,7 @@ For example, a remote control with one button to change speed. This rules simula
//Specify the rule set //Specify the rule set
//The `<trigger>` can be a a condition or an event sent from another device or home automation hub. //The `<trigger>` can be a a condition or an event sent from another device or home automation hub.
//`<topic>` corresponds to the device transmitting the code (e.g., [YTF IR Bridge](YTF-IR-Bridge)). This could also be modified to send an RF code from a [Sonoff RF Bridge](Sonoff-RF-Bridge-433). //`<topic>` corresponds to the device transmitting the code (e.g., [YTF IR Bridge](YTF-IR-Bridge)). This could also be modified to send an RF code from a [Sonoff RF Bridge](Sonoff-RF-Bridge-433).
// The `Delay` may not be necessary in your environment or can be adjust according to your device characteristics. // The `Delay` may not be necessary in your environment or may need to be adjusted according to your device characteristics.
``` ```
Rule 1 Rule 1
ON Event#tora DO Backlog Publish cmnd/<topic>/IRSend {"Protocol":"NEC","Bits":32,"Data":"0x00FF30CF"}; Delay 10 ENDON ON Event#tora DO Backlog Publish cmnd/<topic>/IRSend {"Protocol":"NEC","Bits":32,"Data":"0x00FF30CF"}; Delay 10 ENDON