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


Philips HUE (zigbee) setColor API syntax?


Recommended Posts

Posted (edited)

Trying to set a Philip HUE zigbee lights RGB value but I'm confused.

I have tried both:


hub.call(289, 'setColor', 5,200,255,0)
and
/api/callAction?deviceID=289&name=setColor&arg1=5&arg2=200&arg3=255&arg4=0


Both give the same result, theese values gives me the color: 56,199,255


What is going on here, is it not RGB values that are set with setColor?

Edited by Spett
  • Like 1
  • Topic Author
  • Posted

    Anyone?

     

    Is there a bug in this update or have it always been like this? I have not used setColor before..

     

    The way it works now is that the values set with setColor are percentages of each other. (sort of, not completly tru but..)

    I mean:

    1,1,1 or 124,124,124 or 3,3,3 etc etc.. will always set bulb color to be 255,255,255

     

    10,6,2 will set bulb color to be 255,203,124

    10,10,4 will set bulb color to be 255,255,170

     

    Is it a bug or is it another color map?

    • Spett changed the title to Philips HUE (zigbee) setColor API syntax?

    Join the conversation

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

    Guest
    Reply to this topic...

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