Page 1 of 1
[ANSWERED]: Problems with disabling delayed actions
Posted:
Thu Jul 22, 2010 4:47 am
by col
Hi,
I have set up x10 alarm trigger actions that can be enabled by a remote control, when I press 'on', these are delayed by 5 minutes so that I can leave the house without triggering sensors ect, and the 'off' button to disable the trigger actions when I come home.
My problem is if I press 'on' on the remote control and then 'off' within the 5 minutes it disables the trigger actions but still runs the commands, how can I stop them as soon as I press 'off'.
Thanks
Re: Problems with disabling delayed actions
Posted:
Thu Jul 22, 2010 9:24 am
by matt (support)
Try executing an AppleScript action (copy/paste into the embedded edit field) that looks like this:
- Code: Select all
remove delayed actions for trigger "originalX10AlarmOnTriggerActionNameHere"
Re: Problems with disabling delayed actions
Posted:
Fri Jul 23, 2010 3:30 am
by col
Ok tried that but it does not remove the triggers . I put in the script- remove delayed actions for "_delayed_action_41" as this is what comes up in the time/date actions section,
Is this correct?
Thanks
Re: Problems with disabling delayed actions
Posted:
Fri Jul 23, 2010 8:56 am
by matt (support)
Put the original Trigger Action name in there as you entered it in the Trigger Action dialog when you first created the Trigger Action that listens for the remote control button press.
Re: Problems with disabling delayed actions
Posted:
Fri Jul 23, 2010 9:33 am
by col
That worked,
thanks for the great support you give out here.
Colin
Re: Problems with disabling delayed actions
Posted:
Mon Oct 20, 2014 9:41 am
by AndyVirus
Hello,
This is exactly what i need to do also but in Python as i need to add it to an existing quite large python script. Do you know the equivalent of "remove delayed actions for trigger "originalX10AlarmOnTriggerActionNameHere"" in Python?
Also is there a document Indigo & Python commands? Or a way to figure out the python equivalent of GUI commands? 9Teach a man to fish and all that)
Re: Problems with disabling delayed actions
Posted:
Mon Oct 20, 2014 10:48 am
by howartp
http://wiki.indigodomo.com/doku.php?id= ... :documentsThere's scripting examples and the IOM (Indigo Object Model) at the bottom of that page.
Re: Problems with disabling delayed actions
Posted:
Mon Oct 20, 2014 12:10 pm
by autolog
Take a look at
Remove Delayed Actions - should do what you want.
Just replace the 123 with the id of your trigger or with its name in quotes
Re: Problems with disabling delayed actions
Posted:
Mon Oct 20, 2014 1:57 pm
by AndyVirus
Perfect! Thanks for the direct link to exactly what i needed and thanks for the link to the IOM and examples!
Re: [ANSWERED]: Problems with disabling delayed actions
Posted:
Tue Nov 11, 2014 11:56 am
by Juju
Hello,
Is it possible to do the same thing (Python preferred but I think it's not possible, so Applescript) for delayed actions from a schedule ?
Julien
Auto answer
: indigo.schedule.removeDelayedActions(123)