IN der Doku stehts an Stelle 37.
Damit müssten diese Beiden Werte als neuer Inverter im JSON aufgenommen werden.
Code: Alles auswählen
{
"Growatt": {
"config": {
"RequestLiveData": [
["#ClientID", "0x04", "0x00", "0x00", "0x00", "0x77"],
["#ClientID", "0x04", "0x00", "0x78", "0x00", "0x77"]
],
"RequestIdData": ["#ClientID", "0x03", "0x00", "0x00", "0x00", "0x14"],
"ClientIdPos": 0,
"LiveDataFunctionCodePos": 1,
"LiveDataFunctionCode": "0x04",
"IdDataFunctionCodePos": 1,
"IdDataFunctionCode": "0x03",
"LiveDataStartsAtPos": 3,
"IdDataStartsAtPos": 3,
"LiveDataErrorPos": 1,
"LiveDataErrorCode": "0x84",
"IdDataErrorPos": 1,
"IdDataErrorCode": "0x83",
"LiveDataSuccessPos": 1,
"LiveDataSuccessCode": "0x04",
"IdDataSuccessPos": 1,
"IdDataSuccessCode": "0x03"
},
"data": {
"livedata": [{
"position": [197, 198],
"name": "BatVoltage",
"realname": "Battery Voltage",
"datatype": "float",
"factor": 0.1,
"unit": "V"
},
{
"position": [77, 78],
"name": "GridFrequency",
"realname": "Grid Frequency",
"datatype": "float",
"factor": 0.01,
"unit": "Hz"
}
],
"id": [{
"position": [3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16],
"name": "InverterSN",
"realname": "Inverter SerialNumber",
"datatype": "string"
}]
}
},
"Solax-X1": {
"config": {
"RequestLiveData": [
["#ClientID", "0x04", "0x00", "0x00", "0x00", "0x77"],
["#ClientID", "0x04", "0x00", "0x78", "0x00", "0x77"]
],
"RequestIdData": ["#ClientID", "0x03", "0x00", "0x00", "0x00", "0x14"],
"ClientIdPos": 0,
"LiveDataFunctionCodePos": 1,
"LiveDataFunctionCode": "0x04",
"IdDataFunctionCodePos": 1,
"IdDataFunctionCode": "0x03",
"LiveDataStartsAtPos": 3,
"IdDataStartsAtPos": 3,
"LiveDataErrorPos": 1,
"LiveDataErrorCode": "0x84",
"IdDataErrorPos": 1,
"IdDataErrorCode": "0x83",
"LiveDataSuccessPos": 1,
"LiveDataSuccessCode": "0x04",
"IdDataSuccessPos": 1,
"IdDataSuccessCode": "0x03"
},
"data": {
"livedata": [{
"position": [3, 4],
"name": "GridVoltage",
"realname": "Grid Voltage",
"datatype": "float",
"factor": 0.1,
"unit": "V"
},
{
"position": [5, 6],
"name": "GridCurrent",
"realname": "Grid Current",
"datatype": "float",
"factor": 0.1,
"unit": "A"
},
{
"position": [7, 8],
"name": "GridPower",
"realname": "Grid Power",
"datatype": "integer",
"unit": "W"
},
{
"position": [9, 10],
"name": "PvVoltage1",
"realname": "Pv Voltage 1",
"datatype": "float",
"factor": 0.1,
"unit": "V"
},
{
"position": [11, 12],
"name": "PvVoltage2",
"realname": "Pv Voltage 2",
"datatype": "float",
"factor": 0.1,
"unit": "V"
},
{
"position": [13, 14],
"name": "PvCurrent1",
"realname": "Pv Current 1",
"datatype": "float",
"factor": 0.1,
"unit": "A"
},
{
"position": [15, 16],
"name": "PvCurrent2",
"realname": "Pv Current 2",
"datatype": "float",
"factor": 0.1,
"unit": "A"
},
{
"position": [17, 18],
"name": "GridFrequency",
"realname": "Grid Frequency",
"datatype": "float",
"factor": 0.01,
"unit": "Hz"
},
{
"position": [19, 20],
"name": "Temperature",
"realname": "Temperature",
"datatype": "integer",
"unit": "°C"
},
{
"position": [23, 24],
"name": "PowerDC1",
"realname": "Power DC 1",
"datatype": "integer",
"unit": "W"
},
{
"position": [25, 26],
"name": "PowerDC2",
"realname": "Power DC 2",
"datatype": "integer",
"unit": "W"
},
{
"position": [43, 44],
"name": "BatVoltage",
"realname": "Battery Voltage",
"datatype": "float",
"factor": 0.1,
"unit": "V"
},
{
"position": [45, 45],
"name": "BatCurrent",
"realname": "Battery Current",
"datatype": "float",
"factor": 0.1,
"unit": "A"
},
{
"position": [47, 48],
"name": "BatPower",
"realname": "Battery Power",
"datatype": "integer",
"unit": "W"
},
{
"position": [51, 52],
"name": "BatTemp",
"realname": "Battery Temperature",
"datatype": "integer",
"unit": "°C"
},
{
"position": [56, 57],
"name": "BatCapacity",
"realname": "Battery Capacity",
"datatype": "integer",
"unit": "%"
},
{
"position": [58, 59, 60, 61],
"name": "OutputEnergyCharge",
"realname": "Output Energy Charge",
"datatype": "float",
"factor": 0.1,
"unit": "kWh"
},
{
"position": [64, 65],
"name": "OutputEnergyChargeToday",
"realname": "Output Energy Charge Today",
"datatype": "float",
"factor": 0.1,
"unit": "W"
},
{
"position": [66, 67, 68, 69],
"name": "InputEnergyCharge",
"realname": "Input Energy Charge",
"datatype": "float",
"factor": 0.1,
"unit": "kWh"
},
{
"position": [70, 71],
"name": "InputEnergyChargeToday",
"realname": "Input Energy Charge Today",
"datatype": "float",
"factor": 0.1,
"unit": "kWh"
},
{
"position": [141, 142, 143, 144],
"name": "feedinPower",
"realname": "FeedIn Energy Power to Grid",
"datatype": "integer",
"unit": "W"
},
{
"position": [145, 146, 147, 148],
"name": "feedinEnergyTotal",
"realname": "FeedIn Energy Total",
"datatype": "float",
"factor": 0.01,
"unit": "kWh"
},
{
"position": [149, 150, 151, 152],
"name": "consumedEnergyTotal",
"realname": "Consumed Energy Total",
"datatype": "float",
"factor": 0.01,
"unit": "kWh"
},
{
"position": [163, 164],
"name": "EtodayToGrid",
"realname": "Today Energy to Grid",
"datatype": "float",
"factor": 0.1,
"unit": "kWh"
},
{
"position": [165, 166, 167, 168],
"name": "EtotalToGrid",
"realname": "Total Energy to Grid",
"datatype": "float",
"factor": 0.1,
"unit": "kWh"
},
{
"position": [276, 277, 278, 279],
"name": "OnGridRunTime",
"realname": "OnGrid RunTime",
"datatype": "float",
"factor": 0.1,
"unit": "h"
},
{
"position": [280, 281, 282, 283],
"name": "OffGridRunTime",
"realname": "OffGrid RunTime",
"datatype": "float",
"factor": 0.1,
"unit": "h"
}
],
"id": [{
"position": [3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16],
"name": "InverterSN",
"realname": "Inverter SerialNumber",
"datatype": "string"
},
{
"position": [17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30],
"name": "FactoryName",
"realname": "Factory Name",
"datatype": "string"
},
{
"position": [31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44],
"name": "ModuleName",
"realname": "Module Name",
"datatype": "string"
}
]
}
},
"Solax-X3": {
"config": {
"RequestLiveData": [
["#ClientID", "0x04", "0x00", "0x00", "0x00", "0x77"],
["#ClientID", "0x04", "0x00", "0x78", "0x00", "0x77"]
],
"RequestIdData": ["#ClientID", "0x03", "0x00", "0x00", "0x00", "0x14"],
"ClientIdPos": 0,
"LiveDataFunctionCodePos": 1,
"LiveDataFunctionCode": "0x04",
"IDDataFunctionCodePos": 1,
"IdDataFunctionCode": "0x03",
"LiveDataStartsAtPos": 3,
"IdDataStartsAtPos": 3,
"LiveDataErrorPos": 1,
"LiveDataErrorCode": "0x84",
"IdDataErrorPos": 1,
"IdDataErrorCode": "0x83",
"LiveDataSuccessPos": 1,
"LiveDataSuccessCode": "0x04",
"IdDataSuccessPos": 1,
"IdDataSuccessCode": "0x03"
},
"data": {
"livedata": [{
"position": [3, 4],
"name": "GridVoltage",
"realname": "Grid Voltage",
"datatype": "float",
"factor": 0.1,
"unit": "V"
},
{
"position": [5, 6],
"name": "GridCurrent",
"realname": "Grid Current",
"datatype": "float",
"factor": 0.1,
"unit": "A"
},
{
"position": [7, 8],
"name": "GridPower",
"realname": "Grid Power",
"datatype": "integer",
"unit": "W"
},
{
"position": [9, 10],
"name": "PvVoltage1",
"realname": "Pv Voltage 1",
"datatype": "float",
"factor": 0.1,
"unit": "V"
},
{
"position": [11, 12],
"name": "PvVoltage2",
"realname": "Pv Voltage 2",
"datatype": "float",
"factor": 0.1,
"unit": "V"
},
{
"position": [13, 14],
"name": "PvCurrent1",
"realname": "Pv Current 1",
"datatype": "float",
"factor": 0.1,
"unit": "A"
},
{
"position": [15, 16],
"name": "PvCurrent2",
"realname": "Pv Current 2",
"datatype": "float",
"factor": 0.1,
"unit": "A"
},
{
"position": [17, 18],
"name": "GridFrequency",
"realname": "Grid Frequency",
"datatype": "float",
"factor": 0.01,
"unit": "Hz"
},
{
"position": [19, 20],
"name": "Temperature",
"realname": "Temperature",
"datatype": "integer",
"unit": "°C"
},
{
"position": [23, 24],
"name": "PowerDC1",
"realname": "Power DC 1",
"datatype": "integer",
"unit": "W"
},
{
"position": [25, 26],
"name": "PowerDC2",
"realname": "Power DC 2",
"datatype": "integer",
"unit": "W"
},
{
"position": [43, 44],
"name": "BatVoltage",
"realname": "Battery Voltage",
"datatype": "float",
"factor": 0.1,
"unit": "V"
},
{
"position": [45, 45],
"name": "BatCurrent",
"realname": "Battery Current",
"datatype": "float",
"factor": 0.1,
"unit": "A"
},
{
"position": [47, 48],
"name": "BatPower",
"realname": "Battery Power",
"datatype": "integer",
"unit": "W"
},
{
"position": [51, 52],
"name": "BatTemp",
"realname": "Battery Temperature",
"datatype": "integer",
"unit": "°C"
},
{
"position": [56, 57],
"name": "BatCapacity",
"realname": "Battery Capacity",
"datatype": "integer",
"unit": "%"
},
{
"position": [58, 59, 60, 61],
"name": "OutputEnergyCharge",
"realname": "Output Energy Charge",
"datatype": "float",
"factor": 0.1,
"unit": "kWh"
},
{
"position": [64, 65],
"name": "OutputEnergyChargeToday",
"realname": "Output Energy Charge Today",
"datatype": "float",
"factor": 0.1,
"unit": "W"
},
{
"position": [66, 67, 68, 69],
"name": "InputEnergyCharge",
"realname": "Input Energy Charge",
"datatype": "float",
"factor": 0.1,
"unit": "kWh"
},
{
"position": [70, 71],
"name": "InputEnergyChargeToday",
"realname": "Input Energy Charge Today",
"datatype": "float",
"factor": 0.1,
"unit": "kWh"
},
{
"position": [141, 142, 143, 144],
"name": "feedinPower",
"realname": "FeedIn Energy Power to Grid",
"datatype": "integer",
"unit": "W"
},
{
"position": [145, 146, 147, 148],
"name": "feedinEnergyTotal",
"realname": "FeedIn Energy Total",
"datatype": "float",
"factor": 0.01,
"unit": "kWh"
},
{
"position": [149, 150, 151, 152],
"name": "consumedEnergyTotal",
"realname": "Consumed Energy Total",
"datatype": "float",
"factor": 0.01,
"unit": "kWh"
},
{
"position": [166, 167],
"name": "EtodayToGrid",
"realname": "Today Energy to Grid",
"datatype": "float",
"factor": 0.1,
"unit": "kWh"
},
{
"position": [165, 166, 167, 168],
"name": "EtotalToGrid",
"realname": "Total Energy to Grid",
"datatype": "float",
"factor": 0.1,
"unit": "kWh"
},
{
"position": [273, 274, 275, 276],
"name": "OnGridRunTime",
"realname": "OnGrid RunTime",
"datatype": "float",
"factor": 0.1,
"unit": "h"
},
{
"position": [277, 278, 279, 280],
"name": "OffGridRunTime",
"realname": "OffGrid RunTime",
"datatype": "float",
"factor": 0.1,
"unit": "h"
}
],
"id": [{
"position": [3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16],
"name": "InverterSN",
"realname": "Inverter SerialNumber",
"datatype": "string"
},
{
"position": [17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30],
"name": "FactoryName",
"realname": "Factory Name",
"datatype": "string"
},
{
"position": [31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44],
"name": "ModuleName",
"realname": "Module Name",
"datatype": "string"
}
]
}
}
}