# How to get the brightness value out of the payload

**URL:** <https://discourse.nodered.org/t/how-to-get-the-brightness-value-out-of-the-payload/99054>\
**Category:** General\
**Created:** [16 September 2025 00:49 UTC](https://discourse.nodered.org/t/how-to-get-the-brightness-value-out-of-the-payload/99054 "2025-09-16T00:49:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karl1](https://avatars.discourse-cdn.com/v4/letter/k/bbce88/32.png) [@Karl1](https://discourse.nodered.org/u/Karl1)\
**Post date:** [16 September 2025 00:49 UTC](https://discourse.nodered.org/t/how-to-get-the-brightness-value-out-of-the-payload/99054/1 "2025-09-16T00:49:01Z")

</div>

Hallo i am new here and i am still learning. I want to read out the value of the brightness of a bulb. i sended a message to zigbee2mqtt/Bulb1/get with payload {“brightness”:””}. the value that i need is just de 0-255 out of the rest. How can i do this

 ![NODERED](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/5/a540c12141e0276f896254776dc8fe85e32fcadb.png)

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [16 September 2025 01:30 UTC](https://discourse.nodered.org/t/how-to-get-the-brightness-value-out-of-the-payload/99054/2 "2025-09-16T01:30:45Z")

</div>

Welcome to the forum @Karl1

As your debug 30 node shows, the value you want is `msg.payload.brightness`.  
You can use that name in many places, a function node for instance:

```auto
const brightness = msg.payload.brightness

```

If you want to reduce msg.payload to just that value, you can use a change node:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/d/7d76df2f59a5eefc869194e0474b7dbf3e2375e6.png)

---

<div class="post-metadata">

**Author:** ![Karl1](https://avatars.discourse-cdn.com/v4/letter/k/bbce88/32.png) [@Karl1](https://discourse.nodered.org/u/Karl1)\
**Post date:** [16 September 2025 19:28 UTC](https://discourse.nodered.org/t/how-to-get-the-brightness-value-out-of-the-payload/99054/3 "2025-09-16T19:28:37Z")

</div>

thnx **[jbudd](https://discourse.nodered.org/u/jbudd)**

it worked

---

<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:** [15 December 2025 19:28 UTC](https://discourse.nodered.org/t/how-to-get-the-brightness-value-out-of-the-payload/99054/4 "2025-12-15T19:28:46Z")

</div>

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