Got a simple ESPHome yaml that works with HA
This commit is contained in:
45
xiao-esp32c3-light-sensor.yaml
Normal file
45
xiao-esp32c3-light-sensor.yaml
Normal 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
|
||||
Reference in New Issue
Block a user