![]() |
|
Connect RS485 KC868-HAv2 to Server Mini - Printable Version +- Smart Home Automation Forum (https://www.kincony.com/forum) +-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=1) +--- Forum: KinCony Server-Mini / Server-16 Raspberry Pi4 relay module (https://www.kincony.com/forum/forumdisplay.php?fid=53) +--- Thread: Connect RS485 KC868-HAv2 to Server Mini (/showthread.php?tid=8448) |
Connect RS485 KC868-HAv2 to Server Mini - Mijoo - 08-13-2025 Help: Connect RS485 I/O modules to the Raspberry Pi 4 Relay Board (Server Mini) + Home Assistant OS Hardware
Goal
What I’ve found / tried so far
Questions
RE: Connect RS485 KC868-HAv2 to Server Mini - admin - 08-13-2025 i suggest you see these two video tour firstly: https://youtu.be/s5Htc43HqAc https://youtu.be/S679QX6Hc6I Server-Mini Serial port pin define see here: https://www.kincony.com/forum/showthread.php?tid=3001 1. if you use multi HAv2, the last one module you can enable 120 Ω termination resistor, just enable the jumper on PCB. other HAv2 all remove the jumper. 2. HAv2 use private protocol, not modbus. no modbus firmware to use. 3. use PC software to config every HAv2 rs485 address and baud rate, default is 9600bps. here is online guide: https://www.kincony.com/how-to-use-rs485-button-adapter.html 4. a. it will show similar name as /dev/ttyAMA0 b. how to enable serial port for CM4, see here: https://www.kincony.com/forum/showthread.php?tid=4086 c. esphome yaml file download: https://www.kincony.com/forum/showthread.php?tid=3875 5. all have showed in video tour. RE: Connect RS485 KC868-HAv2 to Server Mini - Mijoo - 08-15-2025 Confirmation Since KC868-HAv2 uses a private protocol (not Modbus), am I right that Home Assistant on Server-Mini cannot read HAv2 directly over '/dev/ttyAMA0' unless I write my own driver? Questions:
If ESP32 bridge is required
RS485 details to confirm
If you do have a minimal example (service, script, or add-on) for direct CM4 use, please share a link. Otherwise, a clear “not supported—use ESP32 bridge” confirmation will help me plan hardware. Thanks! RE: Connect RS485 KC868-HAv2 to Server Mini - admin - 08-15-2025 1. HAv2 add-on for home assistant: https://github.com/hzkincony/esphome-kc868-ha 3. HAv2 can work with CM4's serial port directly. 4. if you want, we can send you change baud rate protocol. If ESP32 bridge is required. --> No RS485 details to confirm --> Yes Do you have seen our video tour? it already showed that work with CM4 RS485 port by server-mini. RE: Connect RS485 KC868-HAv2 to Server Mini - Mijoo - 08-16-2025 Hi, thanks for the quick answer and the video tours. I noticed in the videos you’re using a board that has ESP32 + RS-485 together, alongside the Server-Mini (CM4). I only have the Server-Mini (no ESP32 board). Questions/clarifications: 1. Is an ESP32 board (e.g., KC868-A8S) required? The repo you shared (https://github.com/hzkincony/esphome-kc868-ha) is not a Home Assistant add-on repository. It’s an ESPHome external component, which runs on an ESP32 and speaks the HAv2 private RS-485 protocol. → If I only have the Server-Mini (CM4) with its RS-485 pins on GPIO14/15, can I still integrate HAv2 directly without an ESP32? 2. If direct CM4 ↔ HAv2 over RS-485 is supported (no ESP32): • Please share the actual Home Assistant integration/add-on (HACS repo or Docker image) that talks the HAv2 private protocol over serial. • Minimal config example would help (serial device path /dev/ttyS0 or /dev/ttyAMA0, baud/parity, how to list multiple HAv2 boards by address, and how entities are exposed—MQTT discovery vs native HA integration). • Any docs/SDK/protocol description for the CM4 path are appreciated (even under NDA). 3. If direct CM4 is not supported: • Please confirm the official path is to use an ESP32 + RS-485 transceiver running ESPHome with your kc868_ha component, and that the Server-Mini only hosts Home Assistant. • In that case I’ll add an ESP32 bridge. 4. Alternative firmware option: • You mentioned you can “send change baud rate protocol.” Do you also provide a Modbus RTU firmware for HAv2? If yes, I can use HA’s built-in Modbus integration over the Server-Mini’s RS-485 port. A register map (coils/inputs/holding regs) would be great. My setup constraints: • Hardware: Server-Mini (CM4) with RS-485 on GPIO14 (TX) / GPIO15 (RX). • Goal: Control multiple HAv2 boards on the same bus. • Preference: Direct CM4 ↔ RS-485 if supported; otherwise I’ll add an ESP32. It would be great if you can send me change bout rate protocol for bulk provisioning. Thanks for clarifying which of the two paths is officially supported on a Server-Mini-only setup, and for the correct repo/instructions if the CM4 direct serial path exists. |