thanks for the work that all have done.
i am thinking about this rules command "TimerStop" that dont are implemmented, i wonder that was a good idea to save memory when its is runing the timerset command.
So i will give a example:
i have domoticz to send http command to start event on esp "http://xx.xx.xx.xx/control?cmd=event,rele10", and on esp rules have:
Code: Select all
on rele10 do
MCPGPIO,1,0 // Open valve
timerSet 1,1800
endon
on Rules#Timer=1 do
MCPGPIO,1,1 // close valve
endon
resume: domoticz open and close the relay but esp rule timer continues run after close.
what i want say with this?
with this command we could do this:
Code: Select all
on rele10 do
MCPGPIO,1,0 //open valve
timerSet 1,1800
endon
on Rules#Timer=1 do
MCPGPIO,1,1 //close valve
endon
on rele10#Switch=1
timerStop 1 //will stop timer if valve are close before 1800s
endon
I have 8 reles running one after the other, but it is causing some reboot so I think it will exceed the RULES_TIMER_MAX or SYSTEM_TIMER_MAX.
thanks and merry christmas