From 25211a90ac9df287e1fe0e5cc6a7dcc7458d9591 Mon Sep 17 00:00:00 2001 From: Joy N Hermosilla <41856587+JackNJack@users.noreply.github.com> Date: Sun, 16 Jun 2019 20:03:34 +0800 Subject: [PATCH] include explanation of Rule Concatenation on Existing Rule --- Rules.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Rules.md b/Rules.md index 5753d71c..83638b25 100644 --- a/Rules.md +++ b/Rules.md @@ -175,6 +175,22 @@ Sets Mem2 to the current time (minutes elapsed since midnight)
After a Wi-Fi reconnect event publish to stat/topic/BLACKOUT a payload containing timestamps of when the Wi-Fi disconnected in *From:* and when the Wi-Fi connected in *To:*. + +**Concatenating a rule on existing rule** + +Use of wildcard `+` + +Existing Rule1: `on Rules#Timer=1 do Mem2 %time% endon` + +To Concatenate: `on button1#state do POWER TOGGLE endon`, + + `Rule1 + on button1#state do POWER TOGGLE endon` + +Resulting Rule1: `on Rules#Timer=1 do Mem2 %time% endon on button1#state do POWER TOGGLE endon` + + + + **For examples of various rules use [Rule Cookbook](Rule-Cookbook).** [Back To Top](#top) \ No newline at end of file