[ANSWERED]: Problems with disabling delayed actions

Posted on
Thu Jul 22, 2010 4:47 am
col offline
Posts: 244
Joined: Jan 08, 2010
Location: UK

[ANSWERED]: Problems with disabling delayed actions

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

Posted on
Thu Jul 22, 2010 9:24 am
matt (support) offline
Site Admin
User avatar
Posts: 21411
Joined: Jan 27, 2003
Location: Texas

Re: Problems with disabling delayed actions

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"

Image

Posted on
Fri Jul 23, 2010 3:30 am
col offline
Posts: 244
Joined: Jan 08, 2010
Location: UK

Re: Problems with disabling delayed actions

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

Posted on
Fri Jul 23, 2010 8:56 am
matt (support) offline
Site Admin
User avatar
Posts: 21411
Joined: Jan 27, 2003
Location: Texas

Re: Problems with disabling delayed actions

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.

Image

Posted on
Fri Jul 23, 2010 9:33 am
col offline
Posts: 244
Joined: Jan 08, 2010
Location: UK

Re: Problems with disabling delayed actions

That worked,

thanks for the great support you give out here.

Colin

Posted on
Mon Oct 20, 2014 9:41 am
AndyVirus offline
Posts: 257
Joined: Mar 18, 2014
Location: Newport Pagnell, UK

Re: Problems with disabling delayed actions

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) :-)

Posted on
Mon Oct 20, 2014 10:48 am
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Problems with disabling delayed actions

http://wiki.indigodomo.com/doku.php?id= ... :documents

There's scripting examples and the IOM (Indigo Object Model) at the bottom of that page.

Posted on
Mon Oct 20, 2014 12:10 pm
autolog offline
Posts: 3988
Joined: Sep 10, 2013
Location: West Sussex, UK [GMT aka UTC]

Re: Problems with disabling delayed actions

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 :)
Last edited by autolog on Tue Nov 11, 2014 1:05 pm, edited 1 time in total.

Posted on
Mon Oct 20, 2014 1:57 pm
AndyVirus offline
Posts: 257
Joined: Mar 18, 2014
Location: Newport Pagnell, UK

Re: Problems with disabling delayed actions

Perfect! Thanks for the direct link to exactly what i needed and thanks for the link to the IOM and examples!

Posted on
Tue Nov 11, 2014 11:56 am
Juju offline
User avatar
Posts: 108
Joined: Aug 31, 2011
Location: Toulouse - FRANCE

Re: [ANSWERED]: Problems with disabling delayed actions

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 :wink: : indigo.schedule.removeDelayedActions(123)

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 4 guests

cron