Page 3 of 4

Re: Meta (Pseudo) Device Plugin

PostPosted: Thu Jan 03, 2013 2:14 pm
by Dewster35
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.

Re: Meta (Pseudo) Device Plugin

PostPosted: Thu Jan 03, 2013 2:34 pm
by berkinet
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.

Re: Meta (Pseudo) Device Plugin

PostPosted: Thu Jan 03, 2013 2:37 pm
by jay (support)
Yep, we're looking into it now.

Re: Meta (Pseudo) Device Plugin

PostPosted: Fri Jan 04, 2013 6:48 pm
by CraigM
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 7567 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 7567 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?

Re: Meta (Pseudo) Device Plugin

PostPosted: Fri Jan 04, 2013 9:05 pm
by berkinet
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.

Re: Meta (Pseudo) Device Plugin

PostPosted: Tue May 14, 2019 1:50 am
by Coolcaper
The dropbox link doesn't exist anymore....

Re: Meta (Pseudo) Device Plugin

PostPosted: Wed May 15, 2019 1:38 am
by berkinet
Coolcaper wrote:
The dropbox link doesn't exist anymore....

It is now on Google Drive: https://drive.google.com/file/d/0B3q1CE ... sp=sharing

Re: Meta (Pseudo) Device Plugin

PostPosted: Thu Apr 06, 2023 8:40 pm
by Korey
Any Plans to upgrade this to Python 3?

Re: Meta (Pseudo) Device Plugin

PostPosted: Sat Apr 08, 2023 10:21 am
by berkinet
Korey wrote:
Any Plans to upgrade this to Python 3?

I didn’t think anyone was even using this plugin. I’ll take a look at it next week. But, it should be pretty easy to update.

Re: Meta (Pseudo) Device Plugin

PostPosted: Wed Apr 12, 2023 3:16 am
by berkinet
Korey wrote:
Any Plans to upgrade this to Python 3?


Done!

See: https://drive.google.com/open?id=1-B0jx ... 7xEySMQYsB

Re: Meta (Pseudo) Device Plugin

PostPosted: Wed Apr 12, 2023 11:05 am
by Korey
Fabulous! thanks!!!

Another green dot in the plugin list!! :mrgreen:

Re: Meta (Pseudo) Device Plugin

PostPosted: Wed Apr 12, 2023 4:29 pm
by siclark
Thanks. I definitely still use this one too!

Re: Meta (Pseudo) Device Plugin

PostPosted: Tue Oct 17, 2023 5:57 pm
by rainman50
How do you download this plugin from Goggle and install it in Indigo?

Re: Meta (Pseudo) Device Plugin

PostPosted: Wed Oct 18, 2023 3:10 am
by rainman50
Does this plugin work if I'm using Indigo 2022.1 that I think uses Python 2?

Thanks for any info and thanks for sending me the link.

Re: Meta (Pseudo) Device Plugin

PostPosted: Wed Oct 18, 2023 3:13 am
by berkinet
rainman50 wrote:
Does this plugin work if I'm using Indigo 2022.1 that I think uses Python 2?

Thanks for any info and thanks for sending me the link.

This plug-in is written in Python 3. It has not been tested for backwards compatibility with previous versions of Indigo