Got a simple ESPHome yaml that works with HA

This commit is contained in:
Smits
2026-02-15 21:26:15 +01:00
parent ae9a5f0b3f
commit e33bdc5ada
2 changed files with 45 additions and 0 deletions

View File

@@ -0,0 +1,45 @@
esphome:
name: xiao-esp32c3-light-sensor
friendly_name: XIAO ESP32C3 Light Sensor
platformio_options:
board_build.f_flash: 40000000L
board_build.flash_mode: dio
board_build.flash_size: 4MB
esp32:
variant: ESP32C3
board: esp32-c3-devkitm-1
framework:
type: esp-idf
logger:
api:
encryption:
key: "IMbpaUOgYJWv7CbCDwNjkhPQYdDylPqulrXvHS5BOKg="
ota:
- platform: esphome
password: "68124e613de22b373413d37452777c49"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Xiao-Esp32C3-Light-Sensor"
password: "nNaTBzEaDn5g"
captive_portal:
i2c:
sda: GPIO6
scl: GPIO7
scan: true
sensor:
- platform: bh1750
name: "Lichtsterkte Lux"
address: 0x23
update_interval: 5s