mirror of https://github.com/arendst/Tasmota.git
Updated Rule Cookbook (markdown)
parent
07b719af7a
commit
f5da1e27d7
|
@ -1477,18 +1477,11 @@ Note that having a rule for the Button#State disables the power toggling of the
|
||||||
|
|
||||||
```lua
|
```lua
|
||||||
Rule1
|
Rule1
|
||||||
ON Power1#state=1 DO WebSend [192.168.0.144] POWER1 1 ENDON
|
ON Power1#state DO WebSend [192.168.0.144] POWER1 %value% ENDON
|
||||||
ON Power1#state=0 DO WebSend [192.168.0.144] POWER1 0 ENDON
|
ON Power2#state DO WebSend [192.168.0.144] POWER2 %value% ENDON
|
||||||
|
ON Power3#state DO WebSend [192.168.0.144] POWER3 %value% ENDON
|
||||||
|
|
||||||
Rule2
|
Rule1 1
|
||||||
ON Power2#state=1 DO WebSend [192.168.0.144] POWER2 1 ENDON
|
|
||||||
ON Power2#state=0 DO WebSend [192.168.0.144] POWER2 0 ENDON
|
|
||||||
|
|
||||||
Rule3
|
|
||||||
ON Power3#state=1 DO WebSend [192.168.0.144] POWER3 1 ENDON
|
|
||||||
ON Power3#state=0 DO WebSend [192.168.0.144] POWER3 0 ENDON
|
|
||||||
|
|
||||||
Backlog Rule1 1; Rule2 1; Rule3 1
|
|
||||||
```
|
```
|
||||||
|
|
||||||
[Back To Top](#top)
|
[Back To Top](#top)
|
||||||
|
|
Loading…
Reference in New Issue