Updated Commands (markdown)

Michael Ingraham 2019-10-31 00:28:42 -04:00
parent b679d8ef8d
commit b7d806b3f1
1 changed files with 2 additions and 2 deletions

@ -230,11 +230,11 @@ Add\<x\><a id="Add"></a>|`<value>` = add value to Var\<x\> ([example](Rule-Cookb
CalcRes<a id="CalcRes"></a>|Current calculation resolution&emsp; »6.4.0<BR>`0..7` = set number of decimal places to be used in `Add`, `Sub`, `Mult` and `Scale`
Event<a id="Event"></a>|Execute an event to trigger a rule as [documented](Rules#trigger)&emsp; »5.13.0
Mem\<x\><a id="Mem"></a>|Manage up to 5 variables stored on flash (x = `1..5`)&emsp; »6.1.0<BR>`Mem` returns all current values. `Mem<x>` returns the variable's current value.&emsp; »6.6.0.2<BR>`<value>` = store a string value in a variable<BR>`"` = clear stored value in Mem\<x\>
Sub\<x\><a id="Sub"></a>|`<value>` = subtract value to Var\<x\> ([example](Rule-Cookbook/#arithmetic-commands-to-be-used-with-vars))&emsp; »6.1.0<BR>
Mult\<x\><a id="Mult"></a>|`<value>` = multiply value to Var\<x\> ([example](Rule-Cookbook/#arithmetic-commands-to-be-used-with-vars))&emsp; »6.1.0<BR>
Scale\<x\><a id="Scale"></a>|Scale value from a low and high limit to another low and high limits and save in Var\<x\> ([example](Rule-Cookbook/#arithmetic-commands-to-be-used-with-vars))&emsp; »6.1.0<BR>`v` = value: the number to scale<BR>`fl` = fromLow: the lower bound of the values current range<BR>`fh` = fromHigh: the upper bound of the values current range<BR>`tl` = toLow: the lower bound of the values target range<BR>`th` = toHigh: the upper bound of the values target range
Rule\<x\><a id="Rule"></a>|Rules. [Read more...](Rules)&emsp; »6.1.0<BR>`0` = disable Rule\<x\><BR>`1` = enable Rule\<x\><BR>`2` = toggle Rule\<x\><BR>`4` = disable one-shot detection (perform commands as long as trigger is met)<BR>`5` = enable one-shot (e.g., sometimes used for slow changing sensors like temperature) detection<BR>`6` = toggle one-shot detection<BR>`8` = disable stop-on-error after exception restart<BR>`9` = enable stop-on-error after exception restart<BR>`10` = toggle stop-on-error after exception restart<BR>`<value>` = define Rule\<x\><BR>`+<value>` = append to Rule\<x\><BR>` ` = clear Rule\<x\>
RuleTimer\<x\><a id="RuleTimer"></a>|Up to eight timers to be used as countdown event (x = `1..8`)&emsp; »5.13.0<BR>`0..32766` = set countdown rule timer in seconds
Scale\<x\><a id="Scale"></a>|Scale value from a low and high limit to another low and high limits and save in Var\<x\> ([example](Rule-Cookbook/#arithmetic-commands-to-be-used-with-vars))&emsp; »6.1.0<BR>`v` = value: the number to scale<BR>`fl` = fromLow: the lower bound of the values current range<BR>`fh` = fromHigh: the upper bound of the values current range<BR>`tl` = toLow: the lower bound of the values target range<BR>`th` = toHigh: the upper bound of the values target range
Sub\<x\><a id="Sub"></a>|`<value>` = subtract value to Var\<x\> ([example](Rule-Cookbook/#arithmetic-commands-to-be-used-with-vars))&emsp; »6.1.0
Var\<x\><a id="Var"></a>|Manage up to 5 variables stored in memory (x = `1..5`)&emsp; »6.1.0<BR>`Var` returns all current values. `Var<x>` returns the variable's current value.&emsp; »6.6.0.2<BR>`<string>` = store a string value in a variable<BR>`"` = clear stored value in Var\<x\>
### [Timers](Timers)