206 lines
4.1 KiB
YAML
206 lines
4.1 KiB
YAML
substitutions:
|
|
devicename: og-bz-us-room
|
|
|
|
esphome:
|
|
name: ${devicename}
|
|
platform: ESP8266
|
|
board: nodemcuv2
|
|
|
|
# Enable logging
|
|
logger:
|
|
|
|
# Enable Home Assistant API
|
|
api:
|
|
# encryption:
|
|
# key: "ASBh/0rFjqcMw312xRW3GBe7YwkJ5N03Sa00THKWFyA="
|
|
|
|
ota:
|
|
password: "e997f9bb54cc19ba96870868471dd560"
|
|
|
|
wifi:
|
|
ssid: !secret wifi_ssid
|
|
password: !secret wifi_password
|
|
|
|
manual_ip:
|
|
static_ip: 192.168.1.98
|
|
gateway: 192.168.1.1
|
|
subnet: 255.255.255.0
|
|
|
|
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
|
ap:
|
|
ssid: "${devicename}"
|
|
password: "NWODEbSPSLkM"
|
|
|
|
captive_portal:
|
|
|
|
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: 40
|
|
internal: true
|
|
|
|
- platform: partition
|
|
name: "Status RS"
|
|
segments:
|
|
# Use first 10 LEDs from the light with ID light1
|
|
- id: neopixel
|
|
from: 0
|
|
to: 0
|
|
|
|
- platform: partition
|
|
name: "Status LED 01"
|
|
segments:
|
|
# Use first 10 LEDs from the light with ID light1
|
|
- id: neopixel
|
|
from: 1
|
|
to: 1
|
|
|
|
- platform: partition
|
|
name: "Status LED 02"
|
|
segments:
|
|
# Use first 10 LEDs from the light with ID light1
|
|
- id: neopixel
|
|
from: 2
|
|
to: 2
|
|
|
|
- platform: partition
|
|
name: "Status LED 03"
|
|
segments:
|
|
# Use first 10 LEDs from the light with ID light1
|
|
- id: neopixel
|
|
from: 3
|
|
to: 3
|
|
|
|
- platform: partition
|
|
name: "Status LED 04"
|
|
segments:
|
|
# Use first 10 LEDs from the light with ID light1
|
|
- id: neopixel
|
|
from: 4
|
|
to: 4
|
|
|
|
- platform: partition
|
|
name: "Status LED 05"
|
|
segments:
|
|
# Use first 10 LEDs from the light with ID light1
|
|
- id: neopixel
|
|
from: 5
|
|
to: 5
|
|
|
|
- platform: partition
|
|
name: "Status LED 06"
|
|
segments:
|
|
# Use first 10 LEDs from the light with ID light1
|
|
- id: neopixel
|
|
from: 6
|
|
to: 6
|
|
|
|
- platform: partition
|
|
name: "Status LED 07"
|
|
segments:
|
|
# Use first 10 LEDs from the light with ID light1
|
|
- id: neopixel
|
|
from: 7
|
|
to: 7
|
|
|
|
- platform: partition
|
|
name: "Status LED 08"
|
|
segments:
|
|
# Use first 10 LEDs from the light with ID light1
|
|
- id: neopixel
|
|
from: 8
|
|
to: 8
|
|
|
|
- platform: partition
|
|
name: "Status LED 09"
|
|
segments:
|
|
# Use first 10 LEDs from the light with ID light1
|
|
- id: neopixel
|
|
from: 9
|
|
to: 9
|
|
|
|
- platform: partition
|
|
name: "Status LED 10"
|
|
segments:
|
|
# Use first 10 LEDs from the light with ID light1
|
|
- id: neopixel
|
|
from: 10
|
|
to: 10
|
|
|
|
- platform: partition
|
|
name: "Status LED 11"
|
|
segments:
|
|
# Use first 10 LEDs from the light with ID light1
|
|
- id: neopixel
|
|
from: 11
|
|
to: 11
|
|
|
|
- platform: partition
|
|
name: "Status LED 12"
|
|
segments:
|
|
# Use first 10 LEDs from the light with ID light1
|
|
- id: neopixel
|
|
from: 12
|
|
to: 12
|
|
|
|
- platform: partition
|
|
name: "Night Light"
|
|
segments:
|
|
# Use LEDs 11-20 from the light with ID light1
|
|
- id: neopixel
|
|
from: 13
|
|
to: 26
|
|
effects:
|
|
- wled:
|
|
port: 19446
|
|
- e131:
|
|
universe: 1
|
|
channels: RGB
|
|
|
|
- platform: partition
|
|
name: "Msg Light"
|
|
segments:
|
|
# Use LEDs 11-20 from the light with ID light1
|
|
- id: neopixel
|
|
from: 28
|
|
to: 39
|
|
|
|
|
|
- platform: partition
|
|
name: "Status BM"
|
|
segments:
|
|
# Use LEDs 11-20 from the light with ID light1
|
|
- id: neopixel
|
|
from: 27
|
|
to: 27
|
|
|
|
binary_sensor:
|
|
- platform: gpio
|
|
pin:
|
|
number: D3
|
|
mode: INPUT_PULLUP
|
|
name: "${devicename} Radar Sensor"
|
|
device_class: motion
|
|
|
|
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 |