Hi,
I have a (new) solaredge inverter for solar panels installed. I installed the solaredge binding in openhab 3.3. The inverter is using and external meter and I’m using the private API to access the solaredge web platform.
The good news is: the connection works. The bad news is: it only reports aggregate and no live data. Here are my items, linked to the standard solaredge channels:
// ---------------------
// Inverter
// ---------------------
Group Inverter "Inverter" <inverter> (Cellars) ["Inverter"] {widgetOrder=1}
Number:Power SolarEdge_Production_Live "PV Production [%.2f %unit%]" {channel="solaredge:generic:inverter:live#production"}
Number:Energy SolarEdge_Production_Day "PV Production Day" {channel="solaredge:generic:inverter:aggregate_day#production"}
Number:Energy SolarEdge_Production_Week "PV Production Week [%.0f %unit%]" {channel="solaredge:generic:inverter:aggregate_week#production"}
Number:Energy SolarEdge_Production_Month "PV Production Month [%.0f %unit%]" {channel="solaredge:generic:inverter:aggregate_month#production"}
Number:Energy SolarEdge_Production_Year "PV Production Month [%.0f %unit%]" {channel="solaredge:generic:inverter:aggregate_year#production"}
I set the debug level to TRACE, and the problem seems to be that nothign is coming back from the inverter in the HTTP call:
==> /var/log/openhab/openhab.log <==
2022-08-09 12:23:23.812 [DEBUG] [nal.handler.SolarEdgeLiveDataPolling] - polling SolarEdge live data org.openhab.binding.solaredge.internal.config.SolarEdgeConfiguration@1ea49b6[tokenOrApiKey=disguised,solarId=disguised,meterInstalled=true,usePrivateApi=true,live data pollingInterval=10,aggregate data pollingInterval=10,asyncTimeout=120,syncTimeout=120]
2022-08-09 12:23:28.934 [DEBUG] [nal.callback.AbstractCommandCallback] - received content, length: 27
2022-08-09 12:23:28.951 [DEBUG] [nal.callback.AbstractCommandCallback] - HTTP response 200
2022-08-09 12:23:28.964 [DEBUG] [nal.callback.AbstractCommandCallback] - onComplete()
2022-08-09 12:23:28.975 [DEBUG] [nal.callback.AbstractCommandCallback] - JSON String: {"siteCurrentPowerFlow":null}
2022-08-09 12:23:28.997 [DEBUG] [odel.AbstractDataResponseTransformer] - Could not determine power unit: 'null'
2022-08-09 12:23:29.008 [DEBUG] [odel.AbstractDataResponseTransformer] - Channel live#import: no value/unit provided
2022-08-09 12:23:29.021 [DEBUG] [odel.AbstractDataResponseTransformer] - Could not determine power unit: 'null'
2022-08-09 12:23:29.033 [DEBUG] [odel.AbstractDataResponseTransformer] - Channel live#export: no value/unit provided
2022-08-09 12:23:29.045 [DEBUG] [odel.AbstractDataResponseTransformer] - Could not determine power unit: 'null'
2022-08-09 12:23:29.056 [DEBUG] [odel.AbstractDataResponseTransformer] - Channel live#battery_charge: no value/unit provided
2022-08-09 12:23:29.070 [DEBUG] [odel.AbstractDataResponseTransformer] - Could not determine power unit: 'null'
2022-08-09 12:23:29.081 [DEBUG] [odel.AbstractDataResponseTransformer] - Channel live#battery_discharge: no value/unit provided
2022-08-09 12:23:29.093 [DEBUG] [odel.AbstractDataResponseTransformer] - Could not determine power unit: 'null'
2022-08-09 12:23:29.105 [DEBUG] [odel.AbstractDataResponseTransformer] - Channel live#battery_charge_discharge: no value/unit provided
2022-08-09 12:23:29.116 [DEBUG] [nternal.handler.SolarEdgeBaseHandler] - Handling channel update.
2022-08-09 12:23:29.129 [DEBUG] [nternal.handler.SolarEdgeBaseHandler] - Channel is to be updated: solaredge:generic:inverter:live#export: UNDEF
2022-08-09 12:23:29.143 [DEBUG] [nternal.handler.SolarEdgeBaseHandler] - Channel is to be updated: solaredge:generic:inverter:live#import: UNDEF
2022-08-09 12:23:29.156 [DEBUG] [nternal.handler.SolarEdgeBaseHandler] - Channel is to be updated: solaredge:generic:inverter:live#battery_charge_discharge: UNDEF
2022-08-09 12:23:29.171 [DEBUG] [nternal.handler.SolarEdgeBaseHandler] - Channel is to be updated: solaredge:generic:inverter:live#battery_discharge: UNDEF
2022-08-09 12:23:29.184 [DEBUG] [nternal.handler.SolarEdgeBaseHandler] - Channel is to be updated: solaredge:generic:inverter:live#battery_charge: UNDEF
The call to the aggregate data - to the contrary - has some payload:
2022-08-09 12:24:23.814 [DEBUG] [andler.SolarEdgeAggregateDataPolling] - polling SolarEdge aggregate data org.openhab.binding.solaredge.internal.config.SolarEdgeConfiguration@10a3898[tokenOrApiKey=disguised,solarId=disguised,meterInstalled=true,usePrivateApi=true,live data pollingInterval=10,aggregate data pollingInterval=10,asyncTimeout=120,syncTimeout=120]
2022-08-09 12:24:23.991 [DEBUG] [nal.callback.AbstractCommandCallback] - received content, length: 4589
2022-08-09 12:24:24.012 [DEBUG] [nal.callback.AbstractCommandCallback] - HTTP response 200
2022-08-09 12:24:24.026 [DEBUG] [nal.callback.AbstractCommandCallback] - onComplete()
2022-08-09 12:24:24.044 [DEBUG] [nal.callback.AbstractCommandCallback] - JSON String: {"fieldStartDate":1657110102000,"fieldEndDate":1660089599000,"dataStartDate":1660003200000,"dataEndDate":1660089599000,"utilizationMeasures":{"production":{"value":6.611,"unit":"kWh"}},"isMSCMode":true,"measurementUnit":"W","systemProduction":
Any idea on what I need to change, to get the life data back as well?