include explanation of Rule Concatenation on Existing Rule

Joy N Hermosilla 2019-06-16 20:03:34 +08:00
parent 5f8d23ef6c
commit 25211a90ac
1 changed files with 16 additions and 0 deletions

@ -175,6 +175,22 @@ Sets Mem2 to the current time (minutes elapsed since midnight)
<br>
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)