yep - reading the docs I'd say you need to set msg.payload to a boollean true/false to switch on/off and you need to set msg.brightness to a number between 0 and 100 to set the brightness
it implies that once you've set the brightness - it will remember the value and use that the next time you switch off/on again
Thanks for responding, Do you know how I do that within the same msg.payload , I can only seem pick one option (a Boolean, string or number etc.) per inject?