I would like to get actual data from our Solar Invertor (Fronius) in Domoticz, so I can use this data for further automation of things. I found on this Forum a Python plugin but that is not working with my model invertor. It looks like it should be not too hard to get it working in dzVents.
The URL for connecting to the Fronius Inverter is in my case:
http://192.168.1.60/solar_api/v1/GetInv ... verterData
The output is as following:
Code: Select all
{
"Body" : {
"Data" : {
"DAY_ENERGY" : {
"Unit" : "Wh",
"Value" : 710.10000000000002
},
"DeviceStatus" : {
"ErrorCode" : 522,
"LEDColor" : 2,
"LEDState" : 0,
"MgmtTimerRemainingTime" : -1,
"StateToReset" : true,
"StatusCode" : 7
},
"FAC" : {
"Unit" : "Hz",
"Value" : 49.960000000000001
},
"IAC" : {
"Unit" : "A",
"Value" : 0.23999999999999999
},
"IDC" : {
"Unit" : "A",
"Value" : 0.52000000000000002
},
"PAC" : {
"Unit" : "W",
"Value" : 33
},
"TOTAL_ENERGY" : {
"Unit" : "Wh",
"Value" : 710
},
"UAC" : {
"Unit" : "V",
"Value" : 225.90000000000001
},
"UDC" : {
"Unit" : "V",
"Value" : 0.5
},
"YEAR_ENERGY" : {
"Unit" : "Wh",
"Value" : 710.10000000000002
}
}
},
"Head" : {
"RequestArguments" : {
"DataCollection" : "CommonInverterData",
"DeviceClass" : "Inverter",
"DeviceId" : "1",
"Scope" : "Device"
},
"Status" : {
"Code" : 0,
"Reason" : "",
"UserMessage" : ""
},
"Timestamp" : "2020-11-15T14:20:52+01:00"
}
}
Can someone help me with a bit of scripting? Many thanks!