You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
82 lines
1.5 KiB
82 lines
1.5 KiB
<<: !include secrets.yml |
|
|
|
esphome: |
|
name: ledstring |
|
platform: ESP8266 |
|
board: d1_mini |
|
|
|
wifi: |
|
ssid: $wifi_ssid |
|
password: $wifi_password |
|
ap: |
|
ssid: "LED String Fallback Hotspot" |
|
password: $wifi_ap_password |
|
|
|
captive_portal: |
|
|
|
logger: |
|
|
|
api: |
|
|
|
ota: |
|
password: $ota_password |
|
|
|
web_server: |
|
|
|
binary_sensor: |
|
- platform: gpio |
|
id: button |
|
pin: |
|
number: D1 |
|
mode: INPUT_PULLUP |
|
inverted: True |
|
name: "Button" |
|
on_click: |
|
then: |
|
- switch.toggle: |
|
id: ledstring_switch |
|
|
|
switch: |
|
- platform: template |
|
optimistic: True |
|
id: ledstring_switch |
|
name: "LED String Switch" |
|
turn_on_action: |
|
- light.turn_on: |
|
id: ledstring |
|
brightness: 70% |
|
effect: rainbow |
|
turn_off_action: |
|
- light.turn_off: |
|
id: ledstring |
|
|
|
light: |
|
- platform: neopixelbus |
|
id: ledstring |
|
name: "LED String" |
|
type: RGB |
|
variant: WS2812 |
|
method: ESP8266_DMA |
|
pin: GPIO3 |
|
num_leds: 26 |
|
effects: |
|
- addressable_twinkle: |
|
name: twinkle |
|
twinkle_probability: 5% |
|
progress_interval: 4ms |
|
- addressable_random_twinkle: |
|
name: randomtwinkle |
|
twinkle_probability: 5% |
|
progress_interval: 32ms |
|
- addressable_rainbow: |
|
name: rainbow |
|
speed: 10 |
|
width: 50 |
|
- addressable_rainbow: |
|
name: slowrainbow |
|
speed: 1 |
|
width: 70 |
|
- addressable_flicker: |
|
name: flicker |
|
update_interval: 50ms |
|
intensity: 5%
|
|
|