timer problem
Moderators: grovkillen, Stuntteam, TD-er
timer problem
Hello,
Following the update of my esp8266 to the latest firmware, I find myself having a timer problem in a rules.
The timer runs fine but the timeout is not seconds:
If I put 4s I have about 15min
If I but 5s that this counts in several hours.
The NTP is apparently correctly configured, do you have an idea of the problem?
Thanks in advance for your feedback.
Following the update of my esp8266 to the latest firmware, I find myself having a timer problem in a rules.
The timer runs fine but the timeout is not seconds:
If I put 4s I have about 15min
If I but 5s that this counts in several hours.
The NTP is apparently correctly configured, do you have an idea of the problem?
Thanks in advance for your feedback.
Re: timer problem
Please show your rules, so we can understand what you are doing there.
/Ton (PayPal.me)
Re: timer problem
My project will allow the filling of a swimming pool automatically with a notification if the solenoid valve is driven too long.
Code: Select all
on Niveau#Niveau = 1 do
if [Notifuite#Alarme]=0
gpio,14,1
timerSet,1,120
endif
endon
on Niveau#Niveau = 0 do
gpio,14,0
endif
endon
on Rules#Timer=1 do
notify 1
gpio,14,0
TaskValueSet 11,2,1
endon[/i][/i]
Re: timer problem
Code: Select all
on Niveau#Niveau = 0 do
gpio,14,0
endif
-D
Re: timer problem
No endif is too much, I had made modifications to try to solve my problem and I forgot to remove it
Re: timer problem
I'd re-do the rules a bit, like this:
Not sure if that TaskValueSet command is mapped right, but it's more readable and portable to use the names instead of the numbers.
Code: Select all
on Niveau#Niveau do
if %eventvalue1%=1
if [Notifuite#Alarme]=0 // When is this variable reset?
gpio,14,1
timerSet,1,120
endif
else
gpio,14,0
endif
endon
on Rules#Timer=1 do
notify 1
gpio,14,0
TaskValueSet Notifuite,Alarme,1 // Names assumed correct?
endon
/Ton (PayPal.me)
Re: timer problem
Thanks for your feedback.
I will try this way.
The variable [Notifuite#Alarme] is reset by an Android application.
I will try this way.
The variable [Notifuite#Alarme] is reset by an Android application.
Re: timer problem
Hello,
Still same problem with this code, the time is not in seconds.
Still same problem with this code, the time is not in seconds.
Who is online
Users browsing this forum: No registered users and 8 guests