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

Question
Dalle1985 16
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.