New Python plugin: Domoticz SolarEdge_ModbusTCP

Moderator: leecollings

Doler
Posts: 205
Joined: Friday 31 July 2015 21:02
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Sint-Oedenrode, Netherlands
Contact:

Re: New Python plugin: Domoticz SolarEdge_ModbusTCP

Post by Doler »

Running for 1 day now, same errors as before (happened 3 times). Also getting multipleconnection errors.
SolarEdge Heartbeat.zip
(4.83 KiB) Downloaded 5 times
Mark: Domoticz latest Beta on Virtual machine (Proxmox) running Debian Trixie - Z-Stick 7 - RFXCom - P1 - SolarEdge - Dahua - Philips Hue - Docker - Zigbee2mqtt (latest, docker) via python plugin - Zwave-js-ui (latest, docker) - dzVents - Nodered
User avatar
imautohuttraeger
Posts: 502
Joined: Saturday 14 March 2020 13:40
Target OS: Raspberry Pi / ODroid
Domoticz version: lat.beta
Location: Germany
Contact:

Re: New Python plugin: Domoticz SolarEdge_ModbusTCP

Post by imautohuttraeger »

I also have these errors like @doler:

Code: Select all

2026-11-30 04:25:00.443  Error: UpdateMeter: Error converting sValue/sUsage! (IDX: 1119, sValue: '-2835686221987740498430868195704307712000', sUsage: '0', dType: 248, sType: 1)
2026-11-30 04:25:00.445  Error: UpdateMeter: Error converting sValue/sUsage! (IDX: 1120, sValue: '-2835686221987740498430868195704307712000', sUsage: '0', dType: 248, sType: 1)
2026-11-30 04:25:00.445  Error: UpdateMeter: Error converting sValue/sUsage! (IDX: 1121, sValue: '-2835686221987740498430868195704307712000', sUsage: '0', dType: 248, sType: 1)
2026-11-30 04:25:00.446  Error: UpdateMeter: Error converting sValue/sUsage! (IDX: 1122, sValue: '-2835686221987740498430868195704307712000', sUsage: '0', dType: 248, sType: 1)
2026-11-30 04:25:00.446  Error: UpdateMeter: Error converting sValue/sUsage! (IDX: 1125, sValue: '-283568622198774049843086819570430771200000', sUsage: '0', dType: 243, sType: 8)
2026-11-30 04:25:00.447  Error: UpdateMeter: Error converting sValue/sUsage! (IDX: 1126, sValue: '-340282346638528859811704183484516925440000', sUs
Device list comparison V2 and V3 is attached.

Generally, the plugin seems to slow down the system (switch command sometimes have a big delay, sometimes even 10 seconds)
Stop, look and listen.
AddieJanssen
Posts: 77
Joined: Sunday 27 September 2020 16:17
Target OS: -
Domoticz version:
Contact:

Re: New Python plugin: Domoticz SolarEdge_ModbusTCP

Post by AddieJanssen »

Many thanks to hjzwiers for allowing me to connect to his inverter.

As of yesterday, I have access and I see the same errors in my Domoticz test setup and now have options to investigate what is causing this.
I will need some time to get to the bottom of this.
AddieJanssen
Posts: 77
Joined: Sunday 27 September 2020 16:17
Target OS: -
Domoticz version:
Contact:

New DEV version (v3.0.0-dev.8) of the plugin released

Post by AddieJanssen »

I just pushed a new DEV version (v3.0.0-dev.8) out to GitHub: https://github.com/addiejanssen/domotic ... .0.0-dev.8

This is a first attempt to fix the Error converting sValue/sUsage errors.

Please set the Log Level to Debug and share the full log when you still run into these errors. The plugin now has additional logging that will help to identify what is going on.
Log Level.png
Log Level.png (8.01 KiB) Viewed 153 times
Be aware: the actual error may be caused anywhere in a timeslot of 5 minutes before Domoticz shows the error messages. So, share at least log info going back 5 minutes before the timestamp that is shown in the error message.

And to keep this forum post clean: send them directly to me via a personal message please.
Doler
Posts: 205
Joined: Friday 31 July 2015 21:02
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Sint-Oedenrode, Netherlands
Contact:

Re: New Python plugin: Domoticz SolarEdge_ModbusTCP

Post by Doler »

Catched the errors once, included in th zipped logfile (DM's don't accept zip files?)
log.zip
(265.95 KiB) Downloaded 3 times
Mark: Domoticz latest Beta on Virtual machine (Proxmox) running Debian Trixie - Z-Stick 7 - RFXCom - P1 - SolarEdge - Dahua - Philips Hue - Docker - Zigbee2mqtt (latest, docker) via python plugin - Zwave-js-ui (latest, docker) - dzVents - Nodered
AddieJanssen
Posts: 77
Joined: Sunday 27 September 2020 16:17
Target OS: -
Domoticz version:
Contact:

Re: New Python plugin: Domoticz SolarEdge_ModbusTCP

Post by AddieJanssen »

Thanks, that helps!

It's now clear what the inverter returns and how that result in the Error: UpdateMeter: Error converting sValue/sUsage! errors. I have no clue why the inverter returns those values, but I can now catch them and filter them out. Next version should have a fix for this.

The Modbus Error: [Connection] Failed to connect[ModbusTcpClient 192.168.2.4:1502] errors at the beginning of your log are also interesting.
Are you running multiple plugins that connect to the same inverter at the same moment? If so: how many? Are you using a modbus proxy or are they all directly trying to communicate with the inverter?

There are quite a lot of got a NOT_IMPLEMENTED entries in the log as well. It's a good thing that the plugin catches these, but it's a bit of a surprise that the inverter actually responds with these. I am adding these to the unexpected quirks of a SolarEdge inverter category, meaning: I will ignore them for now ;)
Doler
Posts: 205
Joined: Friday 31 July 2015 21:02
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Sint-Oedenrode, Netherlands
Contact:

Re: New Python plugin: Domoticz SolarEdge_ModbusTCP

Post by Doler »

AddieJanssen wrote: Saturday 05 December 2026 17:38 Thanks, that helps!

It's now clear what the inverter returns and how that result in the Error: UpdateMeter: Error converting sValue/sUsage! errors. I have no clue why the inverter returns those values, but I can now catch them and filter them out. Next version should have a fix for this.

The Modbus Error: [Connection] Failed to connect[ModbusTcpClient 192.168.2.4:1502] errors at the beginning of your log are also interesting.
Are you running multiple plugins that connect to the same inverter at the same moment? If so: how many? Are you using a modbus proxy or are they all directly trying to communicate with the inverter?

There are quite a lot of got a NOT_IMPLEMENTED entries in the log as well. It's a good thing that the plugin catches these, but it's a bit of a surprise that the inverter actually responds with these. I am adding these to the unexpected quirks of a SolarEdge inverter category, meaning: I will ignore them for now ;)
Yes, I'm running two plugins. should I disable one of them and check if the error still occurs?

Mark
Mark: Domoticz latest Beta on Virtual machine (Proxmox) running Debian Trixie - Z-Stick 7 - RFXCom - P1 - SolarEdge - Dahua - Philips Hue - Docker - Zigbee2mqtt (latest, docker) via python plugin - Zwave-js-ui (latest, docker) - dzVents - Nodered
AddieJanssen
Posts: 77
Joined: Sunday 27 September 2020 16:17
Target OS: -
Domoticz version:
Contact:

Re: New Python plugin: Domoticz SolarEdge_ModbusTCP

Post by AddieJanssen »

My best guess:
SolarEdge inverters support up to two simultaneous connections. But when a connection fails, it can take up to two minutes for the inverter to remove an "old"/stale connection. During that time, no new connections will be established.
Meaning: if there's a communication issue with one of the plugins, it may show these errors for two minutes and then they should be gone.

Just leave it as is for now, but keep an eye on the logs and if you see a lot of these errors, then consider using a modbus proxy (I use https://github.com/tiagocoutinho/modbus-proxy) to verify if that fixes the issue.
Doler
Posts: 205
Joined: Friday 31 July 2015 21:02
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Sint-Oedenrode, Netherlands
Contact:

Re: New Python plugin: Domoticz SolarEdge_ModbusTCP

Post by Doler »

Just to see what happens I disabled one of the connections and lowered the update interval from 5 to 10 seconds. And still find errors: multiple connection errors at 4:05 and 4:06 and then converting errors at 4:10 in the morning. So simultaneous connections seem not to have much influence.
What strikes me is that the errors occur shortly after 4:00 in the morning every time I reported them. And it's on a test system where not much is going on.
Mark: Domoticz latest Beta on Virtual machine (Proxmox) running Debian Trixie - Z-Stick 7 - RFXCom - P1 - SolarEdge - Dahua - Philips Hue - Docker - Zigbee2mqtt (latest, docker) via python plugin - Zwave-js-ui (latest, docker) - dzVents - Nodered
eddieb
Posts: 432
Joined: Wednesday 04 July 2018 7:48
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: New Python plugin: Domoticz SolarEdge_ModbusTCP

Post by eddieb »

I have 2 domoticz instances running and noticed long ago that the solaredge modbus listener does not like to be polled from more than 1 ...

I installed modbusproxy on my docker based domoticz and did not have problems since then ...

Code: Select all

compose.yaml ...
#
# logfile in /var/lib/docker/containers/... grows very big
#
# /opt/stacks/modbusproxy/modbus-proxy.yml contains config
#
services:
  modbusproxy:
    container_name: modbusproxy
    build: https://github.com/tiagocoutinho/modbus-proxy.git
    restart: unless-stopped
    dns_search: .
    labels:
      - com.centurylinklabs.watchtower.enable=false
    ports:
      - 1502:1502
    volumes:
      - /opt/stacks/modbusproxy/:/config/
networks: {}
RPI4 Beta / Tasmota / ZigBee2MQTT / P1meter / Haier AC MQTTmapper / SolarEdge SE3500H modbus_tcp / IndeVolt SF3000 / Opentherm gateway / Plugwise Anna/Smile / ObserverIP weatherstation thru WuDirect
Feeding ADSB https://adsb.im/home
Post Reply