mirror of https://github.com/arendst/Tasmota.git
The simple thermostat example did not work as expected, so reworked example, corrected timings on teleperiod and ruletimer1 for example and put note regarding
parent
72e0c005a5
commit
522bd3c12c
4
Rules.md
4
Rules.md
|
@ -459,13 +459,13 @@ To get the status:
|
||||||
|
|
||||||
Everything together:
|
Everything together:
|
||||||
|
|
||||||
INITIAL CONFIG:
|
INITIAL CONFIG: (To note ruletimer1 must be greater that teleperiod for expected results)
|
||||||
|
|
||||||
`backlog switchmode1 3; rule 1; rule 4; teleperiod 60; setoption26 1; setoption0 0; poweronstate 0; mem1 0; mem2 25; mem3 23; var1 0`
|
`backlog switchmode1 3; rule 1; rule 4; teleperiod 60; setoption26 1; setoption0 0; poweronstate 0; mem1 0; mem2 25; mem3 23; var1 0`
|
||||||
|
|
||||||
RULES:
|
RULES:
|
||||||
|
|
||||||
`rule1 on system#boot backlog do ruletimer1 30 endon on Switch1#State do event toggling1=%mem1% endon on event#toggling1=0 do mem 1 endon on event#toggling1=1 do mem 0 endon on rules#timer=1 do backlog var1 0; ruletimer1 30; power1 0; endon on tele-SI7021#temperature do backlog var1 1; ruletimer1 30; event ctrl_ready=1; event temp_demand=%value%; endon on event#ctrl_ready>%mem1% do var1 0 endon on event#temp_demand>%mem2% do power1 0 endon on event#temp_demand<%mem3% do power1 %var1% endon`
|
`rule1 on system#boot backlog do ruletimer1 70 endon on Switch1#State do event toggling1=%mem1% endon on event#toggling1=0 do mem 1 endon on event#toggling1=1 do mem 0 endon on rules#timer=1 do backlog var1 0; ruletimer1 70; power1 0; endon on tele-SI7021#temperature do backlog var1 1; ruletimer1 70; event ctrl_ready=1; event temp_demand=%value%; endon on event#ctrl_ready>%mem1% do var1 0 endon on event#temp_demand>%mem2% do power1 0 endon on event#temp_demand<%mem3% do power1 %var1% endon`
|
||||||
|
|
||||||
EXAMPLE RULES WITHOUT TEMP SENSOR TO TEST THE THERMOSTAT RULES
|
EXAMPLE RULES WITHOUT TEMP SENSOR TO TEST THE THERMOSTAT RULES
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue