From cbdf8f21c549241987282a903187a894804750f4 Mon Sep 17 00:00:00 2001 From: Du Wenbo Date: Fri, 10 Apr 2026 09:40:46 +0800 Subject: [PATCH] fix: devices.json protocol http_api -> sungrow_api (v1.6.1) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit All 10 Sungrow inverters had protocol="http_api" in devices.json, but config.yaml only enables the "sungrow_api" collector type. Result: 0 collectors started on fresh deploy, no data collection. Fix: use sungrow_api for all inverter devices. Discovered during Z-Park demo deployment on xie_openclaw1 — after seeding, collectors refused to start until protocol was updated in the DB. This fix prevents the regression on reseed. Co-Authored-By: Claude Opus 4.6 (1M context) --- VERSIONS.json | 4 ++-- customers/zpark/devices.json | 20 ++++++++++---------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/VERSIONS.json b/VERSIONS.json index 54bbda9..c02bfad 100644 --- a/VERSIONS.json +++ b/VERSIONS.json @@ -1,9 +1,9 @@ { "project": "zpark-ems", - "project_version": "1.6.0", + "project_version": "1.6.1", "customer": "Z-Park 中关村医疗器械园", "core_version": "1.4.0", "frontend_template_version": "1.4.0", "last_updated": "2026-04-06", - "notes": "String monitoring, I-V diagnosis stub, ROI simulator, knowledge base, remote config stub, mobile responsive" + "notes": "Fix devices.json protocol (http_api→sungrow_api) to enable Sungrow collectors" } diff --git a/customers/zpark/devices.json b/customers/zpark/devices.json index cf79304..a5f2dac 100644 --- a/customers/zpark/devices.json +++ b/customers/zpark/devices.json @@ -60,7 +60,7 @@ "rated_power": 40, "model": "SG40KTL-M", "manufacturer": "阳光电源", - "protocol": "http_api", + "protocol": "sungrow_api", "collect_interval": 900, "connection_params": { "api_base": "https://gateway.isolarcloud.com", @@ -81,7 +81,7 @@ "rated_power": 50, "model": "SG50KTL-M", "manufacturer": "阳光电源", - "protocol": "http_api", + "protocol": "sungrow_api", "collect_interval": 900, "connection_params": { "api_base": "https://gateway.isolarcloud.com", @@ -102,7 +102,7 @@ "rated_power": 130, "model": "SG125HV", "manufacturer": "阳光电源", - "protocol": "http_api", + "protocol": "sungrow_api", "collect_interval": 900, "connection_params": { "api_base": "https://gateway.isolarcloud.com", @@ -123,7 +123,7 @@ "rated_power": 260, "model": "SG250HX", "manufacturer": "阳光电源", - "protocol": "http_api", + "protocol": "sungrow_api", "collect_interval": 900, "connection_params": { "api_base": "https://gateway.isolarcloud.com", @@ -144,7 +144,7 @@ "rated_power": 160, "model": "SG160HX", "manufacturer": "阳光电源", - "protocol": "http_api", + "protocol": "sungrow_api", "collect_interval": 900, "connection_params": { "api_base": "https://gateway.isolarcloud.com", @@ -165,7 +165,7 @@ "rated_power": 400, "model": "SG350HX", "manufacturer": "阳光电源", - "protocol": "http_api", + "protocol": "sungrow_api", "collect_interval": 900, "connection_params": { "api_base": "https://gateway.isolarcloud.com", @@ -186,7 +186,7 @@ "rated_power": 290, "model": "SG250HX", "manufacturer": "阳光电源", - "protocol": "http_api", + "protocol": "sungrow_api", "collect_interval": 900, "connection_params": { "api_base": "https://gateway.isolarcloud.com", @@ -207,7 +207,7 @@ "rated_power": 300, "model": "SG300HX", "manufacturer": "阳光电源", - "protocol": "http_api", + "protocol": "sungrow_api", "collect_interval": 900, "connection_params": { "api_base": "https://gateway.isolarcloud.com", @@ -228,7 +228,7 @@ "rated_power": 280, "model": "SG250HX", "manufacturer": "阳光电源", - "protocol": "http_api", + "protocol": "sungrow_api", "collect_interval": 900, "connection_params": { "api_base": "https://gateway.isolarcloud.com", @@ -249,7 +249,7 @@ "rated_power": 290, "model": "SG250HX", "manufacturer": "阳光电源", - "protocol": "http_api", + "protocol": "sungrow_api", "collect_interval": 900, "connection_params": { "api_base": "https://gateway.isolarcloud.com",