SolarEdge production throttling from Domoticz

Moderator: leecollings

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 »

Code: Select all

2025-06-12 20:30:08.847 Status: Solaredge direct: Entering work loop.
2025-06-12 20:30:08.847 Status: Solaredge direct: Started.
2025-06-12 20:30:11.871 Status: Solaredge direct: Initialized version 1.2.3, author 'Addie Janssen Modified by:jvdzande'
2025-06-12 20:30:11.917 Status: Solaredge direct: solaredge_modbus version: 0.7.0
2025-06-12 20:30:11.917 Status: Solaredge direct: pymodbus version: 2.4.0
2025-06-12 20:30:12.478 Status: Solaredge direct: Connection established with: 192.168.2.119:1502 Device Address: 1
2025-06-12 20:30:12.478 Status: Solaredge direct: Inverter type: sunspecDID.THREE_PHASE_INVERTER 
Ok, now I need to change the loglevel to debug but ...
Screenshot 2025-06-12 at 20.34.23.png
Screenshot 2025-06-12 at 20.34.23.png (187.81 KiB) Viewed 468 times
WHAT should I enter in the Sync P1 device IDX ?
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 »

An idx=0 will skip the syncing and simply use the default update interval.
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 »

wow, this gives me so much and fast info that I am unable to capture it all, this is all I have for now
removed because of incomplete data
Last edited by eddieb on Friday 13 June 2025 6:18, 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
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 »

You really should capture it in domoticz.log file so you know for sure you have the whole thing. Aren't you using that in this installation?
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 »

removed because of incomplete data
Last edited by eddieb on Friday 13 June 2025 6:18, 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
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 »

Thanks, but think we're missing data at the end as the json data isn't ended correctly and there is no battery part.
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 »

that " "l2_import_energy_active": 0," is the last line.
after that it repeats ...
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 »

Could be that dodmoticz has a max length for a log record.
Will check tomorrow to see if we can cut this in parts.
Thanks for testing.
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 »

Made the change to split the Inverter, Meters and Batteries data responses in separate log records in the latest version.
Hope this will work so we can capture all data.
Cheers
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 »

Code: Select all

2025-06-12 22:22:04.784  Solaredge direct: [D] inverter values : {
    "c_manufacturer": "SolarEdge",
    "c_model": "SE5K-RWS48BEN4",
    "c_version": "0004.0023.0027",
    "c_serialnumber": "A1B2C3D4",
    "c_deviceaddress": 1,
    "c_sunspec_did": 103,
    "current": 123,
    "l1_current": 41,
    "l2_current": 40,
    "l3_current": 41,
    "current_scale": -2,
    "l1_voltage": 3996,
    "l2_voltage": 4022,
    "l3_voltage": 4011,
    "l1n_voltage": 2301,
    "l2n_voltage": 2322,
    "l3n_voltage": 2321,
    "voltage_scale": -1,
    "power_ac": 21189,
    "power_ac_scale": -2,
    "frequency": 5002,
    "frequency_scale": -2,
    "power_apparent": 28660,
    "power_apparent_scale": -2,
    "power_reactive": -19298,
    "power_reactive_scale": -2,
    "power_factor": -7392,
    "power_factor_scale": -2,
    "energy_total": 4106772,
    "energy_total_scale": 0,
    "current_dc": 26242,
    "current_dc_scale": -5,
    "voltage_dc": 8197,
    "voltage_dc_scale": -1,
    "power_dc": 21511,
    "power_dc_scale": -2,
    "temperature": 4227,
    "temperature_scale": -2,
    "status": 4,
    "vendor_status": 0,
    "rrcr_state": 0,
    "active_power_limit": 100,
    "cosphi": 0
}

Code: Select all

2025-06-12 22:22:04.789  Solaredge direct: [D] meter values : {
    "Meter1": {
        "c_manufacturer": "SolarEdge",
        "c_model": "MTR-240-3PC1-D-A-MW",
        "c_option": "Export+Import",
        "c_version": "1.0.104",
        "c_serialnumber": "9999999a",
        "c_deviceaddress": 2,
        "c_sunspec_did": 203,
        "current": 26704,
        "l1_current": 5591,
        "l2_current": 9021,
        "l3_current": 12091,
        "current_scale": -4,
        "voltage_ln": 2302,
        "l1n_voltage": 2302,
        "l2n_voltage": 2316,
        "l3n_voltage": 2318,
        "voltage_ll": 0,
        "l12_voltage": 3997,
        "l23_voltage": 4015,
        "l31_voltage": 4001,
        "voltage_scale": -1,
        "frequency": 5002,
        "frequency_scale": -2,
        "power": -7715,
        "l1_power": 1245,
        "l2_power": -24557,
        "l3_power": 15597,
        "power_scale": -4,
        "power_apparent": 5051,
        "l1_power_apparent": 860,
        "l2_power_apparent": 1896,
        "l3_power_apparent": 2486,
        "power_apparent_scale": -1,
        "power_reactive": -5051,
        "l1_power_reactive": -796,
        "l2_power_reactive": -1788,
        "l3_power_reactive": -2466,
        "power_reactive_scale": -1,
        "power_factor": 160,
        "l1_power_factor": 2430,
        "l2_power_factor": -3030,
        "l3_power_factor": 1080,
        "power_factor_scale": -2,
        "export_energy_active": 1905067600,
        "l1_export_energy_active": 138652262,
        "l2_export_energy_active": 1579636400,
        "l3_export_energy_active": 299193225,
        "import_energy_active": 2467627600,
        "l1_import_energy_active": 1043314600,
        "l2_import_energy_active": 239623525,
        "l3_import_energy_active": 1297103800,
        "energy_active_scale": -2,
        "export_energy_apparent": 0,
        "l1_export_energy_apparent": 0,
        "l2_export_energy_apparent": 0,
        "l3_export_energy_apparent": 0,
        "import_energy_apparent": 0,
        "l1_import_energy_apparent": 0,
        "l2_import_energy_apparent": 0,
        "l3_import_energy_apparent": 0,
        "energy_apparent_scale": -32768,
        "import_energy_reactive_q1": 0,
        "l1_import_energy_reactive_q1": 0,
        "l2_import_energy_reactive_q1": 0,
        "l3_import_energy_reactive_q1": 0,
        "import_energy_reactive_q2": 0,
        "l1_import_energy_reactive_q2": 0,
        "l2_import_energy_reactive_q2": 0,
        "l3_import_energy_reactive_q2": 0,
        "export_energy_reactive_q3": 0,
        "l1_export_energy_reactive_q3": 0,
        "l2_export_energy_reactive_q3": 0,
        "l3_export_energy_reactive_q3": 0,
        "export_energy_reactive_q4": 0,
        "l1_export_energy_reactive_q4": 0,
        "l2_export_energy_reactive_q4": 0,
        "l3_export_energy_reactive_q4": 0,
        "energy_reactive_scale": -32768
    },
    "Meter2": {
        "c_manufacturer": "SolarEdge",
        "c_model": "MTR-240-1PC1-DW-MW",
        "c_option": "Production ext.",
        "c_version": "1.0.104",
        "c_serialnumber": "999999ab",
        "c_deviceaddress": 0,
        "c_sunspec_did": 203,
        "current": 3038,
        "l1_current": 0,
        "l2_current": 0,
        "l3_current": 3038,
        "current_scale": -4,
        "voltage_ln": 0,
        "l1n_voltage": 0,
        "l2n_voltage": 0,
        "l3n_voltage": 23201,
        "voltage_ll": 0,
        "l12_voltage": 59,
        "l23_voltage": 23181,
        "l31_voltage": 23136,
        "voltage_scale": -2,
        "frequency": 5000,
        "frequency_scale": -2,
        "power": 0,
        "l1_power": 0,
        "l2_power": 0,
        "l3_power": 0,
        "power_scale": 0,
        "power_apparent": 6630,
        "l1_power_apparent": 0,
        "l2_power_apparent": 0,
        "l3_power_apparent": 6630,
        "power_apparent_scale": -2,
        "power_reactive": -6630,
        "l1_power_reactive": 0,
        "l2_power_reactive": 0,
        "l3_power_reactive": -6630,
        "power_reactive_scale": -2,
        "power_factor": 1770,
        "l1_power_factor": 0,
        "l2_power_factor": 0,
        "l3_power_factor": 1770,
        "power_factor_scale": -2,
        "export_energy_active": 1030805000,
        "l1_export_energy_active": 0,
        "l2_export_energy_active": 0,
        "l3_export_energy_active": 1030805812,
        "import_energy_active": 9716000,
        "l1_import_energy_active": 0,
        "l2_import_energy_active": 0,
        "l3_import_energy_active": 9716459,
        "energy_active_scale": -3,
        "export_energy_apparent": 0,
        "l1_export_energy_apparent": 0,
        "l2_export_energy_apparent": 0,
        "l3_export_energy_apparent": 0,
        "import_energy_apparent": 0,
        "l1_import_energy_apparent": 0,
        "l2_import_energy_apparent": 0,
        "l3_import_energy_apparent": 0,
        "energy_apparent_scale": -32768,
        "import_energy_reactive_q1": 0,
        "l1_import_energy_reactive_q1": 0,
        "l2_import_energy_reactive_q1": 0,
        "l3_import_energy_reactive_q1": 0,
        "import_energy_reactive_q2": 0,
        "l1_import_energy_reactive_q2": 0,
        "l2_import_energy_reactive_q2": 0,
        "l3_import_energy_reactive_q2": 0,
        "export_energy_reactive_q3": 0,
        "l1_export_energy_reactive_q3": 0,
        "l2_export_energy_reactive_q3": 0,
        "l3_export_energy_reactive_q3": 0,
        "export_energy_reactive_q4": 0,
        "l1_export_energy_reactive_q4": 0,
        "l2_export_energy_reactive_q4": 0,
        "l3_export_energy_reactive_q4": 0,
        "energy_reactive_scale": -32768
    }
}

Code: Select all

2025-06-12 22:22:04.790  Solaredge direct: [D] battery values : {
    "Battery1": {
        "c_manufacturer": "SolarEdge",
        "c_model": "SolarEdge Home Battery 48V - 3",
        "c_version": "48V DCDC 2.3.3",
        "c_serialnumber": "B1C2D3E4",
        "c_deviceaddress": 112,
        "c_sunspec_did": 0,
        "rated_energy": 13800.0,
        "maximum_charge_continuous_power": 5000.0,
        "maximum_discharge_continuous_power": 5000.0,
        "maximum_charge_peak_power": 8000.0,
        "maximum_discharge_peak_power": 12800.0,
        "average_temperature": 27.600000381469727,
        "maximum_temperature": 0.0,
        "instantaneous_voltage": 820.6934814453125,
        "instantaneous_current": 0.41852644085884094,
        "instantaneous_power": -282.0,
        "lifetime_export_energy_counter": 68,
        "lifetime_import_energy_counter": 0,
        "maximum_energy": 13800.0,
        "available_energy": 13685.7607421875,
        "soh": 99.0,
        "soe": 93.33333587646484,
        "status": 4,
        "status_internal": 3,
        "event_log": 0,
        "event_log_internal": 0
    }
}
serial numbers edited ...
Last edited by eddieb on Friday 13 June 2025 6:21, 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
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 »

Looks better!
Now the million dollar question is:
What data should be converted into what type of domoticz device?
Thoughts?
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 »

not really, perhaps someone else with a battery
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 »

Had a more detailed look at what you posted and I was missing the info about the StorEdge part as defined in SolarEdge_Modbus on github, and then it dawned on me that those registry values are not available in the latest v0.8.0 and it required the current github version.
When I used that I get these extra field in the Inverter data:

Code: Select all

