From f717b0ce5a19739bc1e6a26c7d04b3af8eeb9537 Mon Sep 17 00:00:00 2001 From: Michael Ingraham <34340210+meingraham@users.noreply.github.com> Date: Sat, 3 Aug 2019 16:49:59 -0400 Subject: [PATCH] Updated Rule Cookbook (markdown) --- Rule-Cookbook.md | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Rule-Cookbook.md b/Rule-Cookbook.md index 470f64c9..4d611141 100644 --- a/Rule-Cookbook.md +++ b/Rule-Cookbook.md @@ -1294,15 +1294,12 @@ For example, a remote control with one button to change speed. This rules simula //Specify the rule set //The `` can be a a condition or an event sent from another device or home automation hub. //`` 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. ``` Rule 1 -ON Event#tora DO Publish cmnd//IRSend {"Protocol":"NEC","Bits":32,"Data":"0x00FF30CF"} ENDON +ON Event#tora DO Backlog Publish cmnd//IRSend {"Protocol":"NEC","Bits":32,"Data":"0x00FF30CF"}; Delay 10 ENDON ON DO Backlog Event tora; Event tora; Event tora ENDON ``` -Please note the rule could be quicker than necessary, in this case is advisable to use a delay between events calls: -``` -ON DO Backlog Event tora; Delay 10; Event tora; Delay 10; Event tora ENDON -``` //Enable the Rule set ``` @@ -1310,4 +1307,3 @@ Rule1 1 ``` [Back To Top](#top) -