Skip to content
This repository was archived by the owner on Jun 2, 2023. It is now read-only.
This repository was archived by the owner on Jun 2, 2023. It is now read-only.

Color Bulb SmartThings -> Hue vs. Hue resulting in different colors, with OpenT2T result not matching either #240

@kurstory

Description

@kurstory

Bug details:

  1. Connect a Hue bridge to a SmartThings hub
  2. Connect Hue up directly to HomeLoop
  3. Connect ST up directly to HomeLoop
  4. Set the bulb to a well defined color via Hue [ (0, 255, 0) was the most obvious in our testing]
  5. Set the bulb to the same color via ST
  6. Notice visually the bulb changes color (fairly significantly)
  7. Notice the response from OpenT2T doesn't match either (to the color set, or to each other):
  • OpenT2T -> Hue response for (0, 255, 0): {"rt":["oic.r.colour.rgb"],"id":"colourRGB","href":"/colourRGB","if":["oic.if.a","oic.if.baseline"],"range":[0,255],"rgbValue":[243,255,0]}
  • OpenT2T -> ST -> Hue response for (0, 255, 0): {"rt":["oic.r.colour.rgb"],"id":"colourRGB","href":"/colourRGB","if":["oic.if.a","oic.if.baseline"],"rgbValue":[5,255,0],"range":[0,255]}

Personally I think the actual visible bulb color set via OpenT2T -> Hue is more exactly Green, while ST -> Hue results in more of a yellow hue. The patch response however is the opposite - OpenT2T -> Hue responds with a very yellow green, while OpenT2T -> ST -> Hue responds with a more green color (almost fully green).

Neither of these tests result in the Hue app showing the bulb as "green" (instead showing a yellowish color for the OpenT2T -> Hue route, and a slightly greener but still quite yellowish color for the OpenT2T -> ST -> Hue route).

Suspect a bug at least in how we do HSVtoRGB (OpenT2T -> Hue response), and maybe bugs in the providers themselves. Very strange. The above was tested with 2 different Hue bulbs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions