New binding available: SolarEdge binding

To ease up the setup, I’ve installed a new OH server with only the solaredge binding running.

The installed binding (paperUI):

openhab> bundle:list | grep Solar
198 | Active   |  80 | 2.4.0.M7               | SolarEdge Binding

Items (text file):

Number:Power    se15000_Prod                    "Huidige productie [%.2f kW]"           <sun>           (BU_solar)      { channel="solaredge:generic:76a84c13:live#production" }
Number:Energy   se15000_DProd                   "Productie Dag [%.2f kW]"               <line>                          { channel="solaredge:generic:76a84c13:aggregate_day#production" }
Number:Energy   se15000_WProd                   "Productie Week [%.2f kW]"              <line>                          { channel="solaredge:generic:76a84c13:aggregate_week#production" }
Number:Energy   se15000_MProd                   "Productie Maand [%.2f kW]"             <line>                          { channel="solaredge:generic:76a84c13:aggregate_month#production" }
Number:Energy   se15000_YProd                   "Productie Jaar [%.2f kW]"              <line>                          { channel="solaredge:generic:76a84c13:aggregate_year#production" }

Log settings (karaf):

openhab> log:list | grep Solar
SolarEdge                                          | DEBUG

Log output:

2018-12-08 16:46:15.112 [.ItemChannelLinkAddedEvent] - Link 'se15000_Prod-solaredge:generic:76a84c13:live#production' has been added.
2018-12-08 16:46:15.113 [.ItemChannelLinkAddedEvent] - Link 'se15000_DProd-solaredge:generic:76a84c13:aggregate_day#production' has been added.
2018-12-08 16:46:15.115 [.ItemChannelLinkAddedEvent] - Link 'se15000_WProd-solaredge:generic:76a84c13:aggregate_week#production' has been added.
2018-12-08 16:46:15.122 [.ItemChannelLinkAddedEvent] - Link 'se15000_MProd-solaredge:generic:76a84c13:aggregate_month#production' has been added.
2018-12-08 16:46:15.124 [.ItemChannelLinkAddedEvent] - Link 'se15000_YProd-solaredge:generic:76a84c13:aggregate_year#production' has been added.
2018-12-08 16:53:17.377 [vent.ItemStateChangedEvent] - se15000_YProd changed from NULL to UNDEF
2018-12-08 16:53:17.382 [vent.ItemStateChangedEvent] - se15000_DProd changed from NULL to UNDEF
2018-12-08 16:53:17.384 [vent.ItemStateChangedEvent] - se15000_MProd changed from NULL to UNDEF
2018-12-08 16:53:17.385 [vent.ItemStateChangedEvent] - se15000_WProd changed from NULL to UNDEF
2018-12-08 16:53:17.386 [vent.ItemStateChangedEvent] - se15000_Prod changed from NULL to 0.0 kW
2018-12-09 09:13:20.862 [vent.ItemStateChangedEvent] - se15000_Prod changed from 0.0 kW to 0.001 kW
2018-12-09 09:23:20.876 [vent.ItemStateChangedEvent] - se15000_Prod changed from 0.001 kW to 0.003 kW
2018-12-09 09:33:20.986 [vent.ItemStateChangedEvent] - se15000_Prod changed from 0.003 kW to 0.16 kW
2018-12-09 09:43:20.875 [vent.ItemStateChangedEvent] - se15000_Prod changed from 0.16 kW to 0.911 kW
2018-12-09 09:53:20.963 [vent.ItemStateChangedEvent] - se15000_Prod changed from 0.911 kW to 0.563 kW
2018-12-09 10:03:20.950 [vent.ItemStateChangedEvent] - se15000_Prod changed from 0.563 kW to 0.319 kW
<knip>........
2018-12-11 16:23:20.940 [vent.ItemStateChangedEvent] - se15000_Prod changed from 0.058 kW to 0.006 kW
2018-12-11 16:33:20.970 [vent.ItemStateChangedEvent] - se15000_Prod changed from 0.006 kW to 0.0 kW
2018-12-12 08:53:19.147 [vent.ItemStateChangedEvent] - se15000_Prod changed from 0.0 kW to 0.008 kW
2018-12-12 09:03:19.165 [vent.ItemStateChangedEvent] - se15000_Prod changed from 0.008 kW to 0.061 kW
2018-12-12 09:13:19.414 [vent.ItemStateChangedEvent] - se15000_Prod changed from 0.061 kW to 0.192 kW
2018-12-12 09:23:19.506 [vent.ItemStateChangedEvent] - se15000_Prod changed from 0.192 kW to 0.306 kW

Any tips what I can do next?

Your logging configuration is wrong. You should set “org.openhab.binding.solaredge” instead of “SolarEdge” to DEBUG
The log output should then be much more detailed.

Hi,

maybe you could add on the main binding page (https://www.openhab.org/addons/bindings/solaredge/) the information that a meter means any kind of meter (ie. a S0 meter) and not necessarily the official solaredge meter.

In my case I have a cheap S0 (20 Euro) meter installed that is connected to my inverter. By doing so I’m able to collect the current input from the grid thru the SE monitoring site and by the binding as well.

What I don’t understand: why is the private API only enabled when a meter is installed?

Kind regards and thank you very much for this wonderful binding.

Cheers, Andreas

Ah. OK. This contains much more information… :wink:
Looks like most info is coming in?

2018-12-13 16:30:41.770 [DEBUG] [nal.handler.SolarEdgeLiveDataPolling] - polling SolarEdge live data org.openhab.binding.solaredge.internal.config.SolarEdgeConfiguration@73aa9a8[tokenOrApiKey=XXX,solarId=YYY,meterInstalled=false,usePrivateApi=false,live data pollingInterval=10,aggregate data pollingInterval=60,asyncTimeout=120,syncTimeout=120]
2018-12-13 16:30:42.919 [DEBUG] [nal.callback.AbstractCommandCallback] - received content, length: 267
2018-12-13 16:30:42.922 [DEBUG] [nal.callback.AbstractCommandCallback] - HTTP response 200
2018-12-13 16:30:42.923 [DEBUG] [nal.callback.AbstractCommandCallback] - onComplete()
2018-12-13 16:30:42.925 [DEBUG] [nal.callback.AbstractCommandCallback] - JSON String: {"overview":{"lastUpdateTime":"2018-12-13 16:27:57","lifeTimeData":{"energy":8003057.0,"revenue":2030.9508},"lastYearData":{"energy":7995869.0},"lastMonthData":{"energy":76914.0},"lastDayData":{"energy":11966.0},"currentPower":{"power":28.0},"measuredBy":"INVERTER"}}
2018-12-13 16:30:42.928 [DEBUG] [rnal.model.LiveDataResponseMeterless] - Channel WEEK_PRODUCTION: no value/unit provided
2018-12-13 16:30:42.929 [DEBUG] [nternal.handler.SolarEdgeBaseHandler] - Handling channel update.
2018-12-13 16:30:42.930 [DEBUG] [nternal.handler.SolarEdgeBaseHandler] - Channel is to be updated: live#production: 28.0 W
2018-12-13 16:30:42.934 [DEBUG] [nternal.handler.SolarEdgeBaseHandler] - Channel is to be updated: aggregate_day#production: 11966.0 Wh
2018-12-13 16:30:42.937 [DEBUG] [nternal.handler.SolarEdgeBaseHandler] - Channel is to be updated: aggregate_month#production: 76914.0 Wh
2018-12-13 16:30:42.940 [DEBUG] [nternal.handler.SolarEdgeBaseHandler] - Channel is to be updated: aggregate_year#production: 7995869.0 Wh
2018-12-13 16:30:42.943 [DEBUG] [nternal.handler.SolarEdgeBaseHandler] - Channel is to be updated: aggregate_week#production: UNDEF
2018-12-13 16:40:41.777 [DEBUG] [nal.handler.SolarEdgeLiveDataPolling] - polling SolarEdge live data org.openhab.binding.solaredge.internal.config.SolarEdgeConfiguration@2f862c17[tokenOrApiKey=XXX,solarId=YYY,meterInstalled=false,usePrivateApi=false,live data pollingInterval=10,aggregate data pollingInterval=60,asyncTimeout=120,syncTimeout=120]
2018-12-13 16:40:42.672 [DEBUG] [nal.callback.AbstractCommandCallback] - received content, length: 265
2018-12-13 16:40:42.675 [DEBUG] [nal.callback.AbstractCommandCallback] - HTTP response 200
2018-12-13 16:40:42.676 [DEBUG] [nal.callback.AbstractCommandCallback] - onComplete()
2018-12-13 16:40:42.677 [DEBUG] [nal.callback.AbstractCommandCallback] - JSON String: {"overview":{"lastUpdateTime":"2018-12-13 16:27:57","lifeTimeData":{"energy":8003058.0,"revenue":2030.951},"lastYearData":{"energy":7995870.0},"lastMonthData":{"energy":76915.0},"lastDayData":{"energy":11967.0},"currentPower":{"power":0.0},"measuredBy":"INVERTER"}}
2018-12-13 16:40:42.682 [DEBUG] [rnal.model.LiveDataResponseMeterless] - Channel WEEK_PRODUCTION: no value/unit provided
2018-12-13 16:40:42.684 [DEBUG] [nternal.handler.SolarEdgeBaseHandler] - Handling channel update.
2018-12-13 16:40:42.685 [DEBUG] [nternal.handler.SolarEdgeBaseHandler] - Channel is to be updated: live#production: 0.0 W
2018-12-13 16:40:42.688 [DEBUG] [nternal.handler.SolarEdgeBaseHandler] - Channel is to be updated: aggregate_day#production: 11967.0 Wh
2018-12-13 16:40:42.690 [DEBUG] [nternal.handler.SolarEdgeBaseHandler] - Channel is to be updated: aggregate_month#production: 76915.0 Wh
2018-12-13 16:40:42.693 [DEBUG] [nternal.handler.SolarEdgeBaseHandler] - Channel is to be updated: aggregate_year#production: 7995870.0 Wh
2018-12-13 16:40:42.696 [DEBUG] [nternal.handler.SolarEdgeBaseHandler] - Channel is to be updated: aggregate_week#production: UNDEF

(I’ve change the token en id)

Hi @Paraglider,

you are wrong. Whatever you bought and however you have connected it to the Solaredge inverter it won’t be able to measure all the data which is retrieved by the solaredge meter.
The binding also works without the meter but then only provides 4 basic channels:

  1. current production
  2. aggregate day production
  3. aggregate month production
  4. aggregate year production

@brononius:
The output looks good. All data is retrieved but however your items don’t get populated with those values?
Did you try to create new items? Did you check if the items are really linked to the solaredge thing/channels? In paperui you can see all channels and you can also see all items linked to a channel.

Hey Alex,

This is a new installation of OH, on a separate server. So not a clone or so, but build from scratch.

And in the paperUI, I can see the link between the item and channel:

Printscreen paperUI
month

Item file

Number:Energy   se15000_MProd   "Productie Maand [%.2f kW]"   <line>   { channel="solaredge:generic:76a84c13:aggregate_month#production" }

Log

log/openhab.log:2018-12-19 13:58:00.935 [DEBUG] [nal.callback.AbstractCommandCallback] - JSON String: {"overview":{"lastUpdateTime":"2018-12-19 13:54:47","lifeTimeData":{"energy":8038271.0,"revenue":2039.8951},"lastYearData":{"energy":8031083.0},"lastMonthData":{"energy":112128.0},"lastDayData":{"energy":4136.0},"currentPower":{"power":1966.0},"measuredBy":"INVERTER"}}
log/openhab.log:2018-12-19 13:58:00.944 [DEBUG] [nternal.handler.SolarEdgeBaseHandler] - Channel is to be updated: aggregate_month#production: 112128.0 Wh

So indeed, I can confirm that the data is nicely pulled from Solaredge. But afterwards, the data isn’t handled by openhab… Somehow.
I’ve got 855 entries in the log that the channel needs to be updated… :blush:

Found it!

Seem that in my item, I can’t have [%.2f kW].
When I change this to [%s], it works.

Guess I’ll need to investigate some time to figure out the number:energy item… :blush:

@brononius:

Finally I can see what went wrong. The unit must be “kWh” and not “kW”.

But this is weird. If the conversion fails there should usually be an error in the logs. Maybe it is only shown in info/debug mode. (conversion is part of openhab itself so debug logging for the binding does not help)
If you don’t need to specify a unit/number format you can also remove the brackets completely. The default output format from the binding will then be used.

BR
Alex

Dear @AlexF

strange. This is what I get from SolarEdge (btw, it’s the same I can see on the official SolarEdge Monitoring WebView)

2018-12-21 11:38:20.578 [DEBUG] [nternal.handler.SolarEdgeBaseHandler] - Channel is to be updated: live#import: 0.0 kW
2018-12-21 11:38:20.581 [DEBUG] [nternal.handler.SolarEdgeBaseHandler] - Channel is to be updated: live#load_status: Active
2018-12-21 11:38:20.582 [DEBUG] [nternal.handler.SolarEdgeBaseHandler] - Channel is to be updated: live#grid_status: Active
2018-12-21 11:38:20.584 [DEBUG] [nternal.handler.SolarEdgeBaseHandler] - Channel is to be updated: live#battery_discharge: 0.0 kW
2018-12-21 11:38:20.585 [DEBUG] [nternal.handler.SolarEdgeBaseHandler] - Channel is to be updated: live#pv_status: Active
2018-12-21 11:38:20.586 [DEBUG] [nternal.handler.SolarEdgeBaseHandler] - Channel is to be updated: live#battery_charge: 0.0 kW
2018-12-21 11:38:20.588 [DEBUG] [nternal.handler.SolarEdgeBaseHandler] - Channel is to be updated: live#export: 0.17 kW
2018-12-21 11:38:20.590 [DEBUG] [nternal.handler.SolarEdgeBaseHandler] - Channel is to be updated: live#production: 0.59 kW
2018-12-21 11:38:20.591 [DEBUG] [nternal.handler.SolarEdgeBaseHandler] - Channel is to be updated: live#consumption: 0.42 kW
2018-12-21 11:38:20.593 [DEBUG] [nternal.handler.SolarEdgeBaseHandler] - Channel is to be updated: live#battery_charge_discharge: 0.0 kW

So you can clearly see that I’m able to receive more then the 4 channels you mentioned.

Merry XMas,
Andreas

Dear Alex, in this Context I was trying to switch (for my yearly production) to MWh. According to the binding page that should be possible

Switching from

Number:Energy            se_year_production   "This Years PV production [%.2f kWh]"   {channel="solaredge:generic:solaredge:aggregate_year#production"}

to

Number:Energy            se_year_production   "This Years PV production [%.2f MWh]"   {channel="solaredge:generic:solaredge:aggregate_year#production"}

changes the label but keeps the value. On the other hand switching to “Wh” also changes the value.

Could it be, that MWh is not supported (yet)? On the UOM page only kWh, Wh and Ws are mentioned…

Furthermore I get an Exception when I receive the years production:

2018-12-23 18:23:08.844 [DEBUG] [nternal.handler.SolarEdgeBaseHandler] - Channel is to be updated: aggregate_year#consumption: 2.267 MWh
2018-12-23 18:23:08.862 [ERROR] [me.core.internal.events.EventHandler] - Creation of ESH-Event failed, because one of the registered event factories has thrown an exception: Error invoking #valueOf(String) on class 'org.eclipse.smarthome.core.library.types.QuantityType' with value '2.267 MWh'.
java.lang.IllegalStateException: Error invoking #valueOf(String) on class 'org.eclipse.smarthome.core.library.types.QuantityType' with value '2.267 MWh'.
        at org.eclipse.smarthome.core.items.events.ItemEventFactory.parseSimpleClassName(ItemEventFactory.java:190) ~[?:?]
        at org.eclipse.smarthome.core.items.events.ItemEventFactory.parseType(ItemEventFactory.java:158) ~[?:?]
        at org.eclipse.smarthome.core.items.events.ItemEventFactory.getState(ItemEventFactory.java:136) ~[?:?]
        at org.eclipse.smarthome.core.items.events.ItemEventFactory.createStateEvent(ItemEventFactory.java:116) ~[?:?]
        at org.eclipse.smarthome.core.items.events.ItemEventFactory.createEventByType(ItemEventFactory.java:80) ~[?:?]
        at org.eclipse.smarthome.core.events.AbstractEventFactory.createEvent(AbstractEventFactory.java:51) ~[?:?]
        at org.eclipse.smarthome.core.internal.events.EventHandler.createESHEvent(EventHandler.java:121) ~[?:?]
        at org.eclipse.smarthome.core.internal.events.EventHandler.handleEvent(EventHandler.java:95) ~[?:?]
        at org.eclipse.smarthome.core.internal.events.EventHandler.handleEvent(EventHandler.java:72) ~[?:?]
        at org.eclipse.smarthome.core.internal.events.ThreadedEventHandler.lambda$0(ThreadedEventHandler.java:67) ~[?:?]
        at java.lang.Thread.run(Thread.java:748) [?:?]
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.GeneratedMethodAccessor80.invoke(Unknown Source) ~[?:?]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
        at java.lang.reflect.Method.invoke(Method.java:498) ~[?:?]
        at org.eclipse.smarthome.core.items.events.ItemEventFactory.parseSimpleClassName(ItemEventFactory.java:181) ~[?:?]
        ... 10 more
Caused by: java.lang.IllegalArgumentException: MWh not recognized (in 2.267 MWh at index 6)
        at tec.uom.se.quantity.Quantities.getQuantity(Quantities.java:80) ~[?:?]
        at org.eclipse.smarthome.core.library.types.QuantityType.<init>(QuantityType.java:96) ~[?:?]
        at org.eclipse.smarthome.core.library.types.QuantityType.valueOf(QuantityType.java:139) ~[?:?]
        at sun.reflect.GeneratedMethodAccessor80.invoke(Unknown Source) ~[?:?]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
        at java.lang.reflect.Method.invoke(Method.java:498) ~[?:?]
        at org.eclipse.smarthome.core.items.events.ItemEventFactory.parseSimpleClassName(ItemEventFactory.java:181) ~[?:?]
        ... 10 more

The MWh unit clearly is provided by SE itself:

018-12-23 18:23:08.792 [DEBUG] [nal.callback.AbstractCommandCallback] - HTTP response 200
2018-12-23 18:23:08.792 [DEBUG] [nal.callback.AbstractCommandCallback] - onComplete()
2018-12-23 18:23:08.793 [DEBUG] [nal.callback.AbstractCommandCallback] - JSON String: {"fieldStartDate":1533552200000,"fieldEndDate":1545609599000,"dataStartDate":1514764800000,"dataEndDate":1546300799000,"utilizationMeasures":{"production":{"value":3.778,"unit":"MWh"},"consumption"
:{"value":2.267,"unit":"MWh"},"selfConsumptionForProduction":{"value":0.6749,"percentage":0.1786177,"unit":"MWh"},"selfConsumptionForConsumption":{"value":0.6749,"percentage":0.29766405,"unit":"MWh"},"import":{"value":1.592421,"percentage":0.7023359,"unit":"MWh"},"export":{"value":3
.103561,"percentage":0.8213823,"unit":"MWh"}},"isMSCMode":true,"measurementUnit":"Wh","systemProduction":{"dateSeries":[{"date":"2018-01-01 00:00:00","value":null},{"date":"2018-02-01 00:00:00","value":null},{"date":"2018-03-01 00:00:00","value":null},{"date":"2018-04-01 00:00:00","....

Andreas

@Paraglider

You are right, you receive much more data than expected.
But I still do not believe that data is collected by your cheap S0 meter. Are you absolutely sure that there is no solaredge meter installed in your fuse box?

BR Alex

Dear Alex,

yes I’m sure. My father did install the S0 Meter and the inverter by himself.

By doing so your binding also delivers quite a lot of additional information:

2018-12-21 22:05:15.051 [DEBUG] [nternal.handler.SolarEdgeBaseHandler] - Channel is to be updated: aggregate_month#export: 87.154 kWh
2018-12-21 22:05:15.052 [DEBUG] [nternal.handler.SolarEdgeBaseHandler] - Channel is to be updated: aggregate_month#selfConsumptionCoverage: 12.579206000000001 %
2018-12-21 22:05:15.058 [DEBUG] [nternal.handler.SolarEdgeBaseHandler] - Channel is to be updated: aggregate_month#production: 145.221 kWh
2018-12-21 22:05:15.063 [DEBUG] [nternal.handler.SolarEdgeBaseHandler] - Channel is to be updated: aggregate_month#selfConsumptionForConsumption: 58.067 kWh
2018-12-21 22:05:15.069 [DEBUG] [nternal.handler.SolarEdgeBaseHandler] - Channel is to be updated: aggregate_month#consumption: 461.611 kWh
2018-12-21 22:05:15.076 [DEBUG] [nternal.handler.SolarEdgeBaseHandler] - Channel is to be updated: aggregate_month#import: 403.544 kWh

Although I do not understand how this works it seems to provide the data.

Could you describe your setup a little bit more detailed? I could then update the docs accordingly.

The setup I’m using is quite simple:

This meter is located in my meter cabinet and is used to detect my power consumption. The S0 impulse is injected into the inverter by using this cable.

By doing so I’m able to get beyond the German “70% limitation”: I’m not allowed to feed more then 70% of the peak energy into the grid. Usually this means that the inverter caps the production to the 70% level. But by using 30% (or more) of the energy by myself, I can use the full power of my panels.

The whole thing is also described here.

Ok understood. There are two options: export meter or consumption meter and depending on the type of installation different measurements are possible,

My modbus meter is configured as combined import/export meter which allows more measurements:

  • import
  • export
  • consumption (calculated)
  • self consumption (calculated)

But I will adopt the docs accordingly. I guess many users might consider using a S0 meter as there are only a few limitations.

Dear Alex,

any updates on this issue? Are you aware that MWh are currently not handled correctly?

Kind regards,
Andreas

Hi @Paraglider,

I have tested it and can confirm that it does not work as expected.
As this functionality is provided by the Eclipse Smarthome platform I have filed a bug there:

BR
Alex

A bugfix was merged into openhab so I guess it will be fixed in the next milestone version.

1 Like

Thank you very much!

Hi @AlexF,

using the “2.4.0 SolarEdge Binding” I no longer receive live data but only weekly data.
in my system I have a meter installed.
Even if I set the log to DEBUG I can’t see the requests going out to Solaredge
Do you have any idea where i can check?
Does the token for private API have a expiration?

solaredge:generic:se5000private     [ tokenOrApiKey="mytoken", solarId="mysolarid", meterInstalled=true, usePrivateApi=true, liveDataPollingInterval=10, aggregateDataPollingInterval=30` ]

Number:Power    SE5000_Live_Production   "Produzione FV live [%.2f kWh]" (gInfluxdb, gFotoVoltaico)   {channel="solaredge:generic:se5000private:live#production"}
  String          SE5000_Live_Status       "Stato impianto [%s]"        (gInfluxdb, gFotoVoltaico)          {channel="solaredge:generic:se5000private:live#pv_status"}
   Number:Power    SE5000_Live_Consumption    "Consumo live [%.2f kWh]"  (gInfluxdb, gFotoVoltaico)      {channel="solaredge:generic:se5000private:live#consumption"}
     String          SE5000_Live_CurrentLoadStatus "Stato attuale carico"     (gInfluxdb, gFotoVoltaico)           {channel="solaredge:generic:se5000private:live#load_status"}
     Number:Power    SE5000_Live_Import    "Prielevo da ACEA live [%.2f kWh]"  (gInfluxdb, gFotoVoltaico)     {channel="solaredge:generic:se5000private:live#import"}
        Number:Power    SE5000_Live_Export    "Immesso in ACEA live [%.2f kWh]"  (gInfluxdb, gFotoVoltaico)      {channel="solaredge:generic:se5000private:live#export"}
      String          SE5000_Live_GridStatus "Stato attuale rete"      (gInfluxdb, gFotoVoltaico)          {channel="solaredge:generic:se5000private:live#grid_status"}

    Number:Energy   SE5000_AggregateDayProduction    "Produzione FV odierna [%.2f kWh]"  (gInfluxdb, gFotoVoltaico)     {channel="solaredge:generic:se5000private:aggregate_day#production"}
        Number:Energy   SE5000_AggregateDayConsumption    "Consumo odierno [%.2f kWh]"  (gInfluxdb, gFotoVoltaico)     {channel="solaredge:generic:se5000private:aggregate_day#consumption"}
      Number:Energy   SE5000_AggregateDayPerAutoconsumo    "Autoconsumo odierno [%.2f kWh]"  (gInfluxdb, gFotoVoltaico)     {channel="solaredge:generic:se5000private:aggregate_day#selfConsumptionForConsumption"}
        Number:Dimensionless   SE5000_AggregateDayAutoconsumo    "Copertura giornaliera autoproduzione [%.2f %unit%]"  (gInfluxdb, gFotoVoltaico) {channel="solaredge:generic:se5000private:aggregate_day#selfConsumptionCoverage"}
       Number:Energy   SE5000_AggregateDayImport    "Prelievo odierno da rete [%.2f kWh]"  (gInfluxdb, gFotoVoltaico)     {channel="solaredge:generic:se5000private:aggregate_day#import"}
       Number:Energy   SE5000_AggregateDayExport    "Immissione in rete odierna [%.2f kWh]"  (gInfluxdb, gFotoVoltaico)     {channel="solaredge:generic:se5000private:aggregate_day#export"}

 Number:Energy   SE5000_AggregateWeekProduction  "Produzione FV settimanale [%.2f kWh]"  (gInfluxdb, gFotoVoltaico)     {channel="solaredge:generic:se5000private:aggregate_week#production"}
 Number:Energy   SE5000_AggregateWeekConsumption  "Consumo settimanale [%.2f kWh]"  (gInfluxdb, gFotoVoltaico)     {channel="solaredge:generic:se5000private:aggregate_week#consumption"}
     Number:Energy   SE5000_AggregateWeekPerAutoconsumo    "Autoconsumo settimanale [%.2f kWh]"  (gInfluxdb, gFotoVoltaico)     {channel="solaredge:generic:se5000private:aggregate_week#selfConsumptionForConsumption"}
    Number:Dimensionless   SE5000_AggregateWeekAutoconsumo    "Copertura settimanale autoproduzione [%.2f %unit%]"  (gInfluxdb, gFotoVoltaico) {channel="solaredge:generic:se5000private:aggregate_week#selfConsumptionCoverage"}
     Number:Energy   SE5000_AggregateWeekImport    "Prelievo settimanale da rete [%.2f kWh]"  (gInfluxdb, gFotoVoltaico)     {channel="solaredge:generic:se5000private:aggregate_week#import"}
    Number:Energy   SE5000_AggregateWeekExport    "Immissione in rete settimanale [%.2f kWh]"  (gInfluxdb, gFotoVoltaico)     {channel="solaredge:generic:se5000private:aggregate_week#export"}

Thx