• Have you tried out dark mode?! Scroll to the bottom of any page to find a sun or moon icon to turn dark mode on or off!

diy solar

diy solar

How often can I request modbus data on Deye inverter?

mortenmoulder

New Member
Joined
Jun 20, 2024
Messages
14
Location
Denmark
I am using klatremis/https://github.com/klatremis/esphome-for-deye for communicating with my SUN-12K-SG04LP3, installed on an ESP32 with PoE. It works great, however, I cannot seem to change the update_interval to anything below 20sec, otherwise my log is filled with:

Code:
[11:07:24][W][modbus_controller:183]: Duplicate modbus command found: type=0x3 address=130 count=1
[11:07:24][W][modbus_controller:183]: Duplicate modbus command found: type=0x3 address=141 count=3
[11:07:24][W][modbus_controller:183]: Duplicate modbus command found: type=0x3 address=145 count=2
[11:07:24][W][modbus_controller:183]: Duplicate modbus command found: type=0x3 address=148 count=12
[11:07:24][W][modbus_controller:183]: Duplicate modbus command found: type=0x3 address=166 count=12
[11:07:24][W][modbus_controller:183]: Duplicate modbus command found: type=0x3 address=653 count=1
[11:07:24][W][modbus_controller:183]: Duplicate modbus command found: type=0x3 address=655 count=1
[11:07:24][W][modbus_controller:183]: Duplicate modbus command found: type=0x3 address=672 count=2
[11:07:25][W][modbus_controller:183]: Duplicate modbus command found: type=0x3 address=676 count=4

and:

Code:
[11:09:19][W][component:237]: Component modbus_controller took a long time for an operation (127 ms).
[11:09:19][W][component:238]: Components should block for at most 30 ms

and I get no updates at all. Even when I set it to 10sec. At 20sec I get pretty consistent updates, but not all the time.
 
Depends on the Modbus server and in this case its telling you that the Deye hardware does not work below 20 sec. I have been using a data logger for a few years now and 20secs does not make much difference over 10 secs when you look at a days data and compare.
 
Depends on the Modbus server and in this case its telling you that the Deye hardware does not work below 20 sec. I have been using a data logger for a few years now and 20secs does not make much difference over 10 secs when you look at a days data and compare.

I found the issue. I had to add baud_rate: 0 to the logger part of the configuration. Now I get updates every second
 

diy solar

diy solar
Back
Top