Unable to do simple math in my rule

This doesn’t answer your specific question, but I have also integrated WLED via MQTT:

Colorpicker works without rules, though uses a couple of JS transformations!