File tree Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ esphome:
23
23
- light.turn_on :
24
24
id : neopixel_light
25
25
effect : Breathing Blue
26
- brightness : 100%
27
26
- wait_until :
28
27
condition :
29
28
wifi.connected :
Original file line number Diff line number Diff line change 1
1
---
2
2
substitutions :
3
3
led_count : " 17" # Match the max_value from filament_slots
4
+
5
+ number :
6
+ - platform : template
7
+ name : " LED Brightness"
8
+ id : led_brightness
9
+ icon : mdi:led-on
10
+ entity_category : config
11
+ min_value : 1
12
+ max_value : 100
13
+ step : 1
14
+ initial_value : 50
15
+ unit_of_measurement : " %"
16
+ optimistic : true
17
+ restore_value : true
18
+ on_value :
19
+ then :
20
+ - lambda : |-
21
+ auto call = id(neopixel_light).make_call();
22
+ call.set_brightness(x / 100.0);
23
+ call.set_color_brightness(x / 100.0);
24
+ call.perform();
25
+ - delay : 500ms
26
+ - script.execute : select_led
27
+
4
28
light :
5
29
- platform : esp32_rmt_led_strip
6
30
name : External LEDs
You can’t perform that action at this time.
0 commit comments