SolarEdge production throttling from Domoticz

Moderator: leecollings

User avatar
jvdz
Posts: 2328
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: SolarEdge production throttling from Domoticz

Post by jvdz »

Let's take this offline and use Email for the exchange of information, as else there is no way I can debug this.
I need the capture of the startup of the Plugin on DEBUG level so I can see the received data and what the plugin is trying to do with that data.
Agree and could you perform this for me and send it to me as attachement?
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
User avatar
jvdz
Posts: 2328
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: SolarEdge production throttling from Domoticz

Post by jvdz »

Are you sure you did a git pull for the Meters2 branch?
2025-06-16 19:25:59.571 Error: Solaredge direct: Call to function 'onHeartbeat' failed, exception details:
2025-06-16 19:25:59.573 Error: Solaredge direct: Traceback (most recent call last):
2025-06-16 19:25:59.573 Error: Solaredge direct: File "/home/pi/domoticz/plugins/domoticz-solaredge-modbustcp-plugin/plugin.py", line 697, in onHeartbeat
2025-06-16 19:25:59.574 Error: Solaredge direct: _plugin.onHeartbeat()
2025-06-16 19:25:59.574 Error: Solaredge direct: File "/home/pi/domoticz/plugins/domoticz-solaredge-modbustcp-plugin/plugin.py", line 253, in onHeartbeat
2025-06-16 19:25:59.574 Error: Solaredge direct: self.processValues(device_details, values)
2025-06-16 19:25:59.575 Error: Solaredge direct: File "/home/pi/domoticz/plugins/domoticz-solaredge-modbustcp-plugin/plugin.py", line 326, in processValues
2025-06-16 19:25:59.575 Error: Solaredge direct: if (unit[Column.ID + offset] == inverters.InverterUnit.ACTIVE_POWER_LIMIT ):

2025-06-16 19:25:59.576 Error: Solaredge direct: IndexError: list index out of range
Line 326 in the latest push: DomoLog(LogLevels.DEBUG, "-> has append math")
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
eddieb
Posts: 335
Joined: Wednesday 04 July 2018 7:48
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: SolarEdge production throttling from Domoticz

Post by eddieb »

just sent an email
Last edited by eddieb on Tuesday 17 June 2025 12:34, edited 1 time in total.
RPI4 Beta / Tasmota / ZigBee2MQTT / P1meter / Haier AC with Node-Red and MQTT / SolarEdge SE3500H modbus_tcp / Opentherm gateway / Plugwise Anna/Smile / ObserverIP weatherstation thru WuDirect
Feeding ADSB https://adsb.im/home
imautohuttraeger
Posts: 139
Joined: Saturday 14 March 2020 13:40
Target OS: Raspberry Pi / ODroid
Domoticz version: 2025.1
Location: Germany
Contact:

Re: SolarEdge production throttling from Domoticz

Post by imautohuttraeger »

jvdz wrote: Monday 16 June 2025 19:06
Does anybody see any reason why we should leave the Average/Max calculations in there as I would think that domoticz should simply receive the inverter raw/real data?
Absolutely agree. I don't see any need (at least for me).

BTW: I'm am sorry that I can't help currently due to traveling. But I am really happy to see that you are working on it and am really excited. Thank you!
Last edited by imautohuttraeger on Monday 16 June 2025 22:55, edited 1 time in total.
eddieb
Posts: 335
Joined: Wednesday 04 July 2018 7:48
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: SolarEdge production throttling from Domoticz

Post by eddieb »

Latest "Meter2" version works nice.
tnx Jos
RPI4 Beta / Tasmota / ZigBee2MQTT / P1meter / Haier AC with Node-Red and MQTT / SolarEdge SE3500H modbus_tcp / Opentherm gateway / Plugwise Anna/Smile / ObserverIP weatherstation thru WuDirect
Feeding ADSB https://adsb.im/home
User avatar
jvdz
Posts: 2328
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: SolarEdge production throttling from Domoticz

Post by jvdz »

Great to hear that all seems to be working.
Now my final/next idea was to use the latest version of solaredge_modbus available on github, which includes a number of extra fields in the Inverter information block: (These are the values I get without Meters/Batteries)

Code: Select all

