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
Actions that don't require a device
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
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
- 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
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.
Re: Actions that don't require a device
This was a dumb question, Sorryalistair 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
Take away the "deviceFilter" param altogether, and no device is requested....
- 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
Just added deviceFilter to the docs so it's more clear... 