No Solaredge Data provided by API

Hello everyone,
im setting up my solaredge roof solar plant, still having issues. Binding is installed but the only readings i get is the Production channel (Live, day, week, month, year) (although its inaccurate), NONE of the other channel work. Using REST API shows response “NULL” for all channels…

Any idea where to start?

My items file:

//*** Solaranlage -----------------------------------------------
	
	//*** Live Status -----------------------------------------------
		Number Production "Produktion [%.2s %unit%]" <solarplant> (gSolaranlage){channel="solaredge:generic:cb124819:live#production"}
		String PV_Status "PV Status [%.2f %s %d %% W]" <solarplant> (gSolaranlage){channel="solaredge:generic:cb124819:live#pv_status"}
		Number Consumption "Verbrauch [%s W]" <solarplant> (gSolaranlage){channel="solaredge:generic:cb124819:live#consumption"}
		String Load_Status "Ladezustand [%% %sW]" <solarplant> (gSolaranlage){channel="solaredge:generic:cb124819:live#load_status"}
		Number Battery_Charge "Batterieladung [%s W]" <solarplant> (gSolaranlage){channel="solaredge:generic:cb124819:live#battery_charge"}
		Number Battery_Discharge "Batterieentladung [%s W]" <solarplant> (gSolaranlage){channel="solaredge:generic:cb124819:live#battery_discharge"}
		Number Battery_Charge_Discharge "Batterie Ladung/Entladung [%s W]" <solarplant> (gSolaranlage){channel="solaredge:generic:cb124819:live#battery_charge_discharge"}
		Number Battery_Level "Batterie Level [%s W]" <solarplant> (gSolaranlage){channel="solaredge:generic:cb124819:live#battery_level"}
		String Battery_Status "Batteriestatus [%% %sW]" <solarplant> (gSolaranlage){channel="solaredge:generic:cb124819:live#battery_status"}
		String Battery_Critical "Batterie kritisch [%% %s W]" <solarplant> (gSolaranlage){channel="solaredge:generic:cb124819:live#battery_critical"}
		Number Import "Bezug [%s W]" <solarplant> (gSolaranlage){channel="solaredge:generic:cb124819:live#import"}
		Number Export "Einspeisung [%s W]" <solarplant> (gSolaranlage){channel="solaredge:generic:cb124819:live#export"}
		String Grid_Status "Netzstatus [%s W]" <solarplant> (gSolaranlage){channel="solaredge:generic:cb124819:live#grid_status"}

My binding page:

Best to always check the logs. Crank the log level up until you get what you need.

the openhab log doesnt say anything about the solaredge channels… just the working production channel.

Are you sure your logging level is set correctly? The log should show a good amount of DEBUG output if it is, including this:

polling SolarEdge aggregate data

This command in the console shows the current setting.

log:get org.openhab.binding.solaredge

Use this command to set to DEBUG:

log:set TRACE org.openhab.binding.solaredge

changed it to TRACE but without succes… no channel seems to be polled but the productions…

2020-08-30 22:41:43.458 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model ‘Solar.items’

2020-08-30 22:41:51.049 [DEBUG] [nal.handler.SolarEdgeLiveDataPolling] - polling SolarEdge live data org.openhab.binding.solaredge.internal.config.SolarEdgeConfiguration@18a3699[tokenOrApiKey=XXXX,solarId=1746020,meterInstalled=false,usePrivateApi=false,live data pollingInterval=10,aggregate data pollingInterval=60,asyncTimeout=120,syncTimeout=120]

2020-08-30 22:41:55.399 [DEBUG] [nal.callback.AbstractCommandCallback] - received content, length: 245

2020-08-30 22:41:55.402 [DEBUG] [nal.callback.AbstractCommandCallback] - HTTP response 200

2020-08-30 22:41:55.403 [DEBUG] [nal.callback.AbstractCommandCallback] - onComplete()

2020-08-30 22:41:55.405 [DEBUG] [nal.callback.AbstractCommandCallback] - JSON String: {“overview”:{“lastUpdateTime”:“2020-08-30 22:33:17”,“lifeTimeData”:{“energy”:485783.0},“lastYearData”:{“energy”:478041.0},“lastMonthData”:{“energy”:478041.0},“lastDayData”:{“energy”:18273.0},“currentPower”:{“power”:0.0},“measuredBy”:“INVERTER”}}

2020-08-30 22:41:55.410 [DEBUG] [odel.AbstractDataResponseTransformer] - Channel live#production transformed to QuantityType (0.0 W) → 0.0 W

2020-08-30 22:41:55.413 [DEBUG] [odel.AbstractDataResponseTransformer] - Channel aggregate_day#production transformed to QuantityType (18273.0 Wh) → 18273.0 Wh

2020-08-30 22:41:55.416 [DEBUG] [odel.AbstractDataResponseTransformer] - Channel aggregate_month#production transformed to QuantityType (478041.0 Wh) → 478041.0 Wh

2020-08-30 22:41:55.419 [DEBUG] [odel.AbstractDataResponseTransformer] - Channel aggregate_year#production transformed to QuantityType (478041.0 Wh) → 478041.0 Wh

2020-08-30 22:41:55.421 [DEBUG] [odel.AbstractDataResponseTransformer] - Channel aggregate_week#production: no value/unit provided

2020-08-30 22:41:55.423 [DEBUG] [nternal.handler.SolarEdgeBaseHandler] - Handling channel update.

2020-08-30 22:41:55.425 [DEBUG] [nternal.handler.SolarEdgeBaseHandler] - Channel is to be updated: solaredge:generic:cb124819:live#production: 0.0 W

2020-08-30 22:41:55.437 [DEBUG] [nternal.handler.SolarEdgeBaseHandler] - Channel is to be updated: solaredge:generic:cb124819:aggregate_year#production: 478041.0 Wh

2020-08-30 22:41:55.447 [DEBUG] [nternal.handler.SolarEdgeBaseHandler] - Channel is to be updated: solaredge:generic:cb124819:aggregate_month#production: 478041.0 Wh

2020-08-30 22:41:55.461 [DEBUG] [nternal.handler.SolarEdgeBaseHandler] - Channel is to be updated: solaredge:generic:cb124819:aggregate_week#production: UNDEF

2020-08-30 22:41:55.466 [DEBUG] [nternal.handler.SolarEdgeBaseHandler] - Channel is to be updated: solaredge:generic:cb124819:aggregate_day#production: 18273.0 Wh

I’m wondering if the detailed information only comes with the meterInstalled parameter set to true. The doc says:

Available channels depend on the specific setup e.g. if a meter and/or a battery is present.

Unfortunately, they don’t details which channels are always available and which depend on the various additional hardware…

good finding. I changed the value to “yes” and now have far more data available, although not all of it. The live data all works, the aggregated data mostly not.

edit: after an hour or more almost all data are now filled… might be a process :slight_smile:

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.