# ----------- Extra fields with latest commit solaredge_modbus ------------------------
#     "commit_power_control_settings": 0,
#     "restore_power_control_default_settings": 0,
#     "reactive_power_config": 0,
#     "reactive_power_response_time": 200,
#     "advanced_power_control_enable": 1,
#     "export_control_mode": 0,
#     "export_control_limit_mode": 0,
#     "export_control_site_limit": -340282346638528859811704183484516925440,
#     "storage_control_mode": 0,
#     "storage_ac_charge_policy": 1,
#     "storage_ac_charge_limit": 0.0,
#     "storage_backup_reserved_setting": 0.0,
#     "storage_default_mode": 0,
#     "rc_cmd_timeout": 3600,
#     "rc_cmd_mode": 0,
#     "rc_charge_limit": 3300.0,
#     "rc_discharge_limit": 3300.0
The following fields could be of interest, as explained here:
shows/sets the mode the battery operates in as explained here:
storage_control_mode

Code: Select all

STOREDGE_CONTROL_MODE = {
    0: "Disabled",
    1: "Maximize Self Consumption",
    2: "Time of Use",
    3: "Backup Only",
    4: "Remote Control",
}
rc_cmd_mode(Assume this is the field for this)

Code: Select all

STOREDGE_CHARGE_DISCHARGE_MODE = {
    0: "Off",
    1: "Charge from excess PV power only",
    2: "Charge from PV first",
    3: "Charge from PV and AC",
    4: "Maximize export",
    5: "Discharge to match load",
    7: "Maximize self consumption",
}
This one isn't described in the linked page, so not sure what this would give extra
storage_ac_charge_policy

Code: Select all

STOREDGE_AC_CHARGE_POLICY = {
    0: "Disabled",
    1: "Always Allowed",
    2: "Fixed Energy Limit",
    3: "Percent of Production",
}
Is anybody aware of these settings via the SA App or WebSite?
Would it be an idea to add these as a Selector Switch so they can be dynamically be monitored and set from Domoticz?
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
imautohuttraeger
Posts: 139
Joined: Saturday 14 March 2020 13:40
Target OS: Raspberry Pi / ODroid
Domoticz version: 2025.1
Location: Germany
Contact:

Re: SolarEdge production throttling from Domoticz

Post by imautohuttraeger »

