# Colourspace, HomeKit Bridged, and Ikea Color Bulb

**URL:** <https://discourse.nodered.org/t/colourspace-homekit-bridged-and-ikea-color-bulb/28482>\
**Category:** General\
**Created:** [17 June 2020 14:23 UTC](https://discourse.nodered.org/t/colourspace-homekit-bridged-and-ikea-color-bulb/28482 "2020-06-17T14:23:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bohtho](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bohtho/32/6153_2.png) [@bohtho](https://discourse.nodered.org/u/bohtho)\
**Post date:** [17 June 2020 14:23 UTC](https://discourse.nodered.org/t/colourspace-homekit-bridged-and-ikea-color-bulb/28482/1 "2020-06-17T14:23:34Z")

</div>

Does anyone have a clever idea for how to translate a message with Hue object (0-360) and and another message with Saturation object (0-255) from a HomeKit node to a Deconz Out node for an Ikea Color Bulb which accepts colour in CIE xy?

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [18 June 2020 15:48 UTC](https://discourse.nodered.org/t/colourspace-homekit-bridged-and-ikea-color-bulb/28482/2 "2020-06-18T15:48:52Z")

</div>

You can use the [color convert](https://flows.nodered.org/node/node-red-contrib-color-convert) node to convert to RGB and then some [function to convert](https://github.com/usolved/cie-rgb-converter/blob/master/cie_rgb_converter.js) it further to CIE xy.

---

<div class="post-metadata">

**Author:** ![bohtho](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bohtho/32/6153_2.png) [@bohtho](https://discourse.nodered.org/u/bohtho)\
**Post date:** [18 June 2020 15:53 UTC](https://discourse.nodered.org/t/colourspace-homekit-bridged-and-ikea-color-bulb/28482/3 "2020-06-18T15:53:48Z")

</div>

I had looked into the color-convert node but documentation was sparse and it didn’t quite arrive at CIE xy. But that function is interesting. Thank you!

I guess I need to join the Hue and Saturation messages now. How does that work when there’s several other different messages that could be emitted from the HomeKit node?

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [18 June 2020 15:54 UTC](https://discourse.nodered.org/t/colourspace-homekit-bridged-and-ikea-color-bulb/28482/4 "2020-06-18T15:54:54Z")

</div>

First show your output from the various debug nodes (or provide a small flow that generates the various separate messages)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [17 August 2020 16:07 UTC](https://discourse.nodered.org/t/colourspace-homekit-bridged-and-ikea-color-bulb/28482/5 "2020-08-17T16:07:18Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
