Updated Rules (markdown)

Michael Ingraham 2019-02-17 00:21:06 -05:00
parent a10ffdf4f3
commit 8fd527586c
1 changed files with 5 additions and 5 deletions

@ -72,7 +72,7 @@ ELSEIF temp > 83 then
VAR1 more83
ELSEIF temp > 81 then
VAR1 more81
ELSEIF temp = 81 then
ELSEIF temp == 81 then
VAR1 equal81
ELSE
VAR1 less81
@ -85,14 +85,14 @@ Rule1
on event#temp>85 do VAR1 more85 endon
on event#temp>83 do VAR1 more83 endon
on event#temp>81 do VAR1 more81 endon
on event#temp=81 do VAR1 equal81 endon
on event#temp==81 do VAR1 equal81 endon
on event#temp<81 do VAR1 less81 endon
```
This is the output in the console:
```
19:43:18 CMD: rule
19:43:18 MQT: stat/living/RESULT = {"Rule1":"ON","Once":"ON","StopOnError":"OFF","Free":322,"Rules":"on event#temp>85 do VAR1 more85 endon on event#temp>83 do VAR1 more83 endon on event#temp>81 do VAR1 more81 endon on event#temp=81 do VAR1 equal81 endon on event#temp<81 do VAR1 less81 endon"}
19:43:18 MQT: stat/living/RESULT = {"Rule1":"ON","Once":"ON","StopOnError":"OFF","Free":322,"Rules":"on event#temp>85 do VAR1 more85 endon on event#temp>83 do VAR1 more83 endon on event#temp>81 do VAR1 more81 endon on event#temp==81 do VAR1 equal81 endon on event#temp<81 do VAR1 less81 endon"}
19:43:24 CMD: event temp=10
19:43:24 MQT: stat/living/RESULT = {"Event":"Done"}
@ -115,14 +115,14 @@ Rule
on event#temp>85 do VAR1 more85 break
on event#temp>83 do VAR1 more83 break
on event#temp>81 do VAR1 more81 endon
on event#temp=81 do VAR1 equal81 endon
on event#temp==81 do VAR1 equal81 endon
on event#temp<81 do VAR1 less81 endon
```
Which will result in the following output:
```
18:00:17 CMD: rule
18:00:17 RSL: RESULT = {"Rule1":"ON","Once":"OFF","StopOnError":"OFF","Free":321,"Rules":"on event#temp>85 do VAR1 more85 break on event#temp>83 do VAR1 more83 break on event#temp>81 do VAR1 more81 endon on event#temp=81 do VAR1 equal81 endon on event#temp<81 do VAR1 less81 endon"}
18:00:17 RSL: RESULT = {"Rule1":"ON","Once":"OFF","StopOnError":"OFF","Free":321,"Rules":"on event#temp>85 do VAR1 more85 break on event#temp>83 do VAR1 more83 break on event#temp>81 do VAR1 more81 endon on event#temp==81 do VAR1 equal81 endon on event#temp<81 do VAR1 less81 endon"}
18:00:25 CMD: event temp=10
18:00:25 RSL: RESULT = {"Event":"Done"}