67 lines
1.2 KiB
YAML
67 lines
1.2 KiB
YAML
substitutions:
|
|
esp_name: "esp32-m5-bt-proxy"
|
|
|
|
esphome:
|
|
name: ${esp_name}
|
|
comment: ${esp_name}
|
|
|
|
esp32:
|
|
board: m5stack-atom
|
|
framework:
|
|
type: arduino
|
|
|
|
# Enable logging
|
|
logger:
|
|
|
|
# Enable Home Assistant API
|
|
api:
|
|
encryption:
|
|
key: !secret moon_light_api
|
|
|
|
ota:
|
|
password: !secret moon_ota_password
|
|
|
|
wifi:
|
|
ssid: !secret wifi_ssid
|
|
password: !secret wifi_password
|
|
|
|
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
|
ap:
|
|
ssid: ${esp_name} fallback
|
|
password: !secret fallback_password
|
|
|
|
# captive_portal:
|
|
|
|
media_player:
|
|
- platform: i2s_audio
|
|
id: media_out
|
|
name: moon_sound
|
|
dac_type: external
|
|
i2s_lrclk_pin: GPIO33
|
|
i2s_dout_pin: GPIO22
|
|
i2s_bclk_pin: GPIO19
|
|
mode: mono
|
|
|
|
binary_sensor:
|
|
- platform: gpio
|
|
pin:
|
|
number: GPIO39
|
|
inverted: true
|
|
name: Moon_Button
|
|
|
|
light:
|
|
- platform: fastled_clockless
|
|
chipset: ws2812b
|
|
pin: GPIO25
|
|
num_leds: 1
|
|
rgb_order: GRB
|
|
name: "Moon_Light"
|
|
effects:
|
|
- random:
|
|
name: "Random"
|
|
transition_length: 4s
|
|
update_interval: 5s
|
|
- addressable_rainbow:
|
|
name: Rainbow Effect
|
|
speed: 10
|
|
width: 50 |