mirror of https://github.com/arendst/Tasmota.git
Updated Rule Cookbook (markdown)
parent
85dac033f5
commit
1ea2b49fa1
|
@ -300,16 +300,16 @@ Initial Config:
|
|||
Initial config on console:
|
||||
|
||||
* `SwitchMode1 3` <- Use the switch1 as pushbutton (It will allow us to disable the link between the button and the relay by inserting a rule to dictate what the pushbutton will do - **NOTE: Until rules are created the pushbutton will still control the relay!**)
|
||||
* `Rule 1 ` <- turn on rules
|
||||
* `Rule 4` <- turn off one-shot rule
|
||||
* `Rule1 1 ` <- turn on rules
|
||||
* `Rule1 4` <- turn off one-shot rule
|
||||
* `TelePeriod 60` <- check temp every minute
|
||||
* `SetOption26 1` <- use power1 on mqtt messages
|
||||
* `SetOption0 0` <- dont save relay status on eeprom
|
||||
* `poweronstate 0` <- start all relays off
|
||||
* `mem1 0` <- thermostat status: 0-off 1-enabled - View or set by MQTT cmnd/mqttTopic/mem1
|
||||
* `mem2 25` <- setpoint Temp upper limit - View or set by MQTT cmnd/mqttTopic/mem2
|
||||
* `mem3 23` <- setpoint Temp lower limit - View or set by MQTT cmnd/mqttTopic/mem3
|
||||
* `var1 0 ` <- thermostat actual status: 1-OK 0-NOT READY - View by MQTT cmnd/mqttTopic/var1
|
||||
* `PowerOnState 0` <- start all relays off
|
||||
* `Mem1 0` <- thermostat status: 0-off 1-enabled - View or set by MQTT cmnd/mqttTopic/mem1
|
||||
* `Mem2 25` <- setpoint Temp upper limit - View or set by MQTT cmnd/mqttTopic/mem2
|
||||
* `Mem3 23` <- setpoint Temp lower limit - View or set by MQTT cmnd/mqttTopic/mem3
|
||||
* `Var1 0 ` <- thermostat actual status: 1-OK 0-NOT READY - View by MQTT cmnd/mqttTopic/var1
|
||||
|
||||
Rules:
|
||||
|
||||
|
@ -358,7 +358,7 @@ To get the status:
|
|||
|
||||
Everything together:
|
||||
|
||||
INITIAL CONFIG: (To note RuleTimer1 must be greater that TelePeriod for expected results)
|
||||
INITIAL CONFIG: (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
|
||||
|
|
Loading…
Reference in New Issue