See Screenshot of the Option for Charging attached. And these are the explanations (haven't worked with this for the time being):

Battery Modes Information

Maximize Self Consumption

Go green and use the maximum solar available to power your home, charge your battery and minimize grid import.

Time of Use

We use a smart algorithm to optimize your energy sources based on your consumption habits, current and predicted energy output, and weather forecasts, to reduce your energy bills if you have different rates on different times. During manually configured peak hours or hourly dynamic prices your home is powered by solar as a first choice, by the battery as the second choice and by paid energy from the grid as the last resort.

In addition, based on your utility and installation settings, your battery can be charged from the grid, or energy sold to the grid when export rates are high.

Learn more

Manual Control

This mode allows you to set start and end times for charging and discharging your battery. You can set these schedules be recurring. All other time, the system operates to maximize self-consumption.

When a charging schedule is in place, the battery would charge from solar if available, and from the grid if allowed. Charging stops when the battery is full or when you reach the end time. During that time, the battery would not discharge itself.

When a discharging schedule is in place, the battery would discharge at full capacity, to provide for the home consumption and export energy if allowed. During that time, the battery would not be charged from the grid, it could only be charged from solar if it is available and it is not consumed by the house.

You can set multiplue charging and discharging schedules, as long as they do not overlap.

If you have high export rates at a certain hour, this mode could be utilized for monetization. You should set a charging schedule that ends when the high export rates begins, and set a discharging schedule for that time.

In addition, if you want to charge your EV during low-rate hours and make sure it does not use the battery, you should set a charging schedule for that time and the battery would not discharge itself.

Backup Only

Preserve energy sources and provide you with longer backup coverage time, while automatically reducing consumption to preserve battery energy. With this profile, the system will turn off any non-essential SolarEdge controlled device to preserve battery as outage starts.
Attachments
Screenshot_20250617-100319.png
Screenshot_20250617-100319.png (192.33 KiB) Viewed 358 times
1kke
Posts: 7
Joined: Sunday 02 April 2017 10:11
Target OS: Linux
Domoticz version: Beta
Location: NL
Contact:

Re: SolarEdge production throttling from Domoticz

Post by 1kke »

eddieb wrote: Monday 16 June 2025 22:50 Latest "Meter2" version works nice.
tnx Jos
+1
imautohuttraeger
Posts: 139
Joined: Saturday 14 March 2020 13:40
Target OS: Raspberry Pi / ODroid
Domoticz version: 2025.1
Location: Germany
Contact:

Re: SolarEdge production throttling from Domoticz

Post by imautohuttraeger »

Only "Maximum self consumption" and "Backup only" makes sense for a pure selector switch. The othe options deman separate adjustments (see screenshots)
Attachments
Screenshot_20250617-101835.png
Screenshot_20250617-101835.png (124.16 KiB) Viewed 352 times
Screenshot_20250617-101903.png
Screenshot_20250617-101903.png (126.52 KiB) Viewed 352 times
User avatar
jvdz
Posts: 2328
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: SolarEdge production throttling from Domoticz

Post by jvdz »

@imautohuttraeger, did you also read the information of the HA implementation and try to link that with everything you posted here?
It is somewhat difficult for me to interpret the whole setup from screenshots. It sounds to me that the APP will perform the logic for certain selections like you could do as well in Domoticz when you select "Remote Control" as First Mode.
I can make an update available that has the 2 Selector switches with the defined selection options as posted earlier (First 2) so you can have a look.
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
eddieb
Posts: 335
Joined: Wednesday 04 July 2018 7:48
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: SolarEdge production throttling from Domoticz

Post by eddieb »

In the Solaredge system I am testing is besides an Inverter, 2 meters and 1 battery also a Solaredge device called "Home Load Controller"
that is not found by the plug (yet) ...
would be nice if that one is detected ...
RPI4 Beta / Tasmota / ZigBee2MQTT / P1meter / Haier AC with Node-Red and MQTT / SolarEdge SE3500H modbus_tcp / Opentherm gateway / Plugwise Anna/Smile / ObserverIP weatherstation thru WuDirect
Feeding ADSB https://adsb.im/home
User avatar
jvdz
Posts: 2328
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: SolarEdge production throttling from Domoticz

Post by jvdz »

eddieb wrote: Tuesday 17 June 2025 19:53 In the Solaredge system I am testing is besides an Inverter, 2 meters and 1 battery also a Solaredge device called "Home Load Controller"
that is not found by the plug (yet) ...
would be nice if that one is detected ...
No idea what that is or whether any of the information is available via MODBUS.... BUT let's first finish this part of the development where it should be possible to define how to use the Batteries. ;-)
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
imautohuttraeger
Posts: 139
Joined: Saturday 14 March 2020 13:40
Target OS: Raspberry Pi / ODroid
Domoticz version: 2025.1
Location: Germany
Contact:

Re: SolarEdge production throttling from Domoticz

Post by imautohuttraeger »

jvdz wrote: Tuesday 17 June 2025 12:07 @imautohuttraeger, did you also read the information of the HA implementation and try to link that with everything you posted here?
Yes, I had a look on the Batterie section of the Github page you mentioned earlier of the HASS implementation

https://github.com/binsentsu/home-assis ... dge-modbus

Is this what you mean?

Since I don't know much about controlling the battery, because I haven't done anything with it yet, I can't really contribute much.

Most interesting for me would be to have the charge / discharge utility so it can be integrated into Domoticz Energy Dashboard.
User avatar
jvdz
Posts: 2328
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: SolarEdge production throttling from Domoticz

Post by jvdz »

imautohuttraeger wrote: Tuesday 17 June 2025 21:31 Yes, I had a look on the Batterie section of the Github page you mentioned earlier of the HASS implementation
https://github.com/binsentsu/home-assis ... dge-modbus
Is this what you mean?
That is indeed the site I linked in my post and even the paragraph on this topic. ;-)
imautohuttraeger wrote: Tuesday 17 June 2025 21:31 Since I don't know much about controlling the battery, because I haven't done anything with it yet, I can't really contribute much.
Since you have one you can test/play ...i can't.
imautohuttraeger wrote: Tuesday 17 June 2025 21:31 Most interesting for me would be to have the charge / discharge utility so it can be integrated into Domoticz Energy Dashboard.
Don't know what that means. Doesn't the current Meters branch give you the proper device to integrate into the Energy Dashboard? I would expect that there is a Meters Device showing you this info?
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
eddieb
Posts: 335
Joined: Wednesday 04 July 2018 7:48
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: SolarEdge production throttling from Domoticz

Post by eddieb »

morning, I took the jump and installed latest "Meters2" on my old production domoticz ...
- unable to find the module versions ...
- it detected a "meter" while I am pretty sure there is NO meter ...

Code: Select all

