Indigo/Insteon Plug In
#1
Posted 07 January 2010 - 08:09 PM
#2
Posted 08 January 2010 - 12:17 AM
#3
Posted 08 February 2010 - 05:15 PM
cfriedberg, on 08 January 2010 - 12:17 AM, said:
I will be incorporating Indigo in my home within the next couple of weeks and this would make for a great plugin. As far as the plugin itself is concerned it really shouldn't be that difficult to write. Since the Indigo software is apple scriptable I imagine that the plugin should look something like the airfoil plugin, or at the very least this plugin would be a good place to start. Once I have set up Indigo I will look a little deeper into the API as well as the scriptable items to see how this plugin could be done (unless someone wants to start sooner of course).
#4
Posted 19 February 2010 - 03:45 AM
cdizzel99, on 08 February 2010 - 05:15 PM, said:
Any word on this?
I would love to be able to have Plex push it's status to Indigo.
IE: when you play a movie, Plex would notify Indigo to dim the lights (or whatever action you would want executed), When plex is paused the lights would brighten up (or whatever action you would want), when movie is stopped, lights could return to normal... ect..
#5
Posted 19 February 2010 - 11:35 AM
#6
Posted 19 February 2010 - 04:46 PM
Korey, on 19 February 2010 - 03:45 AM, said:
I would love to be able to have Plex push it's status to Indigo.
IE: when you play a movie, Plex would notify Indigo to dim the lights (or whatever action you would want executed), When plex is paused the lights would brighten up (or whatever action you would want), when movie is stopped, lights could return to normal... ect..
I have a developed a basic version of the plugin. Essentially the ability to control all of your devices from within plex. I am currently performing some last minute testing and expect to attach a version of the plugin when I get home this afternoon.
#7
Posted 19 February 2010 - 05:21 PM
cdizzel99, on 19 February 2010 - 04:46 PM, said:
That's terrific! I'll gladly help beta test.
#8
Posted 20 February 2010 - 12:51 AM
cfriedberg, on 19 February 2010 - 05:21 PM, said:
I have attached the beta version of the Indigo Plugin, just unzip the file and then move it into your media server plugins folder.
As I said earlier this version is a basic implementation which allows you to turn on and off your indigo devices. This can be done whether or not your Plex machine is the same that is running indigo. If your setup consists of a different mac than that which is running Plex then the first time you start the plugin enter your information into the settings page and make sure to select the toggle. If your Plex machine is also your indigo machine then you do not have to enter any settings and the plugin should work immediately. Please let me know of any issues you have with the plugin and I will try to work through them.
I am currently working on version 0.2 of this plugin which will allow for dimming of lights and in which you will have the ability to control any action groups. I will also try to incorporate HVAC control however this may come later. Please let me know if any devices or features that are missing and you would like to have.
Indigo.bundle.version.0.1.zip (190.63K)
Number of downloads: 54


#9
Posted 20 February 2010 - 01:31 AM
FYI, i installed plex on my indigo machine and the plug in started up without a hitch...so i'm doing something wrong in the remote settings or its not working like you hoped...either way, really kudos to this, i love it already.
Just tried actually turning something off (using Plex on the machine with Indigo running on it, still can't get the remote machine to work, even after putting in the Indigo remote server userid/password). So the plug in turned off the light, but a) it didn't update the state of the light to <off> after it turned off, nor did it change the state within Indigo, indigo still showed it as On.
#10
Posted 20 February 2010 - 04:36 AM
cfriedberg, on 20 February 2010 - 01:31 AM, said:
FYI, i installed plex on my indigo machine and the plug in started up without a hitch...so i'm doing something wrong in the remote settings or its not working like you hoped...either way, really kudos to this, i love it already.
Just tried actually turning something off (using Plex on the machine with Indigo running on it, still can't get the remote machine to work, even after putting in the Indigo remote server userid/password). So the plug in turned off the light, but a) it didn't update the state of the light to <off> after it turned off, nor did it change the state within Indigo, indigo still showed it as On.
I found a couple of errors in my script, specifically when dealing with the login name. I have attached an updated version of the plugin which should fix these issues. Also sorry for not detailing what the preferences are actually looking for (got ahead of myself) but here is that information:
Remote Computer User Name - this is the username that you would use to sign into the computer (this is not the username set up for indigo)
Remote Computer Password - this is the password that you would use to sign into the computer (this is not the password set up for indigo)
Remote Computer Network Address - Is the network IP, this is the address found in the About This Mac Network tab.
As far as the status not being updated in Indigo or the plugin, I am not quite sure. I have set this up on both my computers and have not no issues however I am trying to duplicate the response that your getting. Thanks for testing this plugin and again please let me know if you have any issues. Thanks.
Indigo.bundle.version.0.11.zip (365.13K)
Number of downloads: 54
#11
Posted 20 February 2010 - 08:39 AM
You and I are taking somewhat different tactics... you're working with remote AppleScript execution, and I was working with the RESTful API.
I didn't have any luck with your approach (with .11, with support for remote Apple events, etc). I didn't have any luck with mine either.
Here's what I found out on the RESTful side. IndigoServer uses digest authentication. It provides "Indigo Control Server" as the authentication realm. I'm not sure if I'm doing it correctly, because I cannot seem to authenticate to IndigoServer with Python.
With <curl>, however, I can. It's just <curl -u "username:password" http://10.0.1.2:8176/ --digest>. Very simple. So I just had a little function that does that (if the
OH GOD DAMMIT, I JUST REALIZED WHY AUTHENTICATION WASN'T WORKING.
Alright, I really need a cigarette now. I think I'm going to head off to bed and cry myself to sleep. I'll be back tomorrow.
#12
Posted 20 February 2010 - 11:10 AM
1. When Plex and Indigo are on same machine works great. New version updates status in both Plex and Indigo...AWESOME. one question though is that my devices don't seem to be in any order and i can't sort them by name even when i select from the slide out menu on the right...any chance you can look into that?
2. When Indigo is running on a different machine than Plex, the authentication doesn't seem to work. Screen doesn't update with devices when i put in the information.
Terrific effort thus far. BTW, given that i started the same thread over at the Indigo forums, and Kalisphoenix had taken up the torch over there, i just pointed him over here...
#14
Posted 20 February 2010 - 03:26 PM
cfriedberg, on 20 February 2010 - 11:10 AM, said:
1. When Plex and Indigo are on same machine works great. New version updates status in both Plex and Indigo...AWESOME. one question though is that my devices don't seem to be in any order and i can't sort them by name even when i select from the slide out menu on the right...any chance you can look into that?
2. When Indigo is running on a different machine than Plex, the authentication doesn't seem to work. Screen doesn't update with devices when i put in the information.
Terrific effort thus far. BTW, given that i started the same thread over at the Indigo forums, and Kalisphoenix had taken up the torch over there, i just pointed him over here...
I believe that I have determined why it will not access your IndigoServer from a remote machine, the Remote Apple Events setting in the Sharing tab needs to be selected on the machine that is running indigo. This will enable the plugin to send the commands to your remote machine. Please give this a try and let me know if it works. Thanks.
#15
Posted 20 February 2010 - 03:28 PM
#16
Posted 20 February 2010 - 03:55 PM
cdizzel99, on 20 February 2010 - 03:26 PM, said:
sorry but no. I turned it first on the machine running Indigo and tried the remote machine running Plex, no dice. Then also turned it on the machine running Plex (so no both macs have it turned on), and still no dice.
#17
Posted 20 February 2010 - 04:32 PM
#18
Posted 20 February 2010 - 06:35 PM
cfriedberg, on 20 February 2010 - 04:32 PM, said:
This is a really strange issue, I have both a mac mini and macbook pro which I have installed the plugin on and they can access my indigo machine without any problems.
A couple of things to help me with troubleshooting this:
1. Try running the plugin with the preferences entered on your indigo machine and see if that works.
2. Try running the following line in applescript: (running this line may ask you to input your USERNAME and PASSWORD again)
tell application "IndigoServer" of machine "eppc://USERNAME:PASSWORD@NETWORKADDRESS" to return name of every device
substitute your information for USERNAME, PASSWORD and NETWORKADDRESS,
Try first on your indigo machine (if this doesn't work then recheck your info) and then if that works try again on your plex machine.
#19
Posted 20 February 2010 - 06:40 PM
cdizzel99, on 20 February 2010 - 06:35 PM, said:
A couple of things to help me with troubleshooting this:
1. Try running the plugin with the preferences entered on your indigo machine and see if that works.
2. Try running the following line in applescript: (running this line may ask you to input your USERNAME and PASSWORD again)
tell application "IndigoServer" of machine "eppc://USERNAME:PASSWORD@NETWORKADDRESS" to return name of every device
substitute your information for USERNAME, PASSWORD and NETWORKADDRESS,
Try first on your indigo machine (if this doesn't work then recheck your info) and then if that works try again on your plex machine.
Ok, I tried #1 on my indigo machine and as soon as i did, all my devices disappeared...
The user name is : Karen Friedberg (my wife's Mac)
Password is password for her 'account' on the iMac
Network Address is 10.0.1.198 (which I made static).
Tried #2 in Applescript Editor on my Indigo machine
tell application "IndigoServer" of machine "eppc://Karen Friedberg:xxxxxxx@10.0.1.198" to return name of every device
I replace xxxxxxx with the right password and got the following error when i hit compile:
Can’t get application "IndigoServer" of machine "eppc://Karen Friedberg:xxxxxxx@10.0.1.198".
#20
Posted 20 February 2010 - 07:00 PM
So the problem was the computer name, I am guess the space mixed it up. When I deleted the "Friedberg" from the name everything worked on the remote machine.
ITS AWESOME! Terrific work.
So since i'm greedy, here are some feature requests:
1. Control Pages - This would be amazing
2. Thermostat control
3. Scripting - (for example, the ability such that when a movie starts certain lights automatically dim/turn off).
But seriously, this is wicked cool. Amazing job!
BTW, i opened the bundle, but how do i actually open the python file to see the code?

Sign In
Register
Help


MultiQuote