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

Philips Hue lights - set color, brightness and turn on via scene


ThatDude

Question

Hi,

 

I have Philips Hue connected to my HC3. I can see all the lights, and controll them via manual actions.

 

I want to have a scene, where it sets a particular light to a specific color/brightness and turn it on, but I'm having issues with that.

 

First I created a block scene, with three actions:

  1. HueLight setColor
  2. HueLight setBrightness
  3. HueLight turnOn

With this approach the light turns on, but the setColor and setBrightness are ignored, I assume because they are sent to a light that is off. So of course I tried:

  1. HueLight turnOn
  2. HueLight setBrightness
  3. HueLight setColor

This results in the light first turning on full brightness and no color, and then only the color changes (brightness command is ignored), so then I tried:

  1. HueLight turnOn
  2. HueLight setColor
  3. HueLight setBrightness

This time, the light turns on full brightness, no color, and then it's dimmed (the color command is ignored).

 

I also tried to do it via a LUA Scene:

 

Please login or register to see this code.

 

but it behaves exactly like the block scene.

 

Is there a better way?

How can I check what LUA commands are available for Hue devices?

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0
  • Inquirer
  • Thanks for the tip, I'm almost there.

     

    The script:

    Please login or register to see this code.

    turns on the light and sets the brightness.

     

    Now I just need to set the color as well. After setting the right color in the Hue app, I've run:

    Please login or register to see this code.

    which returns:

    Please login or register to see this code.

    but, running:

    Please login or register to see this code.

    doesn't set the appropriate color. Actually it breaks the whole Hue integration, and you can't controll any of the Hue lights until I reboot the whole HC3.

     

    Any ideas how to set the particular color I've already configured in the Hue app?

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • Ok, so my final working script is:

    Please login or register to see this code.

    One unfortunate thing is, that this turns on the light with the right color, but the brightness is set after a small delay, which means the light turns on with full brightness, and then is adjusted to the correct one :(

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • Thanks for the tip. skipping the "turnOn" improved things slightly. But I haven't found a way to turn the light to 5% and set color.

     

    If I run

    Please login or register to see this code.

    Then the light will turn on to 5% brightness, but it will be white (not blue as intended)

     

    If I run

    Please login or register to see this code.

    Then the light has the intended color, but it's 100% bright.

    Link to comment
    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...