Jump to content
  • 0

Philips Hue Lights and Scenes with HC2 - Any workaround?


Question

I understand that the plugin in HC2 is only to enable manual control of lights from the HC2 and from the Fibaro App. 
Are there any other ways I could include one or more hue lights into scenes? Any coding? Anything else before I have to throw a large investment I made in hue lights or instead the Fibaro one?

 

Many thanks for your support.

Link to post
Share on other sites

8 answers to this question

Recommended Posts

  • 0

Yes, you can use a virtual device to control the Hue plugin.. and a virtual device can be used in scenes :)

Link to post
Share on other sites
  • 0

I use VD instead of plugin to control 27 HUE lamps. Some VDs control only one lamp while another control 2 or 3 lamps at the same time. This works great for me. Next step will be write some VDs and scenes to do different HUE scenes like it is possible from original app. This of course require planning and coding in LUA but it is doable.

Link to post
Share on other sites
  • 0

Why can't the Hue devices and controls not just simply show up as selectable devices when building a block scene? Of course one can program everything in LUA or VD's, but what is the point if all Hue lights are already known and controllable by HC2? VD's and LUA coding are high maintenance tools that are ok for very special devices, but should not be used for basic domotica functions like lights control.

Link to post
Share on other sites
  • 0

Hi Sagittarius,  You say that you have a solution, Please tell us how you have done it.  I just cannot get my head around LUA.  I unfortunately took it for granted that the Hue Plug-in would let me do scenes in HC2

Link to post
Share on other sites
  • 0

Hi. 

 

Make a VD using IP of your Philips bridge (my is 192.168.1.179) and then create buttons in LUA 

 

xxx - is your user name from philips api - http://www.developers.meethue.com/content/how-get-user-name-using-api

 

1) TURN ON

HueGtw = Net.FHttp("192.168.1.179",80) 
HueGtw:PUT('/api/xxx/lights/1/state', '{"on":true}')
HueGtw:PUT('/api/xxx/lights/2/state', '{"on":true}')
HueGtw:PUT('/api/xxx/lights/3/state', '{"on":true}')
HueGtw:PUT('/api/xxx/lights/4/state', '{"on":true}')
HueGtw:PUT('/api/xxx/lights/6/state', '{"on":true}')
HueGtw:PUT('/api/xxx/lights/7/state', '{"on":true}')
HueGtw:PUT('/api/xxx/lights/8/state', '{"on":true}')
HueGtw:PUT('/api/xxx/lights/9/state', '{"on":true}')

2) TURN OFF

 

HueGtw = Net.FHttp("192.168.1.179",80) 
HueGtw:PUT('/api/xxx/lights/1/state', '{"on":false}')
HueGtw:PUT('/api/xxx/lights/2/state', '{"on":false}')
HueGtw:PUT('/api/xxx/lights/3/state', '{"on":false}')
HueGtw:PUT('/api/xxx/lights/4/state', '{"on":false}')
HueGtw:PUT('/api/xxx/lights/6/state', '{"on":false}')
HueGtw:PUT('/api/xxx/lights/7/state', '{"on":false}')
HueGtw:PUT('/api/xxx/lights/8/state', '{"on":false}')
HueGtw:PUT('/api/xxx/lights/9/state', '{"on":false}')

3) SCENE ALARM

 

HueGtw = Net.FHttp("192.168.1.179",80) 
HueGtw:PUT('/api/xxx/lights/1/state', '{"on":true, "sat":254, "bri":254,"hue":0}')
HueGtw:PUT('/api/xxx/lights/2/state', '{"on":true, "sat":254, "bri":254,"hue":0}')
HueGtw:PUT('/api/xxx/lights/3/state', '{"on":true, "sat":254, "bri":254,"hue":0}')
HueGtw:PUT('/api/xxx/lights/4/state', '{"on":true, "sat":254, "bri":254,"hue":0}')
HueGtw:PUT('/api/xxx/lights/6/state', '{"on":true, "sat":254, "bri":255,"hue":0}')
HueGtw:PUT('/api/xxx/lights/7/state', '{"on":true, "sat":254, "bri":255,"hue":0}')
HueGtw:PUT('/api/xxx/lights/8/state', '{"on":true, "sat":254, "bri":254,"hue":0}')
HueGtw:PUT('/api/xxx/lights/9/state', '{"on":true, "sat":254, "bri":254,"hue":0}')

4) SCENE PRESET1

 

HueGtw = Net.FHttp("192.168.1.179",80) 
HueGtw:PUT('/api/xxx/lights/1/state', '{"on":true, "sat":241, "bri":254,"hue":12385}')
HueGtw:PUT('/api/xxx/lights/2/state', '{"on":true, "sat":254, "bri":254,"hue":5022}')
HueGtw:PUT('/api/xxx/lights/3/state', '{"on":true, "sat":253, "bri":254,"hue":55786}')
HueGtw:PUT('/api/xxx/lights/4/state', '{"on":true, "sat":253, "bri":254,"hue":55786}')
HueGtw:PUT('/api/xxx/lights/6/state', '{"on":true, "sat":255, "bri":255,"hue":0}')
HueGtw:PUT('/api/xxx/lights/7/state', '{"on":true, "sat":255, "bri":255,"hue":0}')
HueGtw:PUT('/api/xxx/lights/8/state', '{"on":true, "sat":254, "bri":254,"hue":25698}')
HueGtw:PUT('/api/xxx/lights/9/state', '{"on":true, "sat":254, "bri":254,"hue":25698}')

after that you can use those buttons in scene

 

Edited by Kamol_
Link to post
Share on other sites
  • 0

OMG, why can`t it just be avaible in scene!!! ;) 

Edit: Finally figured it out and atl east got it into my scenes setting my bulp to Warmwhite. 

Edited by ryvaenge
  • Like 1
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...