Page 1 of 1

ESP Rules

Posted: 12 Feb 2018, 17:46
by DaveS
Good Day All,

Thanks to everyone involved in the development of this brilliant firmware for the ESP8266, I have found it most useful and stable.

I am building a peltier temperature controller for home brewing fermentation, IO 12 to cool and IO 14 to heat,the rules below are working well,but I need both GPIO pins taken low when temperature is between 6 and 7 degrees.

What rule can be used to implement this ?

Does ESPeasy support =< and => ?

Have tried but it does not seem to work,unless my syntax is wrong.

On Fermenter_Temp#Fermenter_Temperature<6 do
gpio,12,0
gpio,14,1
endon

On Fermenter_Temp#Fermenter_Temperature>7 do
gpio,14,0
gpio,12,1
endon

Cheers Dave

Re: ESP Rules

Posted: 12 Feb 2018, 17:52
by Micha_he
add...

Code: Select all

On Fermenter_Temp#Fermenter_Temperature>6 do
	gpio,14,0
endon

On Fermenter_Temp#Fermenter_Temperature<7 do
	gpio,12,0
endon

Re: ESP Rules

Posted: 12 Feb 2018, 18:21
by DaveS
Those rules perfectly,thanks

Do ESPeasy rules support =< and => or only <,> and =

Re: ESP Rules

Posted: 12 Feb 2018, 18:25
by grovkillen
DaveS wrote: 12 Feb 2018, 18:21 Those rules perfectly,thanks

Do ESPeasy rules support =< and => or only <,> and =
Only < > = are supported.

But X=>10 can be changed to X>9.99 for almost the same result.