added rgb_order configuration

This commit is contained in:
2026-10-30 10:36:50 +01:00
parent 8c7cfc1fa9
commit 2962fb2ce7
4 changed files with 96 additions and 7 deletions
+4
View File
@@ -51,6 +51,9 @@ The component exposes an RGB light and supports all
- **chipset** (*Optional*, string): `APA102` or `WS2801`. Defaults to `APA102`.
- **num_leds** (*Optional*, int): Number of LEDs in the strip. Defaults to `1`.
- **rgb_order** (*Optional*, string): The order in which the color bytes of each LED are sent.
One of `RGB`, `RBG`, `GRB`, `GBR`, `BGR`, `BRG`. Defaults to `BGR` for `APA102` and `RGB` for `WS2801`.
Change this if the colors on your strip come out swapped.
- **data_rate** (*Optional*): SPI clock frequency. Defaults to `1MHz`.
- **spi_id** (*Optional*, ID): The SPI bus to use, if more than one is configured.
- All other options from [Light](https://esphome.io/components/light/#config-light).
@@ -69,6 +72,7 @@ light:
name: "WS2801 Strip"
chipset: WS2801
num_leds: 32
rgb_order: RGB
data_rate: 1MHz
effects:
- addressable_rainbow: