Meta (Pseudo) Device Plugin

Posted on
Thu Jan 03, 2013 2:14 pm
Dewster35 offline
Posts: 1030
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: 3290
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: 18199
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: 578
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 7571 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 7571 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: 3290
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.

Posted on
Tue May 14, 2019 1:50 am
Coolcaper offline
Posts: 299
Joined: Aug 30, 2013
Location: Australia

Re: Meta (Pseudo) Device Plugin

The dropbox link doesn't exist anymore....

Posted on
Wed May 15, 2019 1:38 am
berkinet offline
User avatar
Posts: 3290
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Re: Meta (Pseudo) Device Plugin

Coolcaper wrote:
The dropbox link doesn't exist anymore....

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

Posted on
Thu Apr 06, 2023 8:40 pm
Korey offline
User avatar
Posts: 811
Joined: Jun 04, 2008
Location: Henderson, NV

Re: Meta (Pseudo) Device Plugin

Any Plans to upgrade this to Python 3?

--
Korey

Posted on
Sat Apr 08, 2023 10:21 am
berkinet offline
User avatar
Posts: 3290
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Re: Meta (Pseudo) Device Plugin

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.

Posted on
Wed Apr 12, 2023 3:16 am
berkinet offline
User avatar
Posts: 3290
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Re: Meta (Pseudo) Device Plugin

Korey wrote:
Any Plans to upgrade this to Python 3?


Done!

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

Posted on
Wed Apr 12, 2023 11:05 am
Korey offline
User avatar
Posts: 811
Joined: Jun 04, 2008
Location: Henderson, NV

Re: Meta (Pseudo) Device Plugin

Fabulous! thanks!!!

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

--
Korey

Posted on
Wed Apr 12, 2023 4:29 pm
siclark offline
Posts: 1960
Joined: Jun 13, 2017
Location: UK

Re: Meta (Pseudo) Device Plugin

Thanks. I definitely still use this one too!

Posted on
Tue Oct 17, 2023 5:57 pm
rainman50 offline
Posts: 295
Joined: Feb 13, 2006
Location: Michigan

Re: Meta (Pseudo) Device Plugin

How do you download this plugin from Goggle and install it in Indigo?

Posted on
Wed Oct 18, 2023 3:10 am
rainman50 offline
Posts: 295
Joined: Feb 13, 2006
Location: Michigan

Re: Meta (Pseudo) Device Plugin

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.

Posted on
Wed Oct 18, 2023 3:13 am
berkinet offline
User avatar
Posts: 3290
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Re: Meta (Pseudo) Device Plugin

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

Who is online

Users browsing this forum: No registered users and 8 guests

cron