Serial command ?? - Printable Version +- Smart Home Automation Forum (https://www.kincony.com/forum) +-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=20) +--- Forum: KC868-A4 (https://www.kincony.com/forum/forumdisplay.php?fid=21) +--- Thread: Serial command ?? (/showthread.php?tid=2515) |
Serial command ?? - vincen - 01-15-2023 Hi First time trying to use serial control with HA (have done it for years with antic automation system like AMX, Crestron ones) but I struggle to get it working with HA and ESPHome. I'm using the Kincony K868-A4 box https://www.kincony.com/arduino-esp32-4-channel-relay-module.html to get a serial port. I have tried wiring serial port between kincony and device controlled straight or crossed but not better ! (product was controlled previously without problems by a Crestron system). Here is code used in ESPHome: Code: substitutions: Any ideas what's wrong here ? Thanks Vincèn RE: Serial command ?? - admin - 01-16-2023 i think firstly, you can send RS232 command by PC to test your command whether is correct. if your command is correct, then try to config by ESPHome to send command. RE: Serial command ?? - vincen - 01-16-2023 (01-16-2023, 01:15 PM)admin Wrote: i think firstly, you can send RS232 command by PC to test your command whether is correct. I know the syntax of commands and I'm sure they work ! My only problem is to get them working with the Kincony through it's RS-232 port ! Can you confirm my ESPHome code is correct ? RE: Serial command ?? - admin - 01-17-2023 1. suggest you use KC868-A4's digital input make for 4 buttons for test. binary_sensor: - platform: gpio name: "input1" pin: number: 36 inverted: true - platform: gpio name: "input2" pin: number: 39 inverted: true - platform: gpio name: "input3" pin: number: 27 inverted: true - platform: gpio name: "input4" pin: number: 14 inverted: true 2. you can add these for a test: on_...: - uart.write: 'CD' 3. if can't work, you can try to exchange your RXD,TXD pin, such as : uart: tx_pin: GPIO16 rx_pin: GPIO17 baud_rate: 9600 |