What is it I cannot see?
I have the following rule on R120:
on System#Boot do
gpio,13,1
endon
on Rules#Timer=1 do
if [Temp#Temp1] > 24
gpio,13,0
else
gpio,13,1
endif
timerSet,1,10
endon
GPIO13 goes high at boot, but doesnt go low when Temp1 rises above 24. [Temp#Temp1] is shown on my LCD. So that syntax isnt the problem.
Amy ideas as to what I am missing?
Thx
Preben
Rules on R120
Moderators: grovkillen, Stuntteam, TD-er
Re: Rules on R120
Figured it out.
Timer=1 was never started.
on System#Boot do
gpio,13,1
timerSet,1,10
endon
on Rules#Timer=1 do
if [Temp#Temp1] > 24
gpio,13,0
else
gpio,13,1
endif
timerSet,1,10
endon
Timer=1 was never started.
on System#Boot do
gpio,13,1
timerSet,1,10
endon
on Rules#Timer=1 do
if [Temp#Temp1] > 24
gpio,13,0
else
gpio,13,1
endif
timerSet,1,10
endon
Re: Rules on R120
First guess: Maybe the spaces around your " > 24" condition. The rule parser could be very picky about this.
On the other hand, i think you could also use the Level Control plugin? Should be able to perform the same task.
On the other hand, i think you could also use the Level Control plugin? Should be able to perform the same task.
Who is online
Users browsing this forum: No registered users and 12 guests