Change node issue

I have this issue i can't make the CHANGE node "SET" a sub msg name like "msg.payload.brightness" it works with "msg.brightness".

can't either move anything to "msg.payload.brightness".. is it a new thing? or me ;-).

anything else with CHANGE node works..

does i need to make a function to do this?

It will depend on what msg.payload is to begin with.

If its an Object, then you can set any properties you want on it.

If its a String or a Number, you cannot set properties on it - a JavaScript restriction.

So the question is what is your msg.payload set to when its passed to the Change node?

ohh okay thanks for clarifying..