diff --git a/ESP32-LightSensor.ino b/xiao-esp32c3-light-sensor.ino similarity index 100% rename from ESP32-LightSensor.ino rename to xiao-esp32c3-light-sensor.ino diff --git a/xiao-esp32c3-light-sensor.yaml b/xiao-esp32c3-light-sensor.yaml new file mode 100644 index 0000000..9fb856a --- /dev/null +++ b/xiao-esp32c3-light-sensor.yaml @@ -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