ayasystems / froniusHttp

Fronius http phyton domoticz plugin
GNU General Public License v3.0
5 stars 3 forks source link

(Fronius inventer) Processing 'onHeartbeatCallback' message #9

Closed prelude0000 closed 2 years ago

prelude0000 commented 2 years ago

I just installed this plugin from git to Domoticz V2020.2 and it's giving me the following errors into the log:

` 2021-09-01 23:09:08.090 (Fronius inventer) Pushing 'onHeartbeatCallback' on to queue 2021-09-01 23:09:08.108 (Fronius inventer) Processing 'onHeartbeatCallback' message 2021-09-01 23:09:08.108 (Fronius inventer) Calling message handler 'onHeartbeat'. 2021-09-01 23:09:08.108 (Fronius inventer) Retrieve solar data from http://10.10.10.185/solar_api/v1/GetInverterRealtimeData.cgi?Scope=Device&DeviceID=1&DataCollection=CommonInverterData 2021-09-01 23:09:09.320 Error: (Fronius inventer) 'onHeartbeat' failed 'KeyError'. 2021-09-01 23:09:09.320 Error: (Fronius inventer) ----> Line 181 in '/config/plugins/domoticz-fronius-inverter-plugin/plugin.py' 2021-09-01 23:09:09.320 Error: (Fronius inventer) ----> Line 65 in '/config/plugins/domoticz-fronius-inverter-plugin/plugin.py' 2021-09-01 23:09:09.320 Error: (Fronius inventer) ----> Line 125 in '/config/plugins/domoticz-fronius-inverter-plugin/plugin.py'

`

Command curl "http://10.10.10.185/solar_api/v1/GetInverterRealtimeData.cgi?Scope=Device&DeviceID=1&DataCollection=CommonInverterData" gives: `{ "Body" : { "Data" : { "DAY_ENERGY" : { "Unit" : "Wh", "Value" : 30560 }, "DeviceStatus" : { "ErrorCode" : 307, "LEDColor" : 1, "LEDState" : 0, "MgmtTimerRemainingTime" : 4, "StateToReset" : false, "StatusCode" : 3 }, "IDC" : { "Unit" : "A", "Value" : 0 }, "TOTAL_ENERGY" : { "Unit" : "Wh", "Value" : 3033740 }, "UDC" : { "Unit" : "V", "Value" : 1.3999999999999999 }, "YEAR_ENERGY" : { "Unit" : "Wh", "Value" : 3033747.75 } } }, "Head" : { "RequestArguments" : { "DataCollection" : "CommonInverterData", "DeviceClass" : "Inverter", "DeviceId" : "1", "Scope" : "Device" }, "Status" : { "Code" : 0, "Reason" : "", "UserMessage" : "" }, "Timestamp" : "2021-09-01T23:10:43+03:00" } }

Device details:

`

ayasystems commented 2 years ago

Plugin was made with a Primo inverter, sorry