Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
S

Seeed-Homeassistant-Discovery

> 数据库
Open source

A solution that makes it easy to connect ESP32 devices to Home Assistant, provided by Seeed Studio.

193 stars0 likes1 views
WebsiteGitHub

About

A solution that makes it easy to connect ESP32 devices to Home Assistant, provided by Seeed Studio.

Seeed Home Assistant Discovery

Seeed HA Discovery is a complete solution for easily connecting ESP32/nRF52840 devices to Home Assistant, provided by Seeed Studio.

What Can It Do?

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)

No Complex Configuration

  • ✅ No MQTT - No need to set up an MQTT broker
  • ✅ No Cloud Services - Pure local network communication, data stays at home
  • ✅ Auto Discovery - Home Assistant automatically recognizes devices when they come online
  • ✅ Plug and Play - Copy example code, modify configuration, and run

⚡ One-Click Installation

Click the button below to add this integration to your Home Assistant:

Prerequisites: Your Home Assistant must have HACS installed

Web Firmware Flasher

Don't want to set up Arduino IDE? Use our web-based firmware flasher to program your device directly from the browser!

Open Web Flasher

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!

✨ Features

WiFi Version

  • Auto Discovery - Devices are automatically discovered by Home Assistant after connecting to WiFi
  • Real-time Communication - Bidirectional real-time communication using WebSocket
  • Simple to Use - Connect sensors to HA with just a few lines of code
  • ️ Sensor Support - Support for temperature, humidity, and various other sensors (upstream data)
  • Switch Control - Support for LED, relay, and other switch controls (downstream commands)
  • Camera Streaming - Support XIAO ESP32-S3 Sense camera live feed (v2.2 New)
  • ️ Universal IR Remote - IR Mate supports IR learning, touch gestures, and a 342-brand AC code library (v3.7+ New)
  • HA State Subscription - Device can subscribe to HA entity states, ideal for display applications (v2.3 New)
  • Status Page - Built-in web page to view device status

BLE Version (v2.0 New)

  • Ultra-Low Power - Passive broadcast mode, suitable for battery-powered devices
  • BTHome v2 - Uses the BTHome protocol natively supported by Home Assistant
  • Zero Configuration - No additional integration needed, HA automatically recognizes BTHome devices
  • Support nRF52840 - Not limited to ESP32, also supports XIAO nRF52840
  • Event Support - Support for button single click, double click, long press, and other events
  • Bidirectional Control - Support for GATT bidirectional communication, remote switch control
  • HA State Subscription - BLE devices can receive HA entity states, ideal for display applications (v2.4 New)

Why Not Use ESPHome?

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:

1. More Familiar with Arduino Programming

"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
cpp
// 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);
}

2. Richer Arduino Ecosystem

"I want to use a certain Arduino library, but ESPHome doesn't support it"

  • ✅ Use any Arduino library directly - Sensor drivers, displays, communication modules...
  • ✅ Deep sleep, low power modes - Full control of ESP32 power management
  • ✅ Complex business logic - Implement any functionality you want with code
  • ✅ Custom communication protocols - Not limited by the framework

3. ESPHome Updates Too Frequently

"The configuration that worked last month is throwing errors this month"

  • ESPHome's breaking updates are frequent, making historical tutorials easily outdated
  • Component APIs often change, requiring constant modifications to old code
  • Seeed HA Discovery uses stable Arduino APIs with better backward compatibility

4. ⏱️ Compilation Speed

"ESPHome takes several minutes to compile"

  • ESPHome has more and more features, taking longer and longer to compile
  • Arduino projects compile faster with higher iteration efficiency
  • Incremental compilation is more effective, recompiling in seconds after code changes

5. No Need to Wait for Official Review

"I want to add a new sensor, but ESPHome official review is too slow"

  • Adding new components to ESPHome requires submitting a PR with long review cycles and strict standards
  • Seeed HA Discovery lets you freely write code without waiting for anyone
  • Your sensors, your code, your pace

Use Case Comparison

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 ✅

Components

This project consists of three parts:

  1. Home Assistant Integration (custom_components/seeed_ha_discovery/)

    • Automatically discover WiFi devices on the local network
    • Receive and display sensor data
    • Send control commands to devices
  2. WiFi Arduino Library (arduino/SeeedHADiscovery/)

    • For ESP32 device WiFi programming
    • Support sensor reporting and switch control
    • WebSocket bidirectional communication
  3. BLE Arduino Library (arduino/SeeedHADiscoveryBLE/) - v2.0 New

    • For ESP32/nRF52840 Bluetooth programming
    • Based on BTHome v2 protocol
    • Ultra-low power passive broadcast

Quick Start

1. Install Home Assistant Integration

Method A: One-Click Installation via HACS (Recommended)

Click the "One-Click Installation" button above, or add manually:

  1. Open HACS → Integrations
  2. Click "⋮" in the top right → "Custom repositories"
  3. Enter https://github.com/limengdu/Seeed-Homeassistant-Discovery
  4. Select category "Integration"
  5. Click Add, then search for "Seeed HA Discovery" and install
  6. Restart Home Assistant

Method B: Manual Installation

Copy the custom_components/seeed_ha_discovery folder to Home Assistant's config/custom_components/ directory, then restart Home Assistant.

2. Install Arduino Library

Choose the appropriate library based on your connection method:

WiFi Version (SeeedHADiscovery)

Arduino IDE:

  1. Download the arduino/SeeedHADiscovery folder
  2. Copy to Documents/Arduino/libraries/
  3. Install dependency libraries (via Library Manager):
    • ArduinoJson (by Benoit Blanchon)
    • WebSockets (by Markus Sattler)

PlatformIO:

ini
lib_deps =
    bblanchon/ArduinoJson@^7.0.0
    links2004/WebSockets@^2.4.0

IR Mate WiFi Example

Install 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.

XIAO ESP32-C3 SCD41 Air Quality Display Example

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.

SenseCAP Indicator HA Dashboard Example

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.

BLE Version (SeeedHADiscoveryBLE)

Arduino IDE:

  1. Download the arduino/SeeedHADiscoveryBLE folder
  2. Copy to Documents/Arduino/libraries/
  3. Install the corresponding BLE dependency library based on your board:
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:

ini
; ESP32 series
lib_deps =
    h

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

C++arduinoesp32home-assistantplatformio

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category数据库
PricingOpen source

> Related tools

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库