Page 1 of 1

deleted blockly event still running

Posted: Monday 09 September 2019 20:47
by Dave21w
Er HELP !!
I created an event i no longer need, i switched it off and saved it in its off state before then deleting it but now it's still running, where should i be looking to stop this from running.

TIA

Dave

Re: deleted blockly event still running

Posted: Monday 09 September 2019 20:55
by AllesVanZelf
Strange.
You maybe could restart domoticz?

Re: deleted blockly event still running

Posted: Monday 09 September 2019 21:02
by Dave21w
As the event started at 19:35 and then a lamp brightness increase of 5% was set to happen every 120 secs until it got to 60% I'm wondering if the event was loaded somewhere and even though I deleted it the remainder had to run till finished, it won't cause me any trouble tonight so i'll leave the reboot as it's finished now but need to check if it starts again tomorrow evening and update here then.

Thanks for your input.

Re: deleted blockly event still running

Posted: Wednesday 11 September 2019 21:48
by Dave21w
A quick update, it appears (although I'm happy to be corrected if I'm wrong) that once a blockly event is triggered if there is some time delays built in that even if you disable the event and save it the remaining operations will still continue until it reaches its end.

Re: deleted blockly event still running

Posted: Wednesday 11 September 2019 22:31
by waaren
Dave21w wrote: Wednesday 11 September 2019 21:48 A quick update, it appears (although I'm happy to be corrected if I'm wrong) that once a blockly event is triggered if there is some time delays built in that even if you disable the event and save it the remaining operations will still continue until it reaches its end.
That is correct. The delayed command(s) are out of control of the (Blockly, Lua, dzVents) scripts. In dzVents you can use the cancelQueuedCommands() method to delete all commands for a device that are scheduled with afterXXX() but I don't think this type of command is available in Blockly.