From 1ea2b49fa1a6ee3d17c403b7a1322ed2f0f68f5e Mon Sep 17 00:00:00 2001 From: Michael Ingraham <34340210+meingraham@users.noreply.github.com> Date: Wed, 16 Oct 2019 09:15:41 -0400 Subject: [PATCH] Updated Rule Cookbook (markdown) --- Rule-Cookbook.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Rule-Cookbook.md b/Rule-Cookbook.md index cce20273..c57d00a7 100644 --- a/Rule-Cookbook.md +++ b/Rule-Cookbook.md @@ -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