Changing this to !extend style includes, hopefully, for now it mean more text in main.yaml
This commit is contained in:
parent
c7fe74bb39
commit
515eba5cac
2 changed files with 40 additions and 43 deletions
|
|
@ -1,23 +1,21 @@
|
|||
esp8266:
|
||||
board: d1_mini
|
||||
|
||||
<<: !include esphome/partials/effects.yaml
|
||||
|
||||
light:
|
||||
- platform: neopixelbus
|
||||
id: light_pm25
|
||||
variant: WS2812
|
||||
pin: D4
|
||||
num_leds: 5
|
||||
type : GRB
|
||||
name: "${friendly_devicename} PM25"
|
||||
effects: *shared_effects
|
||||
- platform: neopixelbus
|
||||
id: light_pm10
|
||||
variant: WS2812
|
||||
pin: D3
|
||||
num_leds: 5
|
||||
type : GRB
|
||||
name: "${friendly_devicename} PM10"
|
||||
effects: *shared_effects
|
||||
- platform: binary
|
||||
name: "${friendly_devicename} Lamp"
|
||||
output: relay
|
||||
|
|
|
|||
|
|
@ -1,39 +1,38 @@
|
|||
light: &shared_effects
|
||||
- strobe:
|
||||
- flicker:
|
||||
- addressable_rainbow:
|
||||
- addressable_color_wipe:
|
||||
- addressable_scan:
|
||||
- addressable_twinkle:
|
||||
- addressable_random_twinkle:
|
||||
- addressable_fireworks:
|
||||
- addressable_flicker:
|
||||
- addressable_color_wipe:
|
||||
name: Kingsday
|
||||
colors:
|
||||
- red: 78%
|
||||
green: 6%
|
||||
blue: 18%
|
||||
num_leds: 2
|
||||
- red: 100%
|
||||
green: 100%
|
||||
blue: 100%
|
||||
num_leds: 2
|
||||
- red: 0%
|
||||
green: 24%
|
||||
blue: 65%
|
||||
num_leds: 2
|
||||
- red: 100%
|
||||
green: 61%
|
||||
blue: 0%
|
||||
num_leds: 6
|
||||
add_led_interval: 100ms
|
||||
reverse: true
|
||||
- random:
|
||||
name: "My Slow Random Effect"
|
||||
transition_length: 30s
|
||||
update_interval: 30s
|
||||
- random:
|
||||
name: "My Fast Random Effect"
|
||||
transition_length: 4s
|
||||
update_interval: 5s
|
||||
- strobe:
|
||||
- flicker:
|
||||
- addressable_rainbow:
|
||||
- addressable_color_wipe:
|
||||
- addressable_scan:
|
||||
- addressable_twinkle:
|
||||
- addressable_random_twinkle:
|
||||
- addressable_fireworks:
|
||||
- addressable_flicker:
|
||||
- addressable_color_wipe:
|
||||
name: Kingsday
|
||||
colors:
|
||||
- red: 78%
|
||||
green: 6%
|
||||
blue: 18%
|
||||
num_leds: 2
|
||||
- red: 100%
|
||||
green: 100%
|
||||
blue: 100%
|
||||
num_leds: 2
|
||||
- red: 0%
|
||||
green: 24%
|
||||
blue: 65%
|
||||
num_leds: 2
|
||||
- red: 100%
|
||||
green: 61%
|
||||
blue: 0%
|
||||
num_leds: 6
|
||||
add_led_interval: 100ms
|
||||
reverse: true
|
||||
- random:
|
||||
name: "My Slow Random Effect"
|
||||
transition_length: 30s
|
||||
update_interval: 30s
|
||||
- random:
|
||||
name: "My Fast Random Effect"
|
||||
transition_length: 4s
|
||||
update_interval: 5s
|
||||
Loading…
Add table
Add a link
Reference in a new issue