Skip to content

Commit ced1d88

Browse files
authored
Merge pull request #1479 from robertoostenveld/patch-1
update pressure cooker example
2 parents 69ede98 + 930fe2b commit ced1d88

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

docs/Rules.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -354,13 +354,14 @@ When the `<if-statement>` is preceded by other Tasmota commands you should use `
354354
`ON Power2#state=1 DO IF (Mem1==0) Var1 Var1+1; Mem1 1 ENDIF; Delay 10; Power1 on ENDON`
355355
356356
!!! 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+
358359
```haskell
359360
Rule1
360361
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
364365
```
365366
366367
## Expressions in Rules

0 commit comments

Comments
 (0)