08-04-2023, 11:18 PM
Hello,
I'm facing some issues to connect KC868-HA board using RS485 Modbus in ESPHome. I'm using the KC868-AI board to communicate with KC868-HA board from RS485 bus.
I also connected the momentary switch at the KC868-HA. I'm using the 6 gangs wall panel (https://www.kincony.com/metal-frame-mome...panel.html)
In KC868-AI yaml file, I put the following code to initialize the RS485 communication and it works so far:
At the "binary_sensor" section, I put the following code:
The problem is that I don't know how to proper configure this "binary_sensor" section to read the KC868-HA modbus codes.
I saw the documentation at this forum (https://www.kincony.com/download/KC868-H...-board.pdf) but I can't configure this section.
Here is the KC868-HA configuration:
When I see the logs for the KC868-AI, I have the following:
Could someone help me?
I'm facing some issues to connect KC868-HA board using RS485 Modbus in ESPHome. I'm using the KC868-AI board to communicate with KC868-HA board from RS485 bus.
I also connected the momentary switch at the KC868-HA. I'm using the 6 gangs wall panel (https://www.kincony.com/metal-frame-mome...panel.html)
In KC868-AI yaml file, I put the following code to initialize the RS485 communication and it works so far:
Code:
uart:
id: mbus
tx_pin: GPIO14
rx_pin: GPIO16
baud_rate: 9600
# RX and TX pins defined according to KC868-AI ESP32 IO pin definition (https://www.kincony.com/forum/showthread.php?tid=2016)
modbus:
id: modbus1
uart_id: mbus
send_wait_time: 200ms
modbus_controller:
- id: switchbedroom
address: 1
modbus_id: modbus1
update_interval: 1s
At the "binary_sensor" section, I put the following code:
Code:
binary_sensor:
- platform: modbus_controller
modbus_controller_id: switchbedroom
id: pulsador1
name: "pulsador1"
register_type: read # or coil or discrete_input. I don't know
address: 1
The problem is that I don't know how to proper configure this "binary_sensor" section to read the KC868-HA modbus codes.
I saw the documentation at this forum (https://www.kincony.com/download/KC868-H...-board.pdf) but I can't configure this section.
Here is the KC868-HA configuration:
When I see the logs for the KC868-AI, I have the following:
Quote:...
[20:12:36][W][modbus_controller:113]: Duplicate modbus command found: type=0x4 address=1 count=1
[20:12:36][D][modbus_controller:032]: Modbus command to device=1 register=0x01 countdown=0 no response received - removed from send queue
[20:12:38][W][modbus_controller:113]: Duplicate modbus command found: type=0x4 address=1 count=1
[20:12:38][D][modbus_controller:032]: Modbus command to device=1 register=0x01 countdown=0 no response received - removed from send queue
[20:12:40][W][modbus_controller:113]: Duplicate modbus command found: type=0x4 address=1 count=1
[20:12:40][D][modbus_controller:032]: Modbus command to device=1 register=0x01 countdown=0 no response received - removed from send queue
[20:12:42][W][modbus_controller:113]: Duplicate modbus command found: type=0x4 address=1 count=1
[20:12:42][D][modbus_controller:032]: Modbus command to device=1 register=0x01 countdown=0 no response received - removed from send queue
...
Could someone help me?