fix: devices.json protocol http_api -> sungrow_api (v1.6.1)

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) <noreply@anthropic.com>
This commit is contained in:
Du Wenbo
2026-04-10 09:40:46 +08:00
parent 189bba7e03
commit cbdf8f21c5
2 changed files with 12 additions and 12 deletions

View File

@@ -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"
}

View File

@@ -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",