File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -354,13 +354,14 @@ When the `<if-statement>` is preceded by other Tasmota commands you should use `
354
354
`ON Power2#state=1 DO IF (Mem1==0) Var1 Var1+1; Mem1 1 ENDIF; Delay 10; Power1 on ENDON`
355
355
356
356
!!! example
357
- Rule used to control pressure cooker with a Sonoff S31. Once it is finished cooking, shut off the power after 10 minutes.
357
+ Rule used to control pressure cooker with a Sonoff S31. Once it is finished cooking, wait for 10 minutes and then shut off the power.
358
+
358
359
```haskell
359
360
Rule1
360
361
ON system#boot DO var1 0 ENDON
361
- ON energy#power>100 DO if (var1!=1) ruletimer1 0;var1 1 endif ENDON
362
- ON tele- energy#power<50 DO if (var1==1) var1 2;ruletimer1 600 endif ENDON
363
- ON rules#timer=1 DO Backlog var1 0;power off ENDON
362
+ ON energy#power>100 DO if (var1!=1) var1 1; ruletimer1 0; endif ENDON
363
+ ON energy#power<100 DO if (var1==1) var1 2; ruletimer1 600 endif ENDON
364
+ ON rules#timer=1 DO Backlog var1 0; power off ENDON
364
365
```
365
366
366
367
## Expressions in Rules
You can’t perform that action at this time.
0 commit comments