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.
This commit is contained in:
Patrick Schurig 2026-07-31 10:20:05 +02:00
parent d87a132f23
commit abae49e058

View File

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