10-04-2024, 06:06 PM
Is this the correct ESPHome configuration for RS-485 Modbus on KC-868 A6?
I'm trying to use this with WellPro WP3082ADAM:
This is sending correct command to the wp3082adam, but ESPHome it never receives a response:
The frustrating this is I can see the holding register request from the A6 and the response from the WP3082ADAM when monitoring the wire, everything seems to be working perfectly, but A6 can't "hear" the modbus response.
sent from A6:
{01}{03}{00}{00}{00}{08}{44}{0C}
response from wp3082adam:
{01}{03}{10}{00}{00}{00}{00}{00}{00}{00}{00}{03}{34}{00}{00}{00}{00}{00}{00}{D1}{8F}
I would appreciate any suggestions
Code:
uart:
id: mbus
tx_pin: GPIO12
rx_pin: GPIO13
baud_rate: 9600
modbus:
id: modbus1
uart_id: mbus
send_wait_time: 500ms
modbus_controller:
- id: wp3082adam1
address: 1
modbus_id: modbus1
update_interval: 5s
I'm trying to use this with WellPro WP3082ADAM:
Code:
text_sensor:
- name: "analoginputs"
platform: modbus_controller
modbus_controller_id: wp3082adam1
id: test
# internal: true
register_type: holding
address: 0x0000
register_count: 8
raw_encode: HEXBYTES
response_size: 10
This is sending correct command to the wp3082adam, but ESPHome it never receives a response:
Code:
Modbus command to device=1 register=0x00 no response received - removed from send queue
The frustrating this is I can see the holding register request from the A6 and the response from the WP3082ADAM when monitoring the wire, everything seems to be working perfectly, but A6 can't "hear" the modbus response.
sent from A6:
{01}{03}{00}{00}{00}{08}{44}{0C}
response from wp3082adam:
{01}{03}{10}{00}{00}{00}{00}{00}{00}{00}{00}{03}{34}{00}{00}{00}{00}{00}{00}{D1}{8F}
I would appreciate any suggestions