Meta (Pseudo) Device Plugin

Posted on
Thu Jan 03, 2013 2:14 pm
Dewster35 offline
Posts: 992
Joined: Jul 06, 2010
Location: Petoskey, MI

Re: Meta (Pseudo) Device Plugin

berkinet wrote:
Dewster35 wrote:
...Is there a limit to how many scenes this plugin can look at in the controller? I have 30 currrently setup.

There is no limit to the number of scenes that can be listed. And I just double checked the code under Indigo 6. However, I have a suspicion as to where the problem lies.

First, Disable the MetaDevice plugin. Then, in a Finder window, go to the Indigo 6 Plugins folder. Then open (Right click and select "Show Package Contents") the MetaDevice plugin. Then, navigate down to Contents -> Server Plugin. Finally delete the following two files: berkinet.pyc and plugin.pyc (Only the pyc files, not the py files. Finally, restart the plugin.

Let me know if this resolves the problem.


Thank you. This did correct the problem.

Posted on
Thu Jan 03, 2013 2:34 pm
berkinet offline
User avatar
Posts: 2830
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Re: Meta (Pseudo) Device Plugin

Dewster35 wrote:
...Thank you. This did correct the problem.

Good to hear.I think the problem is the plugin was still looking at your Indigo 5 installation. It is probably caused by migrating the Python "object" code files when doing a version upgrade. If Python does not see a pyc file, it just creates one on the fly. And, the new code contained the right path (V6 instead of V5). I have reported the issue to Matt and Jay.

Posted on
Thu Jan 03, 2013 2:37 pm
jay (support) offline
Site Admin
User avatar
Posts: 13053
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Meta (Pseudo) Device Plugin

Yep, we're looking into it now.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Fri Jan 04, 2013 6:48 pm
CraigM offline
Posts: 483
Joined: Oct 28, 2007

Re: Meta (Pseudo) Device Plugin

berkinet wrote:
If you want to control something analogous to the brightness level of the Meta-Device, your action must include (or would probably just be) a script. For Brightness level changes, the same Action Group event will be executed regardless of whether the brightness increases or decreases.

If your Action script needs to have the current brightness level (as would be the case if you want to set something to an arbitrary level between 0 and 100), first it will have to query the meta device to get its brightness information and then use that to set the brightness of some real device. The following two line scripts should do what you want:

      In Python that would be something like:
      # Assume the meta-device is device number 123 and the controlled device is 456
      theBrightness = indigo.devices[123].states['brightnessLevel']
      indigo.dimmer.setBrightness(456, value=theBrightness)

      And, in AppleScript:
      -- Assume the meta-device is named Meta Dimmer and the controlled device is named Office Lamp
      set theBrightness to the brightness of device "Meta Dimmer"
      set brightness of device "Office Lamp" to theBrightness


Really having a monster time guessing how to make this work. Is it possible to include full step by step instructions?

Here is what I have so far:

Picture 9.png
Picture 9.png (28.43 KiB) Viewed 1484 times

The SCENE has two links
1) The Lamplinc the lamp is plugged into
2) A command to turn on the appropiate KPL button light

Picture 10.png
Picture 10.png (30.06 KiB) Viewed 1484 times


And when I dim the device [slider in Indigo devices] I get a NEVER ENDING repeat in the log. It locked up Indigo so bad that I had to force quit just to make it stop!
Code: Select all
Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46
  Action Group                    META Totchiere
  Meta Device META [dining torchiere] Device "META [dining torchiere]" brightness set to 46


Can any users out there who have this working point me in the right direction?

Posted on
Fri Jan 04, 2013 9:05 pm
berkinet offline
User avatar
Posts: 2830
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Re: Meta (Pseudo) Device Plugin

If a lamp controlled by the Meta-Device is also used as a controlling device you will have a loop, like what you are seeing. The basic idea of the Meta-Device plugin is to give a face to something that has no real physical appearance. This allows users to create "devices" that are really virtual in nature, but still appear in Indigo as "real" devices.

For example, I could use a rotary knob sensor like this: Image to control a group of lights. ( Of course, this assumes that Indigo can read input from the know somehow and also that someone has not written a specific plug in for the device. ) With the meta device plugin I can control the lights with the knob, or through Indigo's device window or via the iTouch app.

Who is online

Users browsing this forum: No registered users and 1 guest