32 channel ethernet relay module – KinCony KC868-H32

I just go my KC868-H32L from China and I´m playing with it right now.
Indeed it´s a great device. I was able to load @shamruk code without much effort, even with my limited (almost zero) coding skills.
Right after I integrated HA with Google Home and I´m arealy “talking” to my home throught KinCony´s device.
So, Im very happy with it.

I just couldn´t assing the lights / switches to a room (area). Any suggestion how to do that?

I was wondering if someone wrote a code for the “buttons”.?
I mean, If I press a button in kinconys device, could I setup a scene inside HA, maybe even a Hold function for the buttons?

now new firmware for KC868-H32 controller add a function, that when you press wall switch panel (already connect with switch terminal board) , then controller will feedback a message to TCP that which key is pressed and now the relay is ON/OFF, so you can get the information in HA if you can write code, get the information then can trig for scene.

feedback data as follows:
RELAY-KEY-255,1,1,OK (Key1 have pressed,now relay1 is ON)
RELAY-KEY-255,1,0,OK (Key1 have pressed,now relay1 is OFF)

RELAY-KEY-255,2,1,OK (Key2 have pressed,now relay2 is ON)
RELAY-KEY-255,2,0,OK (Key2 have pressed,now relay2 is OFF)

@KinCony how to use this ethernet relay control board TCP Socket to MQTT protocol kit for home assistant with linux since HADemoMain.exe is executable on windows only not linux can you make tutorial for this please

if you want to use apple homekit, we have maken many DIY videos on our youtube channel, that can integrate to node-red running a raspberry pi 4 Linux for homekit use.
for home assistant we have only make an protocol convert program on Windows OS.
Sorry, because these days our engineer all busy for developing next new version of KC868-H32,next design will both have ethernet and wifi and can work at the same time with cloud server and local LAN use.

I have an idea who can write a new fireware for MQTT or write a plugin file in home assistant share for every DIYer, we can sponsor products or bonuses.Such as ethernet relay controller or automatic logical controller (sensor input module) all can be integrate to HA.

Does your product work as modbus as there is ready integration in home assistant for modbus protocol.

I am working on python script to control my 32 relay module with homeassistant if you can provide me with other devices in your portfolio i can adjust my code to work with all your devices to have python script run in background in linux or windows to work with home assistant with mqtt component my relay module code is almost finished if you agree to provide devices i can work on it and provide my code here to all DIYers

ok, what other device you want to integrate?

1 Like

now not for modbus, but we are plan to make new MQTT firmware for new 32 channel relay board.

hi,
if you have managed to create Kincony control software by MQTT, please send me information
I am trying to connect the KC868-32L driver to HA throught MQTT and I am not successful.
Thank you for your help

It’s not the best code ever but it works . its python code that connect to kincony module and Convert relays to mqtt topics to control and provide status for relaies , but i will share it any way , i will add detecting the 6 input nodes and share it with you soon with description how to use it

2 Likes

“now not for modbus, but we are plan to make new MQTT firmware for new 32 channel relay board.”
Can you provide more information please?
Is this MQTT firmware ‘only’ available for ‘new’ device, or existing devices?
When is this ‘new’ device available?

thanks.i’ll be waiting for info

there is a way to support home assistant for existing devices, that is install add-on “Node-red” to home assistant, because node-red have “TCP out” node, it’s very easy to control our relay. i have made many video guide for this. Then you can let home assistant send message or receive message from node-red is ok.
now we have make the new model KC868-H32B, that’s both have ethernet and wifi, these two module can work at the same time. such as ethernet connect to cloud server, wifi use in local LAN , such as for home assistant in LAN use. we will plan to make new firmware support MQTT.

use home assistant + add-on node-red will work fine for KC868-H32 relay controller.

Users recognized your controllers, they liked them. And now they really want full integration with open home automation platforms.

now we have making series of videos how to integrate KC868 smart controller to home assistant.

1 Like

How to read relay status? And how to restore the state of the switched on relays after restarting the relay module?

  1. This is a switch created from the example from your last video in the Node red.
  2. LS 1 - LS 32 is the integration of the relay module proposed by https://community.home-assistant.io/u/shamruk. - https://github.com/shamruk/hass-components-sha
    When I turn on LS 32, the switch created in the Node red does not read the status of the contact group.
    This is the same contact - # 32

On the contrary, the poll is triggered. If at first I press 1, then 2 changes its status after some time, not immediately. There is a delay in polling the status of the shamruk integration.

i don’t think need add two way of all switch button. if you really want to add, you can add “event:state” node in Node-Red to get the state of switch button -LS32, if changed then use “entity” node update the switch 1 button state. You can also send read relay command by “TCP out”, and use “TCP in” node to get relay status.But if wall switch turn ON/OFF relay manaully, controller will auto send feedback message by “TCP in”, it will show which key is pressed, and now it’s on/off status. so when you get the message, you can use “entity” node change relay status on HA.These days are our holidays, when we begin work, we can make an new video about the wall switch status feedback and how to add controller’s input port for sensor use integrate to home assistant.