2025-06-13 13:42:52.449 "export_control_mode": 0,
2025-06-13 13:42:52.449 "export_control_limit_mode": 0,
2025-06-13 13:42:52.449 "export_control_site_limit": -340282346638528859811704183484516925440,
2025-06-13 13:42:52.449 "storage_control_mode": 0,
2025-06-13 13:42:52.449 "storage_ac_charge_policy": 1,
2025-06-13 13:42:52.449 "storage_ac_charge_limit": 0.0,
2025-06-13 13:42:52.449 "storage_backup_reserved_setting": 0.0,
2025-06-13 13:42:52.449 "storage_default_mode": 0,
2025-06-13 13:42:52.449 "rc_cmd_timeout": 3600,
2025-06-13 13:42:52.449 "rc_cmd_mode": 0,
2025-06-13 13:42:52.449 "rc_charge_limit": 3300.0,
2025-06-13 13:42:52.449 "rc_discharge_limit": 3300.0
These can be used to determine & set the current mode of the Battery (storage_control_mode) to:

Code: Select all

STOREDGE_CONTROL_MODE = {
    0: "Disabled",
    1: "Maximize Self Consumption",
    2: "Time of Use",
    3: "Backup Only",
    4: "Remote Control",
}
.. and you can play with these with a dynamic contract and low/negative prices:

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",
}
Here you can find a pretty comprehensive explanation of what that does.

So long story short: it is quit a leap we need to make to get that kind of functionality into the plugin, and for me it is near to impossible to get it in there and properly test as I don't have any battery connected.
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
jannl
Posts: 673
Joined: Thursday 02 October 2014 6:36
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: Geleen
Contact:

Re: SolarEdge production throttling from Domoticz

Post by jannl »

The pre-release (plugin 2.0.4) on Addies github also has the battery and inline meter added. Which basically works great.

The things is, there is no netto sun production in the modbus spec. As long as there is no battery and charger, everything works fine.

The charger I added my self, but for now only with the actual power used.

For computing the correct values I created a lua script which I think is almost finished.

I might be interested in the thotteling from within Domoticz, but for now I am also happy with the throtteling Solaredge one does. For testing I use a seperate docker instance of Domoticz with only the modbus thingies in it.

BTW: As far as I can see, v0.8.0 is de modbus python version and not the solaredge_modbus version
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 »

I hadn't checked for any other branches as it looked like there wasn't much activity anymore. Are you aware if there are any plans to continue the development so all efforts can be bundled?
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
jannl
Posts: 673
Joined: Thursday 02 October 2014 6:36
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: Geleen
Contact:

Re: SolarEdge production throttling from Domoticz

Post by jannl »

Nope. The releases are here, but looks like an update has been long ago.

https://github.com/addiejanssen/domotic ... n/releases
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 »

I see that the branch "Meters" is indeed a pretty major rewrite of the plugin that has a lot of this stuff already included.
Any idea why it was never finished/made production version? Lack of interest?
It will also be missing the stuff I've shown in the previous post as it is using solaredge_modbus 0.7.2.
Will have a closer look at that latest version to see if that contains all I am looking for, but might add the "Sync update with P1" option to it as that is fun for the energy dashboard. :)
Thanks for pointing this out!
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
jannl
Posts: 673
Joined: Thursday 02 October 2014 6:36
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: Geleen
Contact:

Re: SolarEdge production throttling from Domoticz

Post by jannl »

Not sure if it is wise to add different hardware to the same plugin. P1 hardware can be user otherwise in Domoticz for the energy dashboard.

You could try with a newer versiion of solaredge modbus. Just the reqyirements.txt could have incompatibilitys and might be downgraded.
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 »

To bad it seeems Addie stopped developing 2 years ago, Nice to see that @jvdz is putting effort in it
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 »

jannl wrote: Friday 13 June 2025 17:45 Not sure if it is wise to add different hardware to the same plugin. P1 hardware can be user otherwise in Domoticz for the energy dashboard.

You could try with a newer versiion of solaredge modbus. Just the reqyirements.txt could have incompatibilitys and might be downgraded.
Iam not putting in another device, just optionally sync the update of solaredge to happen at the same time as the existing p1 to allowed for a bit better numbers in de Dashboard.

Also as mentioned, the github files were changed after the latest version 0.8.0 published, which now contains those shown extra fields allowing to control the storende mode.
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest