Update liloled
This commit is contained in:
parent
ec28c8e3ae
commit
be728d7894
41
liloled
41
liloled
|
|
@ -40,10 +40,14 @@ sensor:
|
|||
- platform: adc
|
||||
pin: GPIO34
|
||||
name: "Knobby"
|
||||
update_interval: 10ms
|
||||
attenuation: 11db
|
||||
id: knobby
|
||||
update_interval: 50ms # nice and quick for responsiveness
|
||||
attenuation: 12db
|
||||
filters:
|
||||
|
||||
- lambda: return fmaxf(0.14f, x); # Clamp to 0.14 minimum
|
||||
- sliding_window_moving_average:
|
||||
window_size: 15
|
||||
send_every: 1
|
||||
|
||||
|
||||
binary_sensor:
|
||||
|
|
@ -71,12 +75,33 @@ binary_sensor:
|
|||
filters:
|
||||
- delayed_on: 10ms
|
||||
|
||||
output:
|
||||
- platform: ledc
|
||||
pin: 17
|
||||
id: led_output
|
||||
|
||||
switch:
|
||||
- platform: gpio
|
||||
pin: 14
|
||||
name: "Test LED"
|
||||
inverted: false # set to true if LED turns on when off
|
||||
light:
|
||||
- platform: monochromatic
|
||||
name: "Test LED Light"
|
||||
output: led_output
|
||||
effects:
|
||||
- pulse:
|
||||
- pulse:
|
||||
name: "Fast Pulse"
|
||||
transition_length: 0.5s
|
||||
update_interval: 0.5s
|
||||
min_brightness: 0%
|
||||
max_brightness: 100%
|
||||
- pulse:
|
||||
name: "Slow Pulse"
|
||||
transition_length: 500ms
|
||||
update_interval: 2s
|
||||
- pulse:
|
||||
name: "Asymmetrical Pulse"
|
||||
transition_length:
|
||||
on_length: 1s
|
||||
off_length: 500ms
|
||||
update_interval: 1.5s
|
||||
|
||||
time:
|
||||
- platform: homeassistant
|
||||
|
|
|
|||
Loading…
Reference in New Issue