# Switch and setup Philips Hue RGB lamp

**URL:** https://discourse.nodered.org/t/switch-and-setup-philips-hue-rgb-lamp/49685
**Category:** General
**Created:** [13 August 2021 13:43 UTC](https://discourse.nodered.org/t/switch-and-setup-philips-hue-rgb-lamp/49685 "2021-08-13T13:43:59Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![HaVi](https://avatars.discourse-cdn.com/v4/letter/h/b3f665/32.png) [@HaVi](https://discourse.nodered.org/u/HaVi)
#### Post date: [13 August 2021 13:43 UTC](https://discourse.nodered.org/t/switch-and-setup-philips-hue-rgb-lamp/49685/1 "2021-08-13T13:43:59Z")

</div>

I would like to turn on a Philips Hue RGB lamp using the Hue Light Node, part of node-red-contrib-huemagic. When turning on the lamp, the brightness should be 50% and the HEX color should be FF8800.

I probably have to do that with a function node, am I right? Can someone help me with the correct setup for that node?

 ![flow](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/4/94c16bceaa49bbb3464543c6556adbd145c43517.png)

---

<div class="post-metadata">

### Author: ![HaVi](https://avatars.discourse-cdn.com/v4/letter/h/b3f665/32.png) [@HaVi](https://discourse.nodered.org/u/HaVi)
#### Post date: [13 August 2021 14:57 UTC](https://discourse.nodered.org/t/switch-and-setup-philips-hue-rgb-lamp/49685/3 "2021-08-13T14:57:15Z")

</div>

Found the solution, maybe helpfull for others too:

```auto
msg.payload={
"on":true,
"brightness":50,
hex:"ff8800"
};
return msg;

```

---

<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: [27 August 2021 14:57 UTC](https://discourse.nodered.org/t/switch-and-setup-philips-hue-rgb-lamp/49685/4 "2021-08-27T14:57:50Z")

</div>

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