# Setting the brightness in the control-device node

**URL:** <https://forum.ewelink.cc/t/setting-the-brightness-in-the-control-device-node/18500>\
**Category:** eWeLink CUBE\
**Created:** [June 5, 2023, 11:14pm UTC](https://forum.ewelink.cc/t/setting-the-brightness-in-the-control-device-node/18500 "2023-06-05T23:14:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![christiansbalz](https://avatars.discourse-cdn.com/v4/letter/c/6f9a4e/32.png) [@christiansbalz](https://forum.ewelink.cc/u/christiansbalz)\
**Post date:** [June 5, 2023, 11:14pm UTC](https://forum.ewelink.cc/t/setting-the-brightness-in-the-control-device-node/18500/1 "2023-06-05T23:14:37Z")

</div>

I’m using the node control-device in node-red-contrib-ewelink-cube and would like to set the brightness of a lamp. Any suggestions on how to pass the msg.payload value to the control-device node?

 ![control-device-1](https://europe1.discourse-cdn.com/flex005/uploads/ewelinkforum/original/2X/5/54b8e54f3c83ea9889cacc799881de742e2501aa.png)

 ![control-device-2](https://europe1.discourse-cdn.com/flex005/uploads/ewelinkforum/original/2X/7/7671fedf5b67f38216f086c022489c97e33af693.png)

---

<div class="post-metadata">

**Author:** ![ysty89](https://avatars.discourse-cdn.com/v4/letter/y/b5ac83/32.png) [@ysty89](https://forum.ewelink.cc/u/ysty89)\
**Post date:** [June 6, 2023, 12:09pm UTC](https://forum.ewelink.cc/t/setting-the-brightness-in-the-control-device-node/18500/2 "2023-06-06T12:09:59Z")

</div>

Would also be interested in this. Multichannel devices also have multiple actions in the control-device-node but I would like to control only a single channel at once.

Another interesting questions for the custom registered device how can I alter their state with a previous message payload / variable. i.e. below to change “on” with msg.payload  
 ![image](https://europe1.discourse-cdn.com/flex005/uploads/ewelinkforum/original/2X/d/dea0303979292e8db8a84fe84e302e82c2ac9366.png)

---

<div class="post-metadata">

**Author:** ![rick.ekkelboom](https://avatars.discourse-cdn.com/v4/letter/r/73ab20/32.png) [@rick.ekkelboom](https://forum.ewelink.cc/u/rick.ekkelboom)\
**Post date:** [May 20, 2024, 9:29pm UTC](https://forum.ewelink.cc/t/setting-the-brightness-in-the-control-device-node/18500/3 "2024-05-20T21:29:08Z")

</div>

Yes I would also like to know this. How to do that. I search for 2 days now and i can not find it.

in cube event listener i found a json string like this.  
{“endpoint”:{“serial\_number”:“a4c13872eb928cdd”},“payload”:{“brightness”:{“brightness”:64}}}  
but when i send it to that node from noede-red, it does not work.

Does anyone know how to do thsi?
