Actions that don't require a device

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
alistair
Posts: 109
Joined: Fri Jul 14, 2006 11:25 pm

Actions that don't require a device

Post by alistair »

Hi

My plugin will have actions specific to a device (turn on, turn off etc) as well as actions that are plugin wide (Check for Updates for example). Is there a neat way to specify that an action does not require a device, such that the "device" picker doesn't show up?

The undocumented flag "deviceFilter" seems to do something clever here....?

-Alistair
User avatar
jay (support)
Site Admin
Posts: 19232
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: Actions that don't require a device

Post by jay (support) »

Yep - if you exclude the deviceFilter attribute on an <Action> element then the device popup won't show in the action UI. We added deviceFilter sorta last minute and I haven't updated the docs to include it yet.
Jay (Indigo Support)
Twitter | Facebook | LinkedIn
alistair
Posts: 109
Joined: Fri Jul 14, 2006 11:25 pm

Re: Actions that don't require a device

Post by alistair »

alistair wrote:Hi

My plugin will have actions specific to a device (turn on, turn off etc) as well as actions that are plugin wide (Check for Updates for example). Is there a neat way to specify that an action does not require a device, such that the "device" picker doesn't show up?

The undocumented flag "deviceFilter" seems to do something clever here....?

-Alistair
This was a dumb question, Sorry ;)

Take away the "deviceFilter" param altogether, and no device is requested....
User avatar
jay (support)
Site Admin
Posts: 19232
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: Actions that don't require a device

Post by jay (support) »

Just added deviceFilter to the docs so it's more clear... :D
Jay (Indigo Support)
Twitter | Facebook | LinkedIn
Locked

Return to “Extending Indigo with Plugins and Python”