diff --git a/esphome/device_packages/sensor-box-diy.yaml b/esphome/device_packages/sensor-box-diy.yaml index 2468138..0c60781 100644 --- a/esphome/device_packages/sensor-box-diy.yaml +++ b/esphome/device_packages/sensor-box-diy.yaml @@ -9,7 +9,7 @@ light: num_leds: 5 type : GRB name: "${friendly_devicename} PM25" - effects: *light_effects + effects: ${light_effects} - platform: neopixelbus id: light_pm10 variant: WS2812 @@ -17,6 +17,7 @@ light: num_leds: 5 type : GRB name: "${friendly_devicename} PM10" + effects: ${light_effects} - platform: binary name: "${friendly_devicename} Lamp" output: relay diff --git a/esphome/partials/effects.yaml b/esphome/partials/effects.yaml index 7927276..7c478c3 100644 --- a/esphome/partials/effects.yaml +++ b/esphome/partials/effects.yaml @@ -1,4 +1,5 @@ -light_effects: &light_effects +substitutions: + light_effects: - strobe: - flicker: - addressable_rainbow: