Page 1 of 1

DEYE Inverter SOC via Waveshare RS485 TO ETH (Modbus TCP) not creating device in Domoticz

Posted: Wednesday 07 May 2025 20:33
by Pecap
Hi everyone,

I'm trying to query the SOC (State of Charge) value from a DEYE inverter using a Waveshare RS485 TO ETH (B) module connected via Modbus TCP and read it into Domoticz.

🛠 Setup:

Domoticz Version: 2025.1

Build Hash: 89d5c900d

Python Version: 3.9.2

Hardware: Raspberry Pi

Module: Waveshare RS485 TO ETH (B)

Target: DEYE hybrid inverter via Modbus TCP

Register: 214 (UINT16 for SOC)

✅ What I tried:

Installed pymodbus (v3.8.6) on the Raspberry Pi

Configured Domoticz > Hardware > Modbus TCP with IP & port of RS485-ETH module

Used Domoticz JSON API (addmodbusdevice) and direct UI attempts to add a Modbus sensor (IDX 20)

Set datatype to UINT 16-bit, slave ID = 1, function = 3, register = 214

Confirmed network connection and RS485 module responding

Tried API calls with and without credentials

Temporarily disabled Domoticz login via -nowwwpwd and added 192.168.123.* to trusted networks

Restarted Domoticz service multiple times

Checked logs: no errors related to the Modbus connection

Domoticz Web interface works fine, and port 8080 is reachable

❌ Problem:

Even after these steps, no Modbus sensor appears under Devices. API returns {"status":"ERROR"} and no device is created in the interface.

🔍 Question:

Has anyone successfully queried SOC from a DEYE inverter in Domoticz this way? Any idea what could block device creation?

Thanks in advance!

Re: DEYE Inverter SOC via Waveshare RS485 TO ETH (Modbus TCP) not creating device in Domoticz

Posted: Wednesday 07 May 2025 20:58
by waltervl
What python modbus plugin did you use?
What does the log file say?

Re: DEYE Inverter SOC via Waveshare RS485 TO ETH (Modbus TCP) not creating device in Domoticz

Posted: Wednesday 07 May 2025 23:17
by Pecap
Thanks for your reply!

I installed the Python plugin Domoticz RS485 Modbus Read/Write from https://github.com/DomoticX/domoticz-modbus.

The plugin is detected correctly by Domoticz (Version 2025.1), and I configured it with the IP of the Waveshare RS485 TO ETH adapter.

I use pymodbus version 3.8.6, installed via sudo pip3 install -U pymodbus.

However, no device is created in Domoticz when the plugin runs, and the API returns:
{"status":"ERROR"}

The Domoticz log shows no errors directly related to Modbus or the plugin, only occasional timeouts from Z-Wave nodes.


Any advice on debugging this plugin or getting the SOC value from the Deye inverter to appear in Domoticz?

Re: DEYE Inverter SOC via Waveshare RS485 TO ETH (Modbus TCP) not creating device in Domoticz

Posted: Wednesday 07 May 2025 23:29
by waltervl
API calls are irrelevant, I dont know why that would do something. Where did you find these instructions?

Did you also install pymodbusTCP as indicated on the plugin repository readme.

Code: Select all

sudo pip3 install -U pymodbus pymodbusTCP
I do not use modbus but you probably can run a python script based on pymodbus to at least test if you get a response from the device.

There are other topics on modbus lugins so perhaps ask there. For example viewtopic.php?p=302826&hilit=Deye#p302826

Re: DEYE Inverter SOC via Waveshare RS485 TO ETH (Modbus TCP) not creating device in Domoticz

Posted: Thursday 08 May 2025 9:47
by Pecap
Hello,

I'm trying to read the State of Charge (SOC) from my Deye inverter using a Waveshare RS485 to ETH (B) converter in Domoticz.

Setup Details:
Domoticz Version: 2025.1
Build Hash: 89d5c900d
Compile Date: 2025-05-05 09:02:49
dzVents Version: 3.1.8
Python Version: 3.9.2

Steps Taken:

1. Installed the "Domoticz RS485 Modbus Read/Write Plugins" from DomoticX GitHub repository.

2. Installed pymodbus and pymodbusTCP using sudo pip3 install -U pymodbus pymodbusTCP.

3. Configured the plugin with Modbus TCP using the Waveshare converter.

4. Attempted to add a Modbus sensor for SOC with correct parameters.

Verification:
Using mpoll with identical parameters, the SOC data is successfully and correctly received from the Deye inverter.

Challenges:

Domoticz does not display or update the SOC values correctly.

No new device is automatically created in Domoticz, even though the plugin is active.

Unsure if the issue is within Domoticz or the plugin.


Request:

Has anyone successfully integrated a Deye inverter with Domoticz and read SOC via RS485-TCP? I would appreciate any tips, especially concerning proper Modbus configuration or similar experiences.

Thanks in advance!

Re: DEYE Inverter SOC via Waveshare RS485 TO ETH (Modbus TCP) not creating device in Domoticz

Posted: Thursday 08 May 2025 10:42
by waltervl
As indicated before, check the Modbus plugin forum topic I linked to before. There are references of a DEYE inverter....
If you post a message in that forum all users that were in that topic get a message (depening on their notification settings).