48 lines
802 B
YAML
48 lines
802 B
YAML
esphome:
|
|
name: kitchen-lights
|
|
friendly_name: Kitchen Lights
|
|
|
|
# Disable brownout detector
|
|
platformio_options:
|
|
build_flags:
|
|
- '-DBOOTLOADER_BROWNOUT_ENABLE=0'
|
|
|
|
esp32:
|
|
board: esp32dev
|
|
framework:
|
|
type: arduino
|
|
|
|
# Enable logging
|
|
logger:
|
|
|
|
web_server:
|
|
|
|
captive_portal:
|
|
|
|
|
|
# Enable Home Assistant API
|
|
api:
|
|
encryption:
|
|
key: "VUi8evAsXU7pfvb4Z686sSdJqNsRQO3Fra+ps+GyZqU="
|
|
|
|
ota:
|
|
platform: esphome
|
|
password: !secret ota
|
|
|
|
wifi:
|
|
ssid: !secret wifi_ssid
|
|
password: !secret wifi_password
|
|
|
|
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
|
ap:
|
|
ssid: "Kitchen-Lights Fallback Hotspot"
|
|
password: "oZVPV9K2jFE4"
|
|
|
|
switch:
|
|
- platform: gpio
|
|
name: "Kitchen Counter light"
|
|
restore_mode: ALWAYS_ON
|
|
pin:
|
|
number: 13
|
|
inverted: true
|