Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


  • 0

Hue for the HCL


Question

Posted

Hi all,

After a bit of dialogue with a few people seeking to get Hue control from the HCL I've created a script which runs on a webserver and a virtual device to control the light. It is very rudementary and is only meant as a sample on how to use the script, but it works.

Since there is no variable to help out on the HCL, it requires a bit of manual labour to get working.

First off, you'll need an API user for the Hue. Find out how at:

Please login or register to see this link.

Then you need to change the php script. Open it using an editor (i.e. notepad) and change the two lines:

Please login or register to see this code.

Next, load the virtual device into the HCL. Now you need to change a few things:

First, the IP of the virtual device should be changed to your webserver.

Then you need to go through all the buttons and sliders and change parts of the URL to fit your need data:

Please login or register to see this code.

Change the "id=1" to the id of your light or group of lights (i.e. "id=3").

Change the "isgroup=1" to "isgroup=0" if you are controlling a single light. I use groups for my lights (find out how to set that up here:

Please login or register to see this link.

)

If you do not have the "huesample.php" in the root folder of your webserver, you need to add the path to the url. i.e.

Please login or register to see this code.

Then just make sure your webserver is reachable and press the buttons. Hope it works (only tested on a HC2)

Please login or register to see this link.

5 answers to this question

Recommended Posts

  • 0
Posted

One minor thing: the sat formula in the php script is wrong. it should be multiplied with 2.55

But other than that: excellent work!

Please login or register to see this image.

/emoticons/default_icon_smile.gif" alt=":-)" />

  • 0
Posted

Hey, hope Dalle1985 you are still reading the forum... 

 

I just upgraded my HCL to 3.594 and the whole HUE setup stopped working.

Please login or register to see this image.

/emoticons/default_icon_curve.gif" alt=":-/" />

 

No idea why. I haven't changed anything. Hue lights itself are working but I can't get them to work with the script. used to work like a charm.

 

Something is broken...

  • 0
Posted

False alarm... 

 

Restarted HCL, everything back to normal. Oh well, the old restart trick...

  • 0
Posted

hello

for now i use my hue controlling them from HCL in cooperation with domoticz. virtual device on HCL and send json strings for toggle them or call scene on etc..etc..

all ok but it could be better if i found the way for have feedback from the hue so i can know without direct eyes in the home, if the lights are on or off.

Any idea?

thanks for all

  • 0
Posted

Hello Dalle1985 and Joerg, 

 

I recently bought a Hue and I am loving it and have integrated it with the Fibaro Home Centre Lite (HCL) using the standard plugin. 

As you know this does not allow me to use the Hue lights in magic scenes and have them automatically switched on when a door opens.

Therefore I have been reading on this forum and noticed your post. I have tried to go through these steps but I am struggling. Likely because I am lacking (technical) knowledge. Hopefully you can help me.

 

You are referring to the webserver and I am having trouble connecting to this.

Shouldn't it be

Please login or register to see this link.

For one or the other reason I can not access it. 

 

The second item I am having trouble with is to move the "huesample.php" to the root folder of the webserver.

 

Hopefully you can help to set up my Fibaro to work with the Hue.

 

Many thanks in advance. 

 

Regards, 

Arnold

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...