Page 1 of 1

Timer set to zero

Posted: 10 Jul 2018, 09:16
by nonschef
Hi everybody,
I have a problem with my timer. I tested the HTTP call (see https://www.letscontrolit.com/wiki/inde ... #HTTP_call), but I can not set the timer to zero!

On startwatering do
gpio,12,1 //start watering (open valve)
timerSet,1,600 //timer 1 set for 10 minutes
endon

On stopwatering do
timerSet,1,0 //timer 1 set to halt, used to stop watering before the timer ends!
endon

On Rules#Timer=1 do
gpio,12,0 //stop watering (close valve)
endOn

If I call http://ESP-Easy-0/control?cmd=event,startwatering -> reply "OK" and relay goes on
then if I call http://ESP-Easy-0/control?cmd=event,stopwatering -> reply "OK" but relay never goes off anymore

I dont know the problem... pls help

Re: Timer set to zero

Posted: 10 Jul 2018, 12:49
by grovkillen
You never say that the gpio should go to low (0). You only disable the timer.

Re: Timer set to zero

Posted: 10 Jul 2018, 13:02
by nonschef
On stopwatering do
timerSet,1,0 //timer 1 set to halt, used to stop watering before the timer ends!
gpio,12,0 //stop watering (close valve)
endon

ok thanks, understood!
But then its a failure in the description.

Re: Timer set to zero

Posted: 10 Jul 2018, 15:13
by grovkillen
Thanks, I have now fixed this in the wiki.

Re: Timer set to zero

Posted: 08 Jul 2019, 03:41
by rudloffl
Does a timer set to zero trigger the rule ?
From what I see No, but I want to make sure.
Thanks

Re: Timer set to zero

Posted: 08 Jul 2019, 05:42
by grovkillen
If you set it to zero the timer is disabled.