[ANSWERED]validateActionConfigUi Parameter error?

Posted on
Mon Jun 06, 2016 6:41 am
FlyingDiver offline
User avatar
Posts: 7222
Joined: Jun 07, 2014
Location: Southwest Florida, USA

[ANSWERED]validateActionConfigUi Parameter error?

The definition from the wiki is:
Code: Select all
validateActionConfigUi(self, valuesDict, typeId, actionId)   
typeId - action type specified in the type attribute
actionId - the unique action ID for the action being edited (or 0 of it's a new action)
valuesDict - the dictionary of values currently specified in the dialog


But what I'm actually seeing in this method is that the last parameter (actionId) is actually the deviceId of the device specified for the action, as specified:

Code: Select all
   <Action id="sendActivityCommand" deviceFilter="self.harmonyHub" uiPath="DeviceActions">


Am I doing something wrong?

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Mon Jun 06, 2016 7:00 am
autolog offline
Posts: 3991
Joined: Sep 10, 2013
Location: West Sussex, UK [GMT aka UTC]

Re: validateActionConfigUi Parameter error?

Just checked via debugging using my LIFX plugin and either there is a bug in Indigo or a bug in the documentation. :shock:

You are correct, it is returning the Device Id. :)

Posted on
Mon Jun 06, 2016 7:04 am
FlyingDiver offline
User avatar
Posts: 7222
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: validateActionConfigUi Parameter error?

OK, I'm not seeing things. Having the deviceID is important, though.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Mon Jun 06, 2016 2:47 pm
jay (support) offline
Site Admin
User avatar
Posts: 18225
Joined: Mar 19, 2008
Location: Austin, Texas

Re: validateActionConfigUi Parameter error?

Yes, that's a copy/paste documentation bug. Fixed.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Mon Jun 06, 2016 2:49 pm
FlyingDiver offline
User avatar
Posts: 7222
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: [ANSWERED]validateActionConfigUi Parameter error?

Thanks!

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 9 guests