I have been suggested by someone with YAML knowledge to use anchors, but I don't know if these are supported, trying anyway
This commit is contained in:
parent
41ad52e78d
commit
5c2922a57f
2 changed files with 41 additions and 42 deletions
|
|
@ -8,16 +8,14 @@ light:
|
||||||
num_leds: 5
|
num_leds: 5
|
||||||
type : GRB
|
type : GRB
|
||||||
name: "${friendly_devicename} PM25"
|
name: "${friendly_devicename} PM25"
|
||||||
effects: !include
|
effects: *shared_effects
|
||||||
- file: ../partials/effects.yaml
|
|
||||||
- platform: neopixelbus
|
- platform: neopixelbus
|
||||||
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: !include
|
effects: *shared_effects
|
||||||
- file: ../partials/effects.yaml
|
|
||||||
- platform: binary
|
- platform: binary
|
||||||
name: "${friendly_devicename} Lamp"
|
name: "${friendly_devicename} Lamp"
|
||||||
output: relay
|
output: relay
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,14 @@
|
||||||
- strobe:
|
light: &shared_effects
|
||||||
- flicker:
|
- strobe:
|
||||||
- addressable_rainbow:
|
- flicker:
|
||||||
- addressable_color_wipe:
|
- addressable_rainbow:
|
||||||
- addressable_scan:
|
- addressable_color_wipe:
|
||||||
- addressable_twinkle:
|
- addressable_scan:
|
||||||
- addressable_random_twinkle:
|
- addressable_twinkle:
|
||||||
- addressable_fireworks:
|
- addressable_random_twinkle:
|
||||||
- addressable_flicker:
|
- addressable_fireworks:
|
||||||
- addressable_color_wipe:
|
- addressable_flicker:
|
||||||
|
- addressable_color_wipe:
|
||||||
name: Kingsday
|
name: Kingsday
|
||||||
colors:
|
colors:
|
||||||
- red: 78%
|
- red: 78%
|
||||||
|
|
@ -28,11 +29,11 @@
|
||||||
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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue