Rules on R120

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
poe
New user
Posts: 9
Joined: 29 Jul 2016, 23:14

Rules on R120

#1 Post by poe » 11 Aug 2016, 20:57

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

poe
New user
Posts: 9
Joined: 29 Jul 2016, 23:14

Re: Rules on R120

#2 Post by poe » 11 Aug 2016, 21:16

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

Martinus

Re: Rules on R120

#3 Post by Martinus » 11 Aug 2016, 21:18

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 12 guests