2025-06-18 07:34:25.968  Status: SolarEdge: Started.
2025-06-18 07:34:25.970  Status: SolarEdge: Entering work loop.
2025-06-18 07:34:26.426  Status: SolarEdge: Initialized version 2.0.4.2, author 'Addie Janssen   (updated: JvanderZande)'
2025-06-18 07:34:26.443  SolarEdge: on older python so no importlib
2025-06-18 07:34:26.444  Status: SolarEdge: solaredge_modbus version: unknown
2025-06-18 07:34:26.444  Status: SolarEdge: pymodbus         version: unknown
2025-06-18 07:34:26.452  SolarEdge: Connection established with: 192.168.26.239:1502 Device Address: 1
2025-06-18 07:34:26.553  Status: SolarEdge: Inverter type: Single Phase Inverter
2025-06-18 07:34:26.560  SolarEdge: Scanning for meters
2025-06-18 07:34:26.633  SolarEdge: Found at least one meter
2025-06-18 07:34:26.725  SolarEdge: Inverter returned meter information
2025-06-18 07:34:26.726  SolarEdge: Unknown meter type: 2174
2025-06-18 07:34:26.727  SolarEdge: Scanning for batteries
2025-06-18 07:34:26.761  SolarEdge: No batteries found
It also created devices for a 3-phase meter ...

on my bookworm docker it also detected the meter

Code: Select all

2025-06-18 07:49:09.098  Status: Solaredge: Started.
2025-06-18 07:49:09.098  Status: Solaredge: Entering work loop.
2025-06-18 07:49:09.303  Status: Solaredge: Initialized version 2.0.4.2, author 'Addie Janssen   (updated: JvanderZande)'
2025-06-18 07:49:09.316  Status: Solaredge: solaredge_modbus version: 0.8.0
2025-06-18 07:49:09.316  Status: Solaredge: pymodbus         version: 3.6.9
2025-06-18 07:49:09.319  Solaredge: Connection established with: 192.168.26.239:1502 Device Address: 1
2025-06-18 07:49:09.476  Status: Solaredge: Inverter type: Single Phase Inverter
2025-06-18 07:49:09.476  Solaredge: Scanning for meters
2025-06-18 07:49:09.544  Solaredge: Found at least one meter
2025-06-18 07:49:09.645  Solaredge: Inverter returned meter information
2025-06-18 07:49:09.645  Solaredge: Unknown meter type: 2174
2025-06-18 07:49:09.645  Solaredge: Adding device "Meter3 - Current"
2025-06-18 07:49:09.646  Solaredge: Adding device "Meter3 - L1 Current"
2025-06-18 07:49:09.646  Solaredge: Adding device "Meter3 - L2 Current"
2025-06-18 07:49:09.647  Solaredge: Adding device "Meter3 - L3 Current"
2025-06-18 07:49:09.647  Solaredge: Adding device "Meter3 - LN Voltage"
2025-06-18 07:49:09.648  Solaredge: Adding device "Meter3 - L1-N Voltage"
2025-06-18 07:49:09.648  Solaredge: Adding device "Meter3 - L2-N Voltage"
2025-06-18 07:49:09.648  Solaredge: Adding device "Meter3 - L3-N Voltage"
2025-06-18 07:49:09.649  Solaredge: Adding device "Meter3 - LL Voltage"
2025-06-18 07:49:09.649  Solaredge: Adding device "Meter3 - L1-2 Voltage"
2025-06-18 07:49:09.650  Solaredge: Adding device "Meter3 - L2-3 Voltage"
2025-06-18 07:49:09.650  Solaredge: Adding device "Meter3 - L3-1 Voltage"
2025-06-18 07:49:09.651  Solaredge: Adding device "Meter3 - Frequency"
2025-06-18 07:49:09.651  Solaredge: Adding device "Meter3 - Power"
2025-06-18 07:49:09.652  Solaredge: Adding device "Meter3 - L1 Power"
2025-06-18 07:49:09.652  Solaredge: Adding device "Meter3 - L2 Power"
2025-06-18 07:49:09.652  Solaredge: Adding device "Meter3 - L3 Power"
2025-06-18 07:49:09.653  Solaredge: Adding device "Meter3 - Power (Apparent)"
2025-06-18 07:49:09.653  Solaredge: Adding device "Meter3 - L1 Power (Apparent)"
2025-06-18 07:49:09.654  Solaredge: Adding device "Meter3 - L2 Power (Apparent)"
2025-06-18 07:49:09.654  Solaredge: Adding device "Meter3 - L3 Power (Apparent)"
2025-06-18 07:49:09.655  Solaredge: Adding device "Meter3 - Power (Reactive)"
2025-06-18 07:49:09.655  Solaredge: Adding device "Meter3 - L1 Power (Reactive)"
2025-06-18 07:49:09.655  Solaredge: Adding device "Meter3 - L2 Power (Reactive)"
2025-06-18 07:49:09.656  Solaredge: Adding device "Meter3 - L3 Power (Reactive)"
2025-06-18 07:49:09.656  Solaredge: Adding device "Meter3 - Power Factor"
2025-06-18 07:49:09.657  Solaredge: Adding device "Meter3 - L1 Power Factor"
2025-06-18 07:49:09.657  Solaredge: Adding device "Meter3 - L2 Power Factor"
2025-06-18 07:49:09.658  Solaredge: Adding device "Meter3 - L3 Power Factor"
2025-06-18 07:49:09.658  Solaredge: Adding device "Meter3 - Total Exported Energy (Active)"
2025-06-18 07:49:09.658  Solaredge: Adding device "Meter3 - L1 Exported Energy (Active)"
2025-06-18 07:49:09.659  Solaredge: Adding device "Meter3 - L2 Exported Energy (Active)"
2025-06-18 07:49:09.659  Solaredge: Adding device "Meter3 - L3 Exported Energy (Active)"
2025-06-18 07:49:09.660  Solaredge: Adding device "Meter3 - Total Imported Energy (Active)"
2025-06-18 07:49:09.660  Solaredge: Adding device "Meter3 - L1 Imported Energy (Active)"
2025-06-18 07:49:09.661  Solaredge: Adding device "Meter3 - L2 Imported Energy (Active)"
2025-06-18 07:49:09.661  Solaredge: Adding device "Meter3 - L3 Imported Energy (Active)"
2025-06-18 07:49:09.661  Solaredge: Scanning for batteries
2025-06-18 07:49:09.704  Solaredge: No batteries found
RPI4 Beta / Tasmota / ZigBee2MQTT / P1meter / Haier AC with Node-Red and MQTT / SolarEdge SE3500H modbus_tcp / Opentherm gateway / Plugwise Anna/Smile / ObserverIP weatherstation thru WuDirect
Feeding ADSB https://adsb.im/home
User avatar
jvdz
Posts: 2328
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: SolarEdge production throttling from Domoticz

Post by jvdz »

@eddieb, could you please set the log level on debugging on the docker version, capture to log generated, and email it as an attachment?
That will enable me to dig into the code why is is doing this.

Thanks jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
eddieb
Posts: 335
Joined: Wednesday 04 July 2018 7:48
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: SolarEdge production throttling from Domoticz

Post by eddieb »

@jvdz in your mail
RPI4 Beta / Tasmota / ZigBee2MQTT / P1meter / Haier AC with Node-Red and MQTT / SolarEdge SE3500H modbus_tcp / Opentherm gateway / Plugwise Anna/Smile / ObserverIP weatherstation thru WuDirect
Feeding ADSB https://adsb.im/home
imautohuttraeger
Posts: 139
Joined: Saturday 14 March 2020 13:40
Target OS: Raspberry Pi / ODroid
Domoticz version: 2025.1
Location: Germany
Contact:

Re: SolarEdge production throttling from Domoticz

Post by imautohuttraeger »

jvdz wrote: Tuesday 17 June 2025 22:07
Since you have one you can test/play ...i can't.
You are absolutely correct, I can test it and it would be a pleasure to to so.

My sentence

"I can't really contribute much"

relates to your question
did you also read the information of the HA implementation and try to link that with everything you posted here
So I meant yes, I have read it and have taken it into consideration. But I am just a layman and simple user and don't really understand such technical explanations.

Don't know what that means. Doesn't the current Meters branch give you the proper device to integrate into the Energy Dashboard? I would expect that there is a Meters Device showing you this info?
Oh - this is a misunderstanding. I am talking about the old implementation - I could not install the latest Meters branch. As I formerly wrote, I am currently traveling on the job, so I can't access my RasPi from abroad and free time is very limited. Maybe I can try via VPN this Weekend from the Hotel, but last time I tried it failed (there seems to be a VPN maladjustment in my home router that I can't fix remotely).

Big SORRY for partly wasting your time and that I don't express myself clearly enough while writing on-the-fly. I am so grateful that you are committed to get progress on this.
User avatar
jvdz
Posts: 2328
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: SolarEdge production throttling from Domoticz

Post by jvdz »

No worries... Always appreciate any contribution and express when things aren't clear to me. ;-)
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
imautohuttraeger
Posts: 139
Joined: Saturday 14 March 2020 13:40
Target OS: Raspberry Pi / ODroid
Domoticz version: 2025.1
Location: Germany
Contact:

Re: SolarEdge production throttling from Domoticz

Post by imautohuttraeger »

jvdz wrote: Wednesday 18 June 2025 10:44 No worries... Always appreciate any contribution and express when things aren't clear to me. ;-)
👍👍👍
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest