mirror of https://github.com/arendst/Tasmota.git
include explanation of Rule Concatenation on Existing Rule
parent
5f8d23ef6c
commit
25211a90ac
16
Rules.md
16
Rules.md
|
@ -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)
|
Loading…
Reference in New Issue