Home Assistant¶
How the device talks to Home Assistant and how it gets updates later.
api:
encryption: {}
ota:
- platform: esphome
dashboard_import:
package_import_url: github://jajera/esp32-c3-ha-lux/firmware/lux.yaml@main
import_full_config: true
| Key | What it does |
|---|---|
api |
Native link to Home Assistant — no MQTT broker |
ota |
Over-the-air updates after the first USB flash |
dashboard_import |
Lets the ESPHome dashboard pull this file from GitHub when you adopt the device. Safe to ignore if you only flash from this repo |
Where the encryption key comes from
encryption: {} turns encryption on without baking a key into the file. Home Assistant creates the key when you add the device and stores it on the board. A factory reset clears that key along with the saved Wi‑Fi and mode settings.
Once adopted, the device shows entities from the later blocks:
| Entity | Type | Comes from |
|---|---|---|
| Illuminance | Sensor | Lux and LED |
| LED | Light | Lux and LED |
| Mode, Schedule Start/End, night lux | Select / time / numbers | Modes |
| Display | Switch | Display |
| Factory Reset, Restart | Buttons | Factory reset |
| WiFi Signal, Uptime, Mode Label | Diagnostic | Lux and LED / Modes |
Next: Wi‑Fi setup