cleaned for new home
This commit is contained in:
21
esphome/templates/LedWithEffects.yaml
Normal file
21
esphome/templates/LedWithEffects.yaml
Normal file
@@ -0,0 +1,21 @@
|
||||
light:
|
||||
- platform: monochromatic
|
||||
id: ${entityID}
|
||||
restore_mode: RESTORE_DEFAULT_ON
|
||||
output: ${entityID}_out
|
||||
name: ${entityName}
|
||||
effects:
|
||||
- flicker:
|
||||
name: "Flicker"
|
||||
alpha: 95%
|
||||
intensity: 1.5%
|
||||
on_turn_on:
|
||||
- light.turn_on:
|
||||
id: led_light1
|
||||
effect: flicker
|
||||
brightness: 75%
|
||||
|
||||
output:
|
||||
- platform: ledc
|
||||
pin: ${pin_led}
|
||||
id: ${entityID}_out
|
||||
@@ -21,18 +21,6 @@ light:
|
||||
it.range(1, x) = Color(0,255,0);
|
||||
x += 1;
|
||||
}
|
||||
# - addressable_color_wipe:
|
||||
# name: "Wipe In-green"
|
||||
# colors:
|
||||
# - red: 0%
|
||||
# green: 100%
|
||||
# blue: 0%
|
||||
# num_leds: 6
|
||||
# gradient: true
|
||||
# add_led_interval: 25714ms
|
||||
# reverse: false
|
||||
|
||||
|
||||
- addressable_lambda:
|
||||
name: star-orange
|
||||
update_interval: 12ms
|
||||
@@ -45,4 +33,13 @@ light:
|
||||
if (x < it.size()) {
|
||||
it[x] = COLOR_CSS_ORANGE;
|
||||
x += 5;
|
||||
}
|
||||
}
|
||||
- random:
|
||||
name: "Random"
|
||||
transition_length: 4s
|
||||
update_interval: 5s
|
||||
- addressable_rainbow:
|
||||
name: Rainbow Effect
|
||||
speed: 100
|
||||
width: 50
|
||||
- addressable_flicker:
|
||||
@@ -1,8 +1,8 @@
|
||||
---
|
||||
light:
|
||||
- platform: esp32_rmt_led_strip
|
||||
rmt_channel: 0
|
||||
is_rgbw: True
|
||||
#rmt_channel: 0
|
||||
is_rgbw: ${is_rgbw}
|
||||
id: led_lights
|
||||
restore_mode: RESTORE_DEFAULT_ON
|
||||
name: ${device_name}_leds
|
||||
@@ -14,4 +14,52 @@ light:
|
||||
- flicker:
|
||||
name: "Flicker"
|
||||
alpha: 95%
|
||||
intensity: 1.5%
|
||||
intensity: 1.5%
|
||||
- addressable_lambda:
|
||||
name: "Wipe In-green"
|
||||
update_interval: 25714ms
|
||||
lambda: |-
|
||||
static int x = 0;
|
||||
if (initial_run) {
|
||||
x = 0;
|
||||
it[x] = Color(0,255,0);
|
||||
}
|
||||
if (x < it.size()) {
|
||||
it.range(1, x) = Color(0,255,0);
|
||||
x += 1;
|
||||
}
|
||||
- addressable_lambda:
|
||||
name: star-orange
|
||||
update_interval: 12ms
|
||||
lambda: |-
|
||||
static int x = 0;
|
||||
if (initial_run) {
|
||||
x = 0;
|
||||
it.all() = Color::BLACK;
|
||||
}
|
||||
if (x < it.size()) {
|
||||
it[x] = COLOR_CSS_ORANGE;
|
||||
x += 5;
|
||||
}
|
||||
- addressable_lambda:
|
||||
name: star-red
|
||||
update_interval: 12ms
|
||||
lambda: |-
|
||||
static int x = 0;
|
||||
if (initial_run) {
|
||||
x = 0;
|
||||
it.all() = Color::BLACK;
|
||||
}
|
||||
if (x < it.size()) {
|
||||
it[x] = COLOR_CSS_RED;
|
||||
x += 5;
|
||||
}
|
||||
- random:
|
||||
name: "Random"
|
||||
transition_length: 4s
|
||||
update_interval: 5s
|
||||
- addressable_rainbow:
|
||||
name: Rainbow Effect
|
||||
speed: 100
|
||||
width: 50
|
||||
- addressable_flicker:
|
||||
@@ -7,5 +7,9 @@ logger:
|
||||
cover: ERROR
|
||||
switch: ERROR
|
||||
wifi: ERROR
|
||||
light: ERROR
|
||||
pulse_counter: ERROR
|
||||
remote_receiver: DEBUG
|
||||
remote_receiver: DEBUG
|
||||
binary_sensor: WARN
|
||||
on sensor: ERROR
|
||||
tsl2591: WARN
|
||||
Reference in New Issue
Block a user