Sungrow: Reduce amount of modbus requests
parent
5e29ea6d17
commit
6bd514f44e
|
|
@ -4,8 +4,8 @@
|
||||||
"endianness": "LittleEndian",
|
"endianness": "LittleEndian",
|
||||||
"errorLimitUntilNotReachable": 5,
|
"errorLimitUntilNotReachable": 5,
|
||||||
"queuedRequests": true,
|
"queuedRequests": true,
|
||||||
"queuedRequestsDelay": 200,
|
"queuedRequestsDelay": 400,
|
||||||
"checkReachableRegister": "inverterTemperature",
|
"checkReachableRegister": "totalPVPower",
|
||||||
"enums": [
|
"enums": [
|
||||||
{
|
{
|
||||||
"name": "SystemState",
|
"name": "SystemState",
|
||||||
|
|
@ -196,6 +196,27 @@
|
||||||
"id": "energyValues1",
|
"id": "energyValues1",
|
||||||
"readSchedule": "update",
|
"readSchedule": "update",
|
||||||
"registers": [
|
"registers": [
|
||||||
|
{
|
||||||
|
"id": "inverterTemperature",
|
||||||
|
"address": 5007,
|
||||||
|
"size": 1,
|
||||||
|
"type": "int16",
|
||||||
|
"registerType": "inputRegister",
|
||||||
|
"description": "Inverter temperature",
|
||||||
|
"unit": "°C",
|
||||||
|
"staticScaleFactor": -1,
|
||||||
|
"defaultValue": "0",
|
||||||
|
"access": "RO"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "dummy0",
|
||||||
|
"address": 5008,
|
||||||
|
"size": 8,
|
||||||
|
"type": "raw",
|
||||||
|
"registerType": "inputRegister",
|
||||||
|
"description": "none",
|
||||||
|
"access": "RO"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id": "totalPVPower",
|
"id": "totalPVPower",
|
||||||
"address": 5016,
|
"address": 5016,
|
||||||
|
|
@ -242,13 +263,16 @@
|
||||||
"staticScaleFactor": -1,
|
"staticScaleFactor": -1,
|
||||||
"defaultValue": "0",
|
"defaultValue": "0",
|
||||||
"access": "RO"
|
"access": "RO"
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "energyValues2",
|
"id": "dummy1",
|
||||||
"readSchedule": "update",
|
"address": 5021,
|
||||||
"registers": [
|
"size": 11,
|
||||||
|
"type": "raw",
|
||||||
|
"registerType": "inputRegister",
|
||||||
|
"description": "none",
|
||||||
|
"access": "RO"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id": "reactivePower",
|
"id": "reactivePower",
|
||||||
"address": 5032,
|
"address": 5032,
|
||||||
|
|
@ -286,7 +310,7 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "energyValues3",
|
"id": "energyValues2",
|
||||||
"readSchedule": "update",
|
"readSchedule": "update",
|
||||||
"registers": [
|
"registers": [
|
||||||
{
|
{
|
||||||
|
|
@ -403,13 +427,96 @@
|
||||||
"defaultValue": "0",
|
"defaultValue": "0",
|
||||||
"staticScaleFactor": -1,
|
"staticScaleFactor": -1,
|
||||||
"access": "RO"
|
"access": "RO"
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "energyValues4",
|
"id": "dummy2",
|
||||||
"readSchedule": "update",
|
"address": 13014,
|
||||||
"registers": [
|
"size": 5,
|
||||||
|
"type": "raw",
|
||||||
|
"registerType": "inputRegister",
|
||||||
|
"description": "none",
|
||||||
|
"access": "RO"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "batteryVoltage",
|
||||||
|
"address": 13019,
|
||||||
|
"size": 1,
|
||||||
|
"type": "uint16",
|
||||||
|
"registerType": "inputRegister",
|
||||||
|
"description": "Battery voltage",
|
||||||
|
"unit": "V",
|
||||||
|
"defaultValue": "0",
|
||||||
|
"staticScaleFactor": -1,
|
||||||
|
"access": "RO"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "batteryCurrent",
|
||||||
|
"address": 13020,
|
||||||
|
"size": 1,
|
||||||
|
"type": "uint16",
|
||||||
|
"registerType": "inputRegister",
|
||||||
|
"description": "Battery current",
|
||||||
|
"unit": "A",
|
||||||
|
"defaultValue": "0",
|
||||||
|
"staticScaleFactor": -1,
|
||||||
|
"access": "RO"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "batteryPower",
|
||||||
|
"address": 13021,
|
||||||
|
"size": 1,
|
||||||
|
"type": "uint16",
|
||||||
|
"registerType": "inputRegister",
|
||||||
|
"description": "Battery power",
|
||||||
|
"unit": "W",
|
||||||
|
"defaultValue": "0",
|
||||||
|
"access": "RO"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "batteryLevel",
|
||||||
|
"address": 13022,
|
||||||
|
"size": 1,
|
||||||
|
"type": "uint16",
|
||||||
|
"registerType": "inputRegister",
|
||||||
|
"description": "Battery level",
|
||||||
|
"unit": "%",
|
||||||
|
"defaultValue": "0",
|
||||||
|
"staticScaleFactor": -1,
|
||||||
|
"access": "RO"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "batteryHealthState",
|
||||||
|
"address": 13023,
|
||||||
|
"size": 1,
|
||||||
|
"type": "uint16",
|
||||||
|
"registerType": "inputRegister",
|
||||||
|
"description": "Battery health state",
|
||||||
|
"unit": "%",
|
||||||
|
"defaultValue": "0",
|
||||||
|
"staticScaleFactor": -1,
|
||||||
|
"access": "RO"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "batteryTemperature",
|
||||||
|
"address": 13024,
|
||||||
|
"size": 1,
|
||||||
|
"type": "int16",
|
||||||
|
"registerType": "inputRegister",
|
||||||
|
"description": "Battery temperature",
|
||||||
|
"unit": "°C",
|
||||||
|
"defaultValue": "0",
|
||||||
|
"staticScaleFactor": -1,
|
||||||
|
"access": "RO"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "dummy3",
|
||||||
|
"address": 13025,
|
||||||
|
"size": 4,
|
||||||
|
"type": "raw",
|
||||||
|
"registerType": "inputRegister",
|
||||||
|
"description": "none",
|
||||||
|
"access": "RO"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id": "gridState",
|
"id": "gridState",
|
||||||
"address": 13029,
|
"address": 13029,
|
||||||
|
|
@ -490,6 +597,27 @@
|
||||||
"defaultValue": "0",
|
"defaultValue": "0",
|
||||||
"staticScaleFactor": -1,
|
"staticScaleFactor": -1,
|
||||||
"access": "RO"
|
"access": "RO"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "dummy4",
|
||||||
|
"address": 13038,
|
||||||
|
"size": 7,
|
||||||
|
"type": "raw",
|
||||||
|
"registerType": "inputRegister",
|
||||||
|
"description": "none",
|
||||||
|
"access": "RO"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "totalExportEnergy",
|
||||||
|
"address": 13045,
|
||||||
|
"size": 2,
|
||||||
|
"type": "uint32",
|
||||||
|
"registerType": "inputRegister",
|
||||||
|
"description": "Total export energy",
|
||||||
|
"unit": "kWh",
|
||||||
|
"defaultValue": "0",
|
||||||
|
"staticScaleFactor": -1,
|
||||||
|
"access": "RO"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
@ -532,111 +660,8 @@
|
||||||
"access": "RO"
|
"access": "RO"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "batteryValues",
|
|
||||||
"readSchedule": "update",
|
|
||||||
"registers": [
|
|
||||||
{
|
|
||||||
"id": "batteryVoltage",
|
|
||||||
"address": 13019,
|
|
||||||
"size": 1,
|
|
||||||
"type": "uint16",
|
|
||||||
"registerType": "inputRegister",
|
|
||||||
"description": "Battery voltage",
|
|
||||||
"unit": "V",
|
|
||||||
"defaultValue": "0",
|
|
||||||
"staticScaleFactor": -1,
|
|
||||||
"access": "RO"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "batteryCurrent",
|
|
||||||
"address": 13020,
|
|
||||||
"size": 1,
|
|
||||||
"type": "uint16",
|
|
||||||
"registerType": "inputRegister",
|
|
||||||
"description": "Battery current",
|
|
||||||
"unit": "A",
|
|
||||||
"defaultValue": "0",
|
|
||||||
"staticScaleFactor": -1,
|
|
||||||
"access": "RO"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "batteryPower",
|
|
||||||
"address": 13021,
|
|
||||||
"size": 1,
|
|
||||||
"type": "uint16",
|
|
||||||
"registerType": "inputRegister",
|
|
||||||
"description": "Battery power",
|
|
||||||
"unit": "W",
|
|
||||||
"defaultValue": "0",
|
|
||||||
"access": "RO"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "batteryLevel",
|
|
||||||
"address": 13022,
|
|
||||||
"size": 1,
|
|
||||||
"type": "uint16",
|
|
||||||
"registerType": "inputRegister",
|
|
||||||
"description": "Battery level",
|
|
||||||
"unit": "%",
|
|
||||||
"defaultValue": "0",
|
|
||||||
"staticScaleFactor": -1,
|
|
||||||
"access": "RO"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "batteryHealthState",
|
|
||||||
"address": 13023,
|
|
||||||
"size": 1,
|
|
||||||
"type": "uint16",
|
|
||||||
"registerType": "inputRegister",
|
|
||||||
"description": "Battery health state",
|
|
||||||
"unit": "%",
|
|
||||||
"defaultValue": "0",
|
|
||||||
"staticScaleFactor": -1,
|
|
||||||
"access": "RO"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "batteryTemperature",
|
|
||||||
"address": 13024,
|
|
||||||
"size": 1,
|
|
||||||
"type": "int16",
|
|
||||||
"registerType": "inputRegister",
|
|
||||||
"description": "Battery temperature",
|
|
||||||
"unit": "°C",
|
|
||||||
"defaultValue": "0",
|
|
||||||
"staticScaleFactor": -1,
|
|
||||||
"access": "RO"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"registers": [
|
"registers": [
|
||||||
{
|
|
||||||
"id": "inverterTemperature",
|
|
||||||
"address": 5007,
|
|
||||||
"size": 1,
|
|
||||||
"readSchedule": "update",
|
|
||||||
"type": "int16",
|
|
||||||
"registerType": "inputRegister",
|
|
||||||
"description": "Inverter temperature",
|
|
||||||
"unit": "°C",
|
|
||||||
"staticScaleFactor": -1,
|
|
||||||
"defaultValue": "0",
|
|
||||||
"access": "RO"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "totalExportEnergy",
|
|
||||||
"address": 13045,
|
|
||||||
"size": 2,
|
|
||||||
"readSchedule": "update",
|
|
||||||
"type": "uint32",
|
|
||||||
"registerType": "inputRegister",
|
|
||||||
"description": "Total export energy",
|
|
||||||
"unit": "kWh",
|
|
||||||
"defaultValue": "0",
|
|
||||||
"staticScaleFactor": -1,
|
|
||||||
"access": "RO"
|
|
||||||
}
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue