Page 1 of 1

temperatur control loop does not work

Posted: 13 Nov 2017, 21:35
by olem_de
Hello
i want to control the temperatur with a simple 2-state control (on/off). My rules does not work and i don't know why. Does anyone see an error in my rule?
Also if i test the relais with the gpio command they are inverted: 1 -> Off and 0 ->On (but this is a minor problem)

on DS18#Temperature
if [DS18#Temperature]<[Sollwert#Temp]
gpio,13,0
else
gpio,13,1
endif
endon

I have installed ESP_Mega (Testing, because i need the rotary switch function)

Thx
Ole

Re: temperatur control loop does not work

Posted: 13 Nov 2017, 22:13
by toffel969
olem_de wrote: 13 Nov 2017, 21:35 Hello
i want to control the temperatur with a simple 2-state control (on/off). My rules does not work and i don't know why. Does anyone see an error in my rule?
Also if i test the relais with the gpio command they are inverted: 1 -> Off and 0 ->On (but this is a minor problem)

on DS18#Temperature
if [DS18#Temperature]<[Sollwert#Temp]
gpio,13,0
else
gpio,13,1
endif
endon

I have installed ESP_Mega (Testing, because i need the rotary switch function)

Thx
Ole
You are missing a "do". Try :

Code: Select all

on DS18#Temperature do
if [DS18#Temperature]<[Sollwert#Temp]
  gpio,13,0
else
  gpio,13,1
endif
endon

Re: temperatur control loop does not work

Posted: 13 Nov 2017, 22:35
by olem_de
Thx !
...the missing 'do'

;)