# How do I set Hue Light brightness, color etc?

**URL:** <https://discourse.nodered.org/t/how-do-i-set-hue-light-brightness-color-etc/28210>\
**Category:** General\
**Created:** [12 June 2020 02:49 UTC](https://discourse.nodered.org/t/how-do-i-set-hue-light-brightness-color-etc/28210 "2020-06-12T02:49:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![peejayw](https://avatars.discourse-cdn.com/v4/letter/p/46a35a/32.png) [@peejayw](https://discourse.nodered.org/u/peejayw)\
**Post date:** [12 June 2020 02:49 UTC](https://discourse.nodered.org/t/how-do-i-set-hue-light-brightness-color-etc/28210/1 "2020-06-12T02:49:28Z")

</div>

I have created a simple flow that lights one of my Hue bulbs. I would like to be able to specify the brightness and color and if possible make the light flash as well.  
I suspect I am supposed to put something in the "data" field of the node but have no idea what.  
Appreciate any clues.  
Thanks.

---

<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:** [12 June 2020 06:02 UTC](https://discourse.nodered.org/t/how-do-i-set-hue-light-brightness-color-etc/28210/2 "2020-06-12T06:02:36Z")

</div>

Perhaps you could provide us with clues which node you are referring to and what your flow looks like.

---

<div class="post-metadata">

**Author:** ![peejayw](https://avatars.discourse-cdn.com/v4/letter/p/46a35a/32.png) [@peejayw](https://discourse.nodered.org/u/peejayw)\
**Post date:** [12 June 2020 08:15 UTC](https://discourse.nodered.org/t/how-do-i-set-hue-light-brightness-color-etc/28210/3 "2020-06-12T08:15:53Z")

</div>

OK, sorry. I just have a simple Event:State that is triggered by a motion sensor, going to a Call Service that turns on my Hue light.  
In the Call Service node, under Data I have "brightness": 255, and that works fine but when I try to set the color, "rgb\_color": "165, 76, 255" I get an error "Call-service API error. Error Message: None for dictionary value @ data['rgb\_color']"

I hope that makes sense, very new at this.  
Thanks.

---

<div class="post-metadata">

**Author:** ![cflurin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cflurin/32/29_2.png) [@cflurin](https://discourse.nodered.org/u/cflurin)\
**Post date:** [12 June 2020 09:13 UTC](https://discourse.nodered.org/t/how-do-i-set-hue-light-brightness-color-etc/28210/4 "2020-06-12T09:13:13Z")

</div>

As an option have a look at `node-red-contrib-huemagic`

---

<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:** [12 June 2020 09:35 UTC](https://discourse.nodered.org/t/how-do-i-set-hue-light-brightness-color-etc/28210/5 "2020-06-12T09:35:51Z")

</div>

> [@peejayw](#):
>
> I hope that makes sense, very new at this.

It sounds like you are using home assistant, not everyone here is using that. You may want to refer to the documentation of the home assistant nodes on how to send messages back to home assistant (and in what format).

---

<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:** [11 August 2020 09:45 UTC](https://discourse.nodered.org/t/how-do-i-set-hue-light-brightness-color-etc/28210/6 "2020-08-11T09:45:19Z")

</div>

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