Switching to substitutions based on support received

This commit is contained in:
Frank "PHiAX" Weggelaar 2026-01-30 22:21:02 +01:00
parent ea23b83001
commit a873ea075d
2 changed files with 4 additions and 2 deletions

View file

@ -9,7 +9,7 @@ light:
num_leds: 5 num_leds: 5
type : GRB type : GRB
name: "${friendly_devicename} PM25" name: "${friendly_devicename} PM25"
effects: *light_effects effects: ${light_effects}
- platform: neopixelbus - platform: neopixelbus
id: light_pm10 id: light_pm10
variant: WS2812 variant: WS2812
@ -17,6 +17,7 @@ light:
num_leds: 5 num_leds: 5
type : GRB type : GRB
name: "${friendly_devicename} PM10" name: "${friendly_devicename} PM10"
effects: ${light_effects}
- platform: binary - platform: binary
name: "${friendly_devicename} Lamp" name: "${friendly_devicename} Lamp"
output: relay output: relay

View file

@ -1,4 +1,5 @@
light_effects: &light_effects substitutions:
light_effects:
- strobe: - strobe:
- flicker: - flicker:
- addressable_rainbow: - addressable_rainbow: