EventGhost, Openremote and Philips Hue

Got a good idea? You can suggest new features here.
Post Reply
knorrhane
Posts: 2
Joined: Wed Nov 30, 2011 10:29 am

EventGhost, Openremote and Philips Hue

Post by knorrhane » Tue Dec 31, 2013 10:58 am

Hi,

I just wanted to share a configuration I set up today to be able to control my Philiphs Hue lights using EventGhost. I've been searching around, looking for how to do this using python, UDP or TCP/IP but I never quite got it.

In the end, I downloaded WinHue which has an application that runs in the command window so setting it up with EventGhost was dead easy! I'm using the Broadcaster plugin to listen for UDP commands sent from Openremote which was also really easy to set up, as I just added my commands to Openremote and sent them to EventGhost. I added them to macros using drag and drop.

I'm also using a Tellstick Duo with wireless light switches for some spotlights I have and that was also easy to set-up using the Tellstick Duo plugin. My next step is to use my USB-UIRT to control all the lights from my Harmony remote.

Just wanted to say thanks for a really good software!

Happy new year!

krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: EventGhost, Openremote and Philips Hue

Post by krambriw » Tue Dec 31, 2013 11:14 am

Nice, wish you and all users the same

Best regards, Walter

andyd
Posts: 21
Joined: Sun Jan 17, 2010 1:22 am

Re: EventGhost, Openremote and Philips Hue

Post by andyd » Wed Mar 12, 2014 2:39 am

Hi. Any chance you can elaborate on your set up?

I just got my bulbs but I also just realized that I'm not sure how I'm going to control them without using my phones. I rather be able to control them through my Harmony One

techoguy
Experienced User
Posts: 157
Joined: Mon Mar 18, 2013 1:32 am

Re: EventGhost, Openremote and Philips Hue

Post by techoguy » Thu Apr 03, 2014 6:11 am

Hi,
I've been thinking of making a plugin that will communicate directly with the Hue lights.
I'd be curious how many people have Hue and would be interested in a plugin like this.

If implemented it would find your hue hub automatically, connect to it like your app, then control the lights and colors similar to the app.

I'm not exactly sure when i'll get to it but the more people are interested in it the sooner i'll work on it.

Currently i'm just using python script actions to send commands directly to my Hue lights but it makes it a little hard to adjust or add commands.
The Latest SONOS Plugin:
Latest version can be found here: http://eventghost.org/forum/viewtopic.p ... 05f#p30309

EventGhost Lets me automate my home the way I want it, I love using it!

Pliind
Experienced User
Posts: 50
Joined: Tue Dec 31, 2013 7:40 pm

Re: EventGhost, Openremote and Philips Hue

Post by Pliind » Sat Sep 06, 2014 12:06 pm

I don't have hue. But if there was a plugin for it I'd throw myself into my car and buy a pack of hues.

RiseUp
Posts: 16
Joined: Mon Nov 24, 2014 3:28 am

Re: EventGhost, Openremote and Philips Hue

Post by RiseUp » Mon Nov 24, 2014 3:36 am

techoguy wrote:Hi,
I've been thinking of making a plugin that will communicate directly with the Hue lights.
I'd be curious how many people have Hue and would be interested in a plugin like this.

If implemented it would find your hue hub automatically, connect to it like your app, then control the lights and colors similar to the app.

I'm not exactly sure when i'll get to it but the more people are interested in it the sooner i'll work on it.

Currently i'm just using python script actions to send commands directly to my Hue lights but it makes it a little hard to adjust or add commands.
I have Philips Hue bulbs and would LOVE it if you made a plugin! :D

nikeb
Posts: 9
Joined: Fri Dec 19, 2014 12:09 pm

Re: EventGhost, Openremote and Philips Hue

Post by nikeb » Fri Dec 19, 2014 12:16 pm

Hi

I m using Eventghost long time and i'm a happy Hue user also.

i figured out how to make it work using a simple python script and the python plugin in eventghost.

I would love to have an Eventghost plugin about the hue lights.

My code is just using Hue API and python library

Code: Select all

import urllib2
opener = urllib2.build_opener(urllib2.HTTPHandler)
request = urllib2.Request('http://[Bridge IP]/api/[YOUR CUSTOM ID]/lights/[LIGHT ID]/state', data='{"bri": 254, "on": true,"hue": 25000, "sat": 254,"ct": 500, [WHATEVER PARAMETER YOU LIKE]}')
request.add_header('Content-Type', 'your/contenttype')
request.get_method = lambda: 'PUT'
url = opener.open(request)
I guess that making a plugin could be easy, but i'm not an advaced user,
just a noob python player.

Regards

Phil
Experienced User
Posts: 110
Joined: Tue Apr 15, 2014 10:42 am
Location: Merseyside, UK

Re: EventGhost, Openremote and Philips Hue

Post by Phil » Wed Jan 28, 2015 2:30 pm

Hi
There isnt a plugin for this, but there is a python library that is really easy to use and can be added to eventghost
you just need phue.py from here
https://github.com/studioimaginaire/phue

and dump it in here

\EventGhost\lib26\site-packages

then follow the instructions on the download site. Works fine for me :D

krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: EventGhost, Openremote and Philips Hue

Post by krambriw » Thu Jan 29, 2015 6:47 am

With that library it would be really easy to create a plugin for Philips Hue stuff. I do like the technology used, ZigBee is a great two-way mesh network means you can get a control feedback of current state of devices.

There are still some question marks before I would get convinced to migrate

- It's a pity that from what I have found, Philips does not have generic plugs to control already existing lamps and other power consumers.
- Since they claim they are using ZigBee I wonder if the controller also can handle ZigBee devices from other vendors. Such a mix I think is necessary to fulfill requirements for an automated home
- unknown to me is the price level, if in the range of Z-Wave or higher then this is also a blocker in many cases

Phil
Experienced User
Posts: 110
Joined: Tue Apr 15, 2014 10:42 am
Location: Merseyside, UK

Re: EventGhost, Openremote and Philips Hue

Post by Phil » Fri Jan 30, 2015 9:26 am

I think a lot of companies now use zigbee for their protocol but usually it is locked down to their own private network, which is the case with hue which also locks out otherdevices, maybe at some point a hack will come. I cant see philips ever releasing plugs to turn the things on and off as effectively you do that at the bulb now rather than the socket.

In the UK a hue lux bulb (the none colour version) is about £25 which is comparable with a z-wave dimmer. The colour bulbs are about £50 and do something that you cant do with z-wave. So its all dependant on what you're after.

I use a 433mhz socket to switch the lights on in my lounge (a mix of hue and normal) and then after a few seconds dim the hue to a good level. When the off button is pressed the hue dims and then the 433mhz sockets get turned off. Also I have it configured so when XBMC plays it dims the light (soon to be dependant of time of day and the playlist that's playing).

krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: EventGhost, Openremote and Philips Hue

Post by krambriw » Fri Jan 30, 2015 12:21 pm

@Phil
A bit OT but anyway interesting to know, at least I am curious..How do you like the light that is produced from the Hue lamps?
Comparable with traditional bulbs, nothing has been really approved by my family. The previous low energy ones where cold, the LED's doesn't really give the same warm white as the old bulbs. I have tried a number of different brands but so far, they have not yet the necessary WAF level if you know what I mean ;). They have been either too cold or had some kind of green in the light. So, are the Hue's worth the investment at the moment, are they giving a comparable white warm light?

Phil
Experienced User
Posts: 110
Joined: Tue Apr 15, 2014 10:42 am
Location: Merseyside, UK

Re: EventGhost, Openremote and Philips Hue

Post by Phil » Fri Jan 30, 2015 12:31 pm

The hue lux (the none-colour)ones you wouldnt know the difference between it and a 'standard' lightbulb, correct WAF level is easily met! 9w, warm light and available on the network, comes on full brightness if the main switch is turned on as a normal lightbulb would so no danger of technology getting in the way of the light coming on.
I believe the colour ones aren't good at showing some bolder colours specifically because they wanted to be able to get the warmer whites correct.

Aquila
Experienced User
Posts: 88
Joined: Wed Jan 28, 2015 2:49 am

Re: EventGhost, Openremote and Philips Hue

Post by Aquila » Sun Feb 01, 2015 10:00 pm

I've made a plugin for the Philips Hue using the libary linked to earlier in the thread.

Philips Hue plugin:
viewtopic.php?f=9&t=6770

Post Reply