Timer set to zero

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
nonschef
New user
Posts: 2
Joined: 10 Jul 2018, 09:05

Timer set to zero

#1 Post by nonschef » 10 Jul 2018, 09:16

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

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Timer set to zero

#2 Post by grovkillen » 10 Jul 2018, 12:49

You never say that the gpio should go to low (0). You only disable the timer.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

nonschef
New user
Posts: 2
Joined: 10 Jul 2018, 09:05

Re: Timer set to zero

#3 Post by nonschef » 10 Jul 2018, 13:02

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.

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Timer set to zero

#4 Post by grovkillen » 10 Jul 2018, 15:13

Thanks, I have now fixed this in the wiki.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

rudloffl
Normal user
Posts: 43
Joined: 04 Jul 2019, 07:17

Re: Timer set to zero

#5 Post by rudloffl » 08 Jul 2019, 03:41

Does a timer set to zero trigger the rule ?
From what I see No, but I want to make sure.
Thanks

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Timer set to zero

#6 Post by grovkillen » 08 Jul 2019, 05:42

If you set it to zero the timer is disabled.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

Post Reply

Who is online

Users browsing this forum: No registered users and 30 guests