Remove Delayed Actions

This is a legacy forum which is locked for new topics. New topics should be started in one of the other forums under Extending Indigo
Forum rules
This is a legacy forum which is locked for new topics. New topics should be started in one of the other forums under Extending Indigo
User avatar
berkinet
Posts: 3441
Joined: Tue Nov 18, 2008 2:08 pm
Location: Berkeley, CA, USA & Mougins, France

Remove Delayed Actions

Post by berkinet »

I have searched the forums and the docs, but I can't seem to find the Python method to "remove delayed actions."

I tried indigo.actionGroup.removeDelayedActions(), but no joy.
User avatar
matt (support)
Site Admin
Posts: 21542
Joined: Mon Jan 27, 2003 1:17 pm
Location: Texas
Contact:

Re: Remove Delayed Actions

Post by matt (support) »

Hmmm... looks like it is partially missing currently (we'll get it added). However, currently you can remove delayed actions for a specific device via:

Code: Select all

indigo.device.removeDelayedActions(123)
But you cannot remove other delayed actions.
Image
User avatar
matt (support)
Site Admin
Posts: 21542
Joined: Mon Jan 27, 2003 1:17 pm
Location: Texas
Contact:

Re: Remove Delayed Actions

Post by matt (support) »

In Indigo 5.0.4 (not yet available) the following will work:

Code: Select all

indigo.server.removeAllDelayedActions()
indigo.device.removeDelayedActions(someDevice)
indigo.trigger.removeDelayedActions(someTrigger)
indigo.schedule.removeDelayedActions(someSchedule)
Image
Locked

Return to “Extending Indigo with Plugins and Python”