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

Please use template to report bugs and problems. Post here your questions when not sure where else to post
Only for bugs in the Domoticz application! other problems go in different subforums!

Moderators: leecollings, remb0

Forum rules
Before posting here, make sure you are on the latest Beta or Stable version.
If you have problems related to the web gui, clear your browser cache + appcache first.

Use the following template when posting here:

Version: xxxx
Platform: xxxx
Plugin/Hardware: xxxx
Description:
.....

If you are having problems with scripts/blockly, always post the script (in a spoiler or code tag) or screenshots of your blockly

If you are replying, please do not quote images/code from the first post

Please mark your topic as Solved when the problem is solved.
Post Reply
Pecap
Posts: 6
Joined: Sunday 12 August 2018 13:02
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post 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!
User avatar
waltervl
Posts: 5733
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

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

Post by waltervl »

What python modbus plugin did you use?
What does the log file say?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Pecap
Posts: 6
Joined: Sunday 12 August 2018 13:02
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post 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?
User avatar
waltervl
Posts: 5733
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

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

Post 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
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Pecap
Posts: 6
Joined: Sunday 12 August 2018 13:02
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post 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!
User avatar
waltervl
Posts: 5733
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

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

Post 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).
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest