There is an example of colour calculated from the value of a msg property at https://discourse.nodered.org/t/warp-speed-indicator-changing-background-colour-according-to-payload-value-css-only/57256
In that case it's the background colour which changes according to the value of msg.payload.
It may be applicable to your LED.
1 Like