78 lines
1.4 KiB
YAML
78 lines
1.4 KiB
YAML
substitutions:
|
|
devicename: og-sz-le-ambi
|
|
wledname: WLED-SZ-Ambi
|
|
|
|
esphome:
|
|
name: ${devicename}
|
|
platform: ESP8266
|
|
board: nodemcuv2
|
|
|
|
# Enable logging
|
|
logger:
|
|
|
|
# Enable Home Assistant API
|
|
api:
|
|
encryption:
|
|
key: "wSBQeBM9DjwLg1yUIU0JxbYVlTQvF5/oFTi4H9OIEo4="
|
|
|
|
ota:
|
|
password: "63dc1bff4f6cc76273ea1fb9f3d17a81"
|
|
|
|
captive_portal:
|
|
|
|
wifi:
|
|
ssid: !secret wifi_wled_ssid
|
|
password: !secret wifi_wled_password
|
|
|
|
manual_ip:
|
|
static_ip: 192.168.1.37
|
|
gateway: 192.168.1.1
|
|
subnet: 255.255.255.0
|
|
|
|
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
|
ap:
|
|
ssid: "${devicename}"
|
|
password: "lftIGuzLvTW1"
|
|
|
|
wled:
|
|
|
|
e131:
|
|
method: multicast # default: register E1.31 to Multicast group
|
|
|
|
# Example configuration entry
|
|
light:
|
|
- platform: neopixelbus
|
|
id: neopixel
|
|
name: "NeoPixel Light"
|
|
type: GRB
|
|
variant: WS2812
|
|
pin: RX
|
|
num_leds: 38
|
|
internal: true
|
|
|
|
- platform: partition
|
|
name: "${devicename} WLED"
|
|
segments:
|
|
# Use first 10 LEDs from the light with ID light1
|
|
- id: neopixel
|
|
from: 0
|
|
to: 37
|
|
effects:
|
|
- wled:
|
|
port: 19446
|
|
- e131:
|
|
universe: 1
|
|
channels: RGB
|
|
|
|
switch:
|
|
- platform: restart
|
|
name: "${devicename} Neustart"
|
|
|
|
sensor:
|
|
- platform: wifi_signal
|
|
name: "${devicename} Wi-Fi Signal"
|
|
update_interval: 60s
|
|
|
|
- platform: uptime
|
|
name: "${devicename} Uptime"
|
|
update_interval: 60s |