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

Control a group of Hue bulbs from one VD


Dalle1985

Question

Hi guys,

So there are several VDs to control a single Hue bulb on here, but controlling several devices together is somewhat more difficult. When I try to control several devices by sending the commands to the individual bulbs there is a noticeable delay between the lamps turning on or off - sometimes one might miss a command all together.

So here is a guide on how to create a group of Hues and how to control them.

Setting up the group

Step 0 - Create a user (if you haven't done it already)

On the bridge, set up a user, using the Hue Api:

Please login or register to see this link.

Step 1 - Get Python

Install Python -

Please login or register to see this link.

Step 2 - Download Phue

Get the Phue script from Github -

Please login or register to see this link.

- and extract it to a folder of your choice.

Step 3 - Launch Phue Script

Launch Phue into the IDLE environment (Python script handler):

Open IDLE -> File -> Open -> locate the Phue.py script -> press "Run" -> press "Python Shell"

Step 4 - connect to the bridge

Type the following command in the python shell:

Please login or register to see this code.

This imports the function which will open the connection

Please login or register to see this code.

The script will return an error, this is normal. Press the link button and try again it should return some lines of "Info" and you are now connected to the bridge.

Step 5 - Set up your group

Now you should be ready to create a group. Type in the following code:

Please login or register to see this code.

Replace XX and YY with the IDs of the individual lights to include in the group. Add as many lights as you feel like.

Step 6 - Check the group ID

Type in:

Please login or register to see this code.

Check the response, it should look something like this:

Please login or register to see this code.

This has two groups:

ID1 called Gang

ID2 called Bedroom

And you are done! You've hopefully set up a Hue Group successfully (this is the only way I have gotten to work yet). Phue have several different functions and is built to be integrated, go through the readme for all the functions.

The VD

Import the attached VD

Change below variables in ALL the elements of the device.

"hueIP" should be the IP of the bridge

"hueUser" should be the name of the user you created in the hue API

"hueID" should be the ID of the GROUP you created using Phue.[/code]

Please login or register to see this attachment.

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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