Skip to content

Commit a8de4f6

Browse files
limengducursoragent
andcommitted
feat: rename Soil_Sensor to XIAO_Soil_Moisture_Sensor and add to web flasher
- Rename example from Soil_Sensor to XIAO_Soil_Moisture_Sensor - Add initialization complete message block for consistency with other examples - Add soil moisture sensor firmware config to web flasher (ESP32-C6) - Update README.md and README_CN.md Available Firmware tables Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 47785cd commit a8de4f6

7 files changed

Lines changed: 47 additions & 0 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ Click the button below to add this integration to your Home Assistant:
6666
| Category | Firmware | Supported Chips |
6767
|----------|----------|-----------------|
6868
| 🏷️ **Seeed Products** | IoT Button V2 | ESP32-C6 |
69+
| 🏷️ **Seeed Products** | XIAO Soil Moisture Sensor | ESP32-C6 |
6970
| 🏷️ **Seeed Products** | CameraStream | ESP32-S3 Sense |
7071
| 🏷️ **Seeed Products** | reTerminal E1001/E1002 | ESP32-S3 |
7172
| 🔧 **Universal** | WiFi Provisioning | C3/C5/C6/S3 |

README_CN.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
| 分类 | 固件名称 | 支持芯片 |
6767
|------|----------|----------|
6868
| 🏷️ **Seeed 产品** | IoT Button V2 | ESP32-C6 |
69+
| 🏷️ **Seeed 产品** | 土壤湿度传感器 | ESP32-C6 |
6970
| 🏷️ **Seeed 产品** | 摄像头推流 | ESP32-S3 Sense |
7071
| 🏷️ **Seeed 产品** | reTerminal E1001/E1002 | ESP32-S3 |
7172
| 🔧 **通用固件** | WiFi 配网 | C3/C5/C6/S3 |

arduino/SeeedHADiscovery/examples/Soil_Sensor/README.md renamed to arduino/SeeedHADiscovery/examples/XIAO_Soil_Moisture_Sensor/README.md

File renamed without changes.

arduino/SeeedHADiscovery/examples/Soil_Sensor/README_CN.md renamed to arduino/SeeedHADiscovery/examples/XIAO_Soil_Moisture_Sensor/README_CN.md

File renamed without changes.

arduino/SeeedHADiscovery/examples/Soil_Sensor/Soil_Sensor.ino renamed to arduino/SeeedHADiscovery/examples/XIAO_Soil_Moisture_Sensor/XIAO_Soil_Moisture_Sensor.ino

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,27 @@ void setup() {
292292
Serial.print(WET_THRESHOLD);
293293
Serial.println("% (Green LED)");
294294
Serial.println("------------------------");
295+
296+
// =========================================================================
297+
// Initialization complete | 完成初始化
298+
// =========================================================================
299+
300+
Serial.println();
301+
Serial.println("========================================");
302+
Serial.println(" Initialization Complete!");
303+
Serial.println(" 初始化完成!");
304+
Serial.println("========================================");
305+
Serial.println();
306+
Serial.println("Add device in Home Assistant:");
307+
Serial.println("在 Home Assistant 中添加设备:");
308+
Serial.println(" Settings -> Devices & Services -> Add Integration");
309+
Serial.println(" Search 'Seeed HA Discovery'");
310+
Serial.print(" Enter IP: ");
311+
Serial.println(ha.getLocalIP().toString().c_str());
312+
Serial.println();
313+
Serial.print("Device status page: http://");
314+
Serial.println(ha.getLocalIP().toString().c_str());
315+
Serial.println();
295316
}
296317

297318
void loop() {

docs/flasher/firmware-config.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,29 @@ firmware:
4545
- "RGB LED"
4646
- "电池监测"
4747

48+
- id: XIAO_Soil_Moisture_Sensor
49+
name: "XIAO Soil Moisture Sensor"
50+
name_zh: "XIAO 土壤湿度传感器"
51+
description: "Soil moisture sensor with LED indicators. Supports dry/normal/wet level detection with visual feedback."
52+
description_zh: "带 LED 指示灯的土壤湿度传感器。支持干燥/正常/湿润等级检测,并提供可视化反馈。"
53+
sketch: "arduino/SeeedHADiscovery/examples/XIAO_Soil_Moisture_Sensor/XIAO_Soil_Moisture_Sensor.ino"
54+
board: "esp32:esp32:esp32c6"
55+
board_options: "CDCOnBoot=cdc,PartitionScheme=huge_app,CPUFreq=80,FlashMode=qio,FlashSize=4M"
56+
platform: "esp32:esp32"
57+
platform_url: "https://espressif.github.io/arduino-esp32/package_esp32_index.json"
58+
chip_family: "ESP32-C6"
59+
icon: "🌱"
60+
features:
61+
- "Soil Moisture"
62+
- "LED Indicator"
63+
- "Web Provisioning"
64+
- "ADC Calibration"
65+
features_zh:
66+
- "土壤湿度"
67+
- "LED 指示灯"
68+
- "网页配网"
69+
- "ADC 校准"
70+
4871
- id: WiFiProvisioning
4972
name: "WiFi Provisioning Demo"
5073
name_zh: "WiFi 配网演示"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"name":"Soil Moisture Sensor (XIAO ESP32-C6)","version":"1.0.0","new_install_prompt_erase":true,"builds":[{"chipFamily":"ESP32-C6","parts":[{"path":"bootloader.bin","offset":0},{"path":"partitions.bin","offset":32768},{"path":"boot_app0.bin","offset":57344},{"path":"firmware.bin","offset":65536}]}]}

0 commit comments

Comments
 (0)