deleted blockly event still running

Moderator: leecollings

Post Reply
Dave21w
Posts: 406
Joined: Sunday 29 November 2015 21:55
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: UK
Contact:

deleted blockly event still running

Post 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
AllesVanZelf
Posts: 265
Joined: Monday 05 February 2018 8:42
Target OS: Raspberry Pi / ODroid
Domoticz version: 12467
Location: Netherlands, near Haarlem
Contact:

Re: deleted blockly event still running

Post by AllesVanZelf »

Strange.
You maybe could restart domoticz?
Domoticz 2020.1 (12230) on Raspberry Pi 3B with Raspian Buster. Besides Domoticz, Rpi is running Pi-Hole.
Dave21w
Posts: 406
Joined: Sunday 29 November 2015 21:55
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: UK
Contact:

Re: deleted blockly event still running

Post 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.
Dave21w
Posts: 406
Joined: Sunday 29 November 2015 21:55
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: UK
Contact:

Re: deleted blockly event still running

Post 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.
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: deleted blockly event still running

Post 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.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest