Changing this to !extend style includes, hopefully, for now it mean more text in main.yaml

This commit is contained in:
Frank "PHiAX" Weggelaar 2026-01-29 14:09:20 +01:00
parent c7fe74bb39
commit 515eba5cac
2 changed files with 40 additions and 43 deletions

View file

@ -1,23 +1,21 @@
esp8266: esp8266:
board: d1_mini board: d1_mini
<<: !include esphome/partials/effects.yaml
light: light:
- platform: neopixelbus - platform: neopixelbus
id: light_pm25
variant: WS2812 variant: WS2812
pin: D4 pin: D4
num_leds: 5 num_leds: 5
type : GRB type : GRB
name: "${friendly_devicename} PM25" name: "${friendly_devicename} PM25"
effects: *shared_effects
- platform: neopixelbus - platform: neopixelbus
id: light_pm10
variant: WS2812 variant: WS2812
pin: D3 pin: D3
num_leds: 5 num_leds: 5
type : GRB type : GRB
name: "${friendly_devicename} PM10" name: "${friendly_devicename} PM10"
effects: *shared_effects
- platform: binary - platform: binary
name: "${friendly_devicename} Lamp" name: "${friendly_devicename} Lamp"
output: relay output: relay

View file

@ -1,14 +1,13 @@
light: &shared_effects - strobe:
- strobe: - flicker:
- flicker: - addressable_rainbow:
- addressable_rainbow: - addressable_color_wipe:
- addressable_color_wipe: - addressable_scan:
- addressable_scan: - addressable_twinkle:
- addressable_twinkle: - addressable_random_twinkle:
- addressable_random_twinkle: - addressable_fireworks:
- addressable_fireworks: - addressable_flicker:
- addressable_flicker: - addressable_color_wipe:
- addressable_color_wipe:
name: Kingsday name: Kingsday
colors: colors:
- red: 78% - red: 78%
@ -29,11 +28,11 @@ light: &shared_effects
num_leds: 6 num_leds: 6
add_led_interval: 100ms add_led_interval: 100ms
reverse: true reverse: true
- random: - random:
name: "My Slow Random Effect" name: "My Slow Random Effect"
transition_length: 30s transition_length: 30s
update_interval: 30s update_interval: 30s
- random: - random:
name: "My Fast Random Effect" name: "My Fast Random Effect"
transition_length: 4s transition_length: 4s
update_interval: 5s update_interval: 5s