thank you
msg.payload = brightness
and
msg.payload = { "command": "switchlight", "idx": 64, "switchcmd": "Set Level", "level": brightness };
did the trick
That I didn't see that.
thank you
msg.payload = brightness
and
msg.payload = { "command": "switchlight", "idx": 64, "switchcmd": "Set Level", "level": brightness };
did the trick
That I didn't see that.