由 Seeed Studio 提供的解决方案,可轻松将 ESP32 设备连接到 Home Assistant。
由 Seeed Studio 提供的解决方案,可轻松将 ESP32 设备连接到 Home Assistant。
Seeed HA Discovery is a complete solution for easily connecting ESP32/nRF52840 devices to Home Assistant, provided by Seeed Studio.
With just a few lines of code in Arduino IDE or PlatformIO for your XIAO series development boards, you can connect to Home Assistant via WiFi or Bluetooth (BLE):
| Connection | Supported Devices | Features |
|---|---|---|
| WiFi | XIAO ESP32-C3/C5/C6/S3 | Bidirectional communication, WebSocket real-time updates |
| Bluetooth (BLE) | XIAO ESP32-C3/C5/C6/S3, XIAO nRF52840 | Ultra-low power, BTHome v2 protocol, passive advertising |
XIAO ESP32-C5 supports both 2.4GHz and 5GHz dual-band WiFi for better connectivity options
| Feature | Direction | WiFi | BLE |
|---|---|---|---|
| Report Sensor Data | Device → HA | ✅ | ✅ |
| Receive Control Commands | HA → Device | ✅ | ✅ (GATT) |
| Camera Streaming | Device → HA | ✅ (ESP32-S3) | ❌ |
| ️ IR Remote | Device ↔ HA | ✅ (IR Mate) | ❌ |
| Get HA States | HA → Device | ✅ (v2.3 New) | ✅ (v2.4 New) |
| Ultra-Low Power | - | ❌ | ✅ (Broadcast Mode) |
Click the button below to add this integration to your Home Assistant:
Prerequisites: Your Home Assistant must have HACS installed
Don't want to set up Arduino IDE? Use our web-based firmware flasher to program your device directly from the browser!
| Feature | Description |
|---|---|
| ️ No Software Required | Flash directly from Chrome/Edge browser |
| Auto Chip Detection | Automatically detects ESP32-C3/C5/C6/S3 |
| Pre-built Firmware | Ready-to-use examples for quick start |
| Bilingual | English and Chinese interface |
Available Firmware:
| Category | Firmware | Supported Chips |
|---|---|---|
| ️ Seeed Products | XIAO IR Mate | ESP32-C3 |
| ️ Seeed Products | SCD41 Air Quality Display | ESP32-C3 |
| ️ Seeed Products | SenseCAP Indicator Room Dashboard | ESP32-S3 |
| ️ Seeed Products | IoT Button V2 | ESP32-C6 |
| ️ Seeed Products | XIAO Soil Moisture Sensor | ESP32-C6 |
| ️ Seeed Products | CameraStream | ESP32-S3 Sense |
| ️ Seeed Products | reTerminal E1001/E1002 | ESP32-S3 |
| WiFi Universal | WiFi Provisioning | C3/C5/C6/S3 |
| WiFi Universal | Button Switch | C3/C5/C6/S3 |
| WiFi Universal | LED Switch | C5/C6/S3 |
| WiFi Universal | HA State Subscribe | C3/C5/C6/S3 |
| WiFi Universal | Temperature & Humidity | C3/C5/C6/S3 |
| BLE Universal | BLE-MQTT Gateway | C3/C5/C6/S3 |
Tip: Universal firmware supports auto chip detection - just connect your XIAO board and click flash!
ESPHome is an excellent project, but it's not suitable for everyone. If you have the following needs, Seeed HA Discovery might be better for you:
"I'm used to writing code with Arduino IDE, don't want to learn YAML configuration syntax"
| ESPHome | Seeed HA Discovery |
|---|---|
| Uses YAML configuration files | Uses standard C/C++ code |
| Based on ESP-IDF framework by default (optional Arduino) | Based on Arduino framework |
| Need to learn new syntax | Leverage your existing Arduino skills |
// Seeed HA Discovery - Just the Arduino code you're familiar with
void setup() {
ha.begin("WiFi", "password");
tempSensor = ha.addSensor("temp", "Temperature", "temperature", "°C");
}
void loop() {
ha.handle();
tempSensor->setValue(25.5);
}"I want to use a certain Arduino library, but ESPHome doesn't support it"
"The configuration that worked last month is throwing errors this month"
"ESPHome takes several minutes to compile"
"I want to add a new sensor, but ESPHome official review is too slow"
| Scenario | Recommended Solution |
|---|---|
| Quickly deploy standard sensors | ESPHome ✅ |
| Need custom Arduino code | Seeed HA Discovery ✅ |
| Don't want to learn new syntax | Seeed HA Discovery ✅ |
| Using uncommon sensors/modules | Seeed HA Discovery ✅ |
| Need low power/deep sleep | Seeed HA Discovery ✅ |
| Pure GUI configuration, zero code | ESPHome ✅ |
This project consists of three parts:
Home Assistant Integration (custom_components/seeed_ha_discovery/)
WiFi Arduino Library (arduino/SeeedHADiscovery/)
BLE Arduino Library (arduino/SeeedHADiscoveryBLE/) - v2.0 New
Method A: One-Click Installation via HACS (Recommended)
Click the "One-Click Installation" button above, or add manually:
https://github.com/limengdu/Seeed-Homeassistant-DiscoveryMethod B: Manual Installation
Copy the custom_components/seeed_ha_discovery folder to Home Assistant's config/custom_components/ directory, then restart Home Assistant.
Choose the appropriate library based on your connection method:
Arduino IDE:
arduino/SeeedHADiscovery folderDocuments/Arduino/libraries/PlatformIO:
lib_deps =
bblanchon/ArduinoJson@^7.0.0
links2004/WebSockets@^2.4.0Install IRremoteESP8266 2.9.0 or later and Adafruit NeoPixel 1.15.2 or later, then open:
arduino/SeeedHADiscovery/examples/XIAO_IR_Mate/XIAO_IR_Mate.ino
The example connects to WiFi through the web provisioning portal and ships with built-in Gree AC offline control (single/double/triple/quadruple tap gestures). After connecting to Home Assistant, open Settings → Devices & services → Seeed HA Discovery → Configure to select a brand and model, learn and test commands, and synchronize single, double, triple, and quadruple-tap actions for offline use. See the IR Mate example guide.
The example reads CO₂, temperature, and humidity from a Grove SCD41 and presents them on a 1.47-inch ST7789 LCD. It includes a landscape dashboard, hotspot-based WiFi provisioning, Home Assistant sensor entities and connection status, plus automatic recovery after an I²C connection failure.
Open arduino/SeeedHADiscovery/examples/XIAO_ESP32C3_SCD41_AirQuality_Display/XIAO_ESP32C3_SCD41_AirQuality_Display.ino and follow the example guide for wiring, dependencies, and verification steps.
The example initializes the SenseCAP Indicator 480 x 480 ST7701 LCD and FT5x06 touch controller with Arduino, then presents a polished LVGL meeting-room dashboard with HA entity display and touch control. Follow the example guide for dependencies, board settings, entity configuration, and verification steps.
Arduino IDE:
arduino/SeeedHADiscoveryBLE folderDocuments/Arduino/libraries/| Board | Dependency | Installation Method |
|---|---|---|
| ESP32 series (C3/C6/S3) | NimBLE-Arduino | Search "NimBLE-Arduino" in Arduino Library Manager |
⚠️ ESP32 must install NimBLE-Arduino library, otherwise compilation will fail!
NimBLE is lighter and more stable than the official ESP32 Bluetooth library, and is the preferred choice for ESP32 BLE development.
PlatformIO:
; ESP32 series
lib_deps =
h暂无开放 Issues,或尚未同步最近议题。