How to get the brightness value out of the payload

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

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:

const brightness = msg.payload.brightness

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

thnx jbudd

it worked