Color Sensor to NeoPixel

Hey,

I got a little project going on the messure a color and show the color via an RGB LED. The sensor itself get value from 0-255 per RGB Channel but I cannot get the sensor value to show up on the Neopixel LED.

Sensor is working and the LED is working via HA ColorPicker.

Any ideas how i get this working?

sensor:
  - platform: uartex
    state: [0x45]
    name: "GY-33 Processed Red"
    unit_of_measurement: "0-255"
    state_number:
          offset: 2
          signed: false

light:
  - platform: neopixelbus
    type: GRB
    variant: WS2811
    pin: GPIO08
    num_leds: 1
    name: "NeoPixel Light"
...

Not much to go on there really…

You will need to perform a light_turn_on: action somewhere, either in an on_value: tag in the sensor (not really recommended when there are 3 sensors), or in a script that you run at a set interval…