Hello,
I have a single RGB led (https://www.aliexpress.com/item/1005004567311751.html) that I want to use as a status light for a project I am working on. Depending on a state of a home assistant sensor it should pulse red, green or blue. So I came up with this config:
light:
- platform: fastled_clockless
chipset: WS2812B
pin: 17
num_leds: 1
rgb_order: RGB
name: "RGB LED"
id: rgb_led
default_transition_length: 300ms
color_correct: [50%, 50%, 50%]
restore_mode: ALWAYS_OFF
effects:
- strobe:
name: "RGB Slow Pulse Red"
colors:
- state: true
red: 100%
green: 0%
blue: 0%
brightness: 30%
duration: 2s
- state: true
red: 100%
green: 0%
blue: 0%
brightness: 50%
duration: 2s
sensor:
- platform: homeassistant
id: battery_power
entity_id: sensor.battery_power
on_value_range:
- above: 1
below: 1000
then:
- light.turn_on:
id: rgb_led
effect: "RGB Slow Pulse Red"
It does the job but the transitions are sharp and I am looking for a way of doing that so it pulsates (i.e. like the pulse effect). I wanted to use the pulse effect but there is now way of setting the colour in that effect. I have seen a few config examples where people use lambdas but that seems like a major overkill for such a simple effect?
Am I missing something here?