From abae49e058ef50dbf2d9ca2f779626f9c8af9dd5 Mon Sep 17 00:00:00 2001 From: Patrick Schurig Date: Fri, 31 Jul 2026 10:20:05 +0200 Subject: [PATCH] sunspec: widen storage charge and discharge rate range chargingRate and dischargingRate map onto InWRte and OutWRte of model 124, which are int16 setpoints ranging from -100.00 to +100.00 percent of WChaMax. Declaring them as 0..100 makes a forced charge structurally inexpressible: nymea rejects the negative action parameter before it ever reaches the plugin. Also fixes the default value, which was the boolean false on an int state. --- sunspec/integrationpluginsunspec.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sunspec/integrationpluginsunspec.json b/sunspec/integrationpluginsunspec.json index 6696477..6c0951c 100644 --- a/sunspec/integrationpluginsunspec.json +++ b/sunspec/integrationpluginsunspec.json @@ -1442,10 +1442,10 @@ "displayName": "Charging rate", "displayNameEvent": "Charging rate changed", "type": "int", - "minValue": 0, + "minValue": -100, "maxValue": 100, "unit": "Percentage", - "defaultValue": false, + "defaultValue": 0, "writable": true, "displayNameAction": "Set charging rate" }, @@ -1455,10 +1455,10 @@ "displayName": "Discharging rate", "displayNameEvent": "Discharging rate changed", "type": "int", - "minValue": 0, + "minValue": -100, "maxValue": 100, "unit": "Percentage", - "defaultValue": false, + "defaultValue": 0, "writable": true, "displayNameAction": "Set discharging rate" },