Updated Rule Cookbook (markdown)

Michael Ingraham 2019-10-16 09:15:41 -04:00
parent 85dac033f5
commit 1ea2b49fa1
1 changed files with 8 additions and 8 deletions

@ -300,16 +300,16 @@ Initial Config:
Initial config on console: 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!**) * `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 * `Rule1 1 ` <- turn on rules
* `Rule 4` <- turn off one-shot rule * `Rule1 4` <- turn off one-shot rule
* `TelePeriod 60` <- check temp every minute * `TelePeriod 60` <- check temp every minute
* `SetOption26 1` <- use power1 on mqtt messages * `SetOption26 1` <- use power1 on mqtt messages
* `SetOption0 0` <- dont save relay status on eeprom * `SetOption0 0` <- dont save relay status on eeprom
* `poweronstate 0` <- start all relays off * `PowerOnState 0` <- start all relays off
* `mem1 0` <- thermostat status: 0-off 1-enabled - View or set by MQTT cmnd/mqttTopic/mem1 * `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 * `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 * `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 * `Var1 0 ` <- thermostat actual status: 1-OK 0-NOT READY - View by MQTT cmnd/mqttTopic/var1
Rules: Rules:
@ -358,7 +358,7 @@ To get the status:
Everything together: 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 backlog SwitchMode1 3; Rule 1; Rule 4; TelePeriod 60; SetOption26 1; SetOption0 0; poweronstate 0; mem1 0; mem2 25; mem3 23; var1 0