32 channel ethernet relay module – KinCony KC868-H32

because the coil of AC contactor generates interference signal, if you use extend DC relay or DC contact will no problem. if you must need add AC contact, just add RC snubber will solve your problem, just connect resistance and capacitance on both ends of coil of AC contactor in parallel. Here have KiniCony RC snubber , you can directly to use: RC Absorption Snubber Circuit Module - Smart Home Automation | KinCony here are diagram RC snubber connect with KC868-H16B

I had the exact same problem with motorized valves on my H32B and had to solve it with Zigbee-controlled relays as the RC Snubber did not help in any way.
Good luck!

Would you mind sharing what devices did you use?

The Kincony RC Snubber with a Kincony H868-32B.
If you mean what Zigbee device, I use the one included in the zigbee2mqtt list (without any RC snubber):

Dear colleagues. I want to update this topic. What are the working ways to control the KC868-H32 module from Home Assistant today?

Here are the projects I found. But I’m not sure if they all work.

Kincony KC868 Node-RED / HA working diagram/code

I have kept modifying shamruk’s custom component to keep it working, and it has kept working for me. I just forked the repository and updated it from my working install (2023.4) now: GitHub - fiLLLip/hass-components-sha: This is non-official integration of KC868-H32 (relay controller by Kincony) for Home Assistant

When cloning, the system gives an error

image

I saved your branch from git and extracted the component folder from it - kincony_hx.
Placed this component in the custom_components folder and rebooted the server.
Question. What to do next?
What parameters should be set in the configuration file. Or what other steps to take

It works. Switch on switch off. I don’t know about digital inputs, how to connect them in this integration. And another question, Is the state of the switches remembered in the system?

As far as I know, this integration does not read any digital inputs. It only reads/writes the state of the relays. I have only tested the output relays. I don’t know if the state is remembered, but it is polled every x seconds.

Hello, how to read the status of digital inputs D1-D32? When the contacts are closed to GND, the mqtt explorer displays a change in the state of the inputs, but when trying to create a binary sensor on the mqtt platform, it does not respond to a change in the state of the physical input

And one more question, is it possible to control the relay output of another channel with a double click, for example, double click D1 turns on output 32?

Hello @KinCony

Do you have sellers in Europe? Or just sell on Aliexpress and Alibaba?

Thank you for your reply

yes, we only sell from Aliexpress or alibaba online store.

@KinCony Is it possible to reflash your voice module based on ESP8266 so that the old version KC868-H32 relay module can fully function with the Esphome protocol?
Alternatively, is it possible to replace the board on the voice module with an ESP32 board for this purpose?

Is it possible to reflash your voice module based on ESP8266 so that the old version KC868-H32 relay module can fully function with the Esphome protocol? >> sorry, this can’t.

is it possible to replace the board on the voice module with an ESP32 board for this purpose? >> you can add tuya adapter, that have ESP32 on adapter. will support use by tuya app and voice control by alexa and google home directly, but it’s not use for ESPHome.

I meant to create a transitional device from the voice module that can control the KC868-H32 module via the RS232 port using the Esphome protocol. This way, I can update the outdated device.

ok, sure, you can create “UART Switch” in home assistant according to H32 relay controller’s STRING format protocol.

Could you make a lesson on this topic or provide an example code for Esphome?