Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 8,326
» Latest member: sarabhealthcare
» Forum threads: 3,635
» Forum posts: 18,771

Full Statistics

Online Users
There are currently 23 online users.
» 0 Member(s) | 11 Guest(s)
AhrefsBot, Amazonbot, Bing, Crawl, PetalBot, bot

Latest Threads
adaptor V2 and KC868 h32b...
Forum: KC868-ATC / Tuya adapter V2
Last Post: admin
3 hours ago
» Replies: 3
» Views: 43
Problems and general Feed...
Forum: N30
Last Post: admin
11 hours ago
» Replies: 1
» Views: 7
N20 Problem with Home Ass...
Forum: N20
Last Post: admin
11 hours ago
» Replies: 4
» Views: 19
Voltage for KC868-16
Forum: KC868-A16
Last Post: admin
11 hours ago
» Replies: 1
» Views: 2
sample code to receive ht...
Forum: F16
Last Post: admin
Yesterday, 10:54 AM
» Replies: 8
» Views: 30
16-Channel Lighting Contr...
Forum: News
Last Post: admin
Yesterday, 10:52 AM
» Replies: 1
» Views: 10
OUTPUT DO1
Forum: KC868-AIO
Last Post: admin
Yesterday, 01:58 AM
» Replies: 3
» Views: 20
N30 Energy entry not work...
Forum: N30
Last Post: Vega
12-27-2025, 01:15 PM
» Replies: 13
» Views: 129
KC868-M16v2 configure yam...
Forum: KC868-M16 / M1 / MB / M30
Last Post: admin
12-27-2025, 08:45 AM
» Replies: 127
» Views: 25,362
Replacing ESP32 with Kinc...
Forum: KC868-A16
Last Post: admin
12-24-2025, 11:43 PM
» Replies: 1
» Views: 29

  KC868-A16S SMS Control issue
Posted by: land88 - 06-17-2025, 03:12 PM - Forum: KC868-A16S - Replies (1)

Hi,

I have a KC868-A16S V1.1.
I have a problem with sms, I can do a phone test to my mobile phone and I receive the KC868 sms, it's ok.
With a digital input I can do a "Relay on" and it send me a sms notify message, ok.

The issue is when I want to send with my phone, a sms control to change a relay state, in this case, the KC868 doesn't do anything with IFTT.
It's like the KC868 doesn't receive the sms command.

How to find the issue ?

Thanks

Print this item

  Issues with binary sensor of kc868_ha component in esphome/home assistant
Posted by: shavrin - 06-17-2025, 02:35 PM - Forum: KC868-HA /HA v2 - Replies (3)

I have tried to configure KS868-HA-V21 module with KC868-A6 using EspHome. Connection between A6 and KS686-HA works good, at least I can see debug logs, when attach K1 (or any other K pin) to GND:

Code:
[17:27:41][D][kc868_ha.component:019]: uart bus receive 1:10:0:a:0:6:c:65:3:0:0:0:0:0:0:0:0:0:0:f:b8
[17:27:41][D][kc868_ha.component:030]: uart crc=f:b8, calc crc=f:b8
[17:27:41][D][kc868_ha.component:043]: dump kc868_ha config, target_relay_controller_addr=1, switch_adapter_addr=10, bind_output=1
[17:27:41][D][kc868_ha.component:043]: dump kc868_ha config, target_relay_controller_addr=1, switch_adapter_addr=10, bind_output=2
[17:27:41][D][kc868_ha.component:043]: dump kc868_ha config, target_relay_controller_addr=1, switch_adapter_addr=10, bind_output=3
[17:27:41][D][kc868_ha.component:043]: dump kc868_ha config, target_relay_controller_addr=1, switch_adapter_addr=10, bind_output=4
[17:27:41][D][kc868_ha.component:043]: dump kc868_ha config, target_relay_controller_addr=1, switch_adapter_addr=10, bind_output=5
[17:27:41][D][kc868_ha.component:043]: dump kc868_ha config, target_relay_controller_addr=1, switch_adapter_addr=10, bind_output=6
[17:27:41][D][kc868_ha.component:054]: found a kc868_ha board, target_relay_controller_addr=1, switch_adapter_addr=10, bind_output=1
[17:27:41][D][kc868_ha.component:054]: found a kc868_ha board, target_relay_controller_addr=1, switch_adapter_addr=10, bind_output=2
[17:27:41][D][kc868_ha.component:054]: found a kc868_ha board, target_relay_controller_addr=1, switch_adapter_addr=10, bind_output=3
[17:27:41][D][kc868_ha.component:054]: found a kc868_ha board, target_relay_controller_addr=1, switch_adapter_addr=10, bind_output=4
[17:27:41][D][kc868_ha.component:054]: found a kc868_ha board, target_relay_controller_addr=1, switch_adapter_addr=10, bind_output=5
[17:27:41][D][kc868_ha.component:054]: found a kc868_ha board, target_relay_controller_addr=1, switch_adapter_addr=10, bind_output=6

But binary sensor doesn't worked as expected. Configuration for esphome taken from https://github.com/hzkincony/esphome-kc868-ha.

I have checked esphome-kc868-ha code, and looks, like module send "3" when K1 attached to GND and "0" when it's released. But module expect "1" and "2" values.

What can be done, to resolve this issue?

(I have multiple KC868-HA modules, and looks that all of them have the same issue)

Print this item

  [arduino code examples for A16v3]-14 post data to mqtt topic
Posted by: admin - 06-17-2025, 12:26 PM - Forum: KC868-A16v3 - No Replies

Code:
/*
* MQTT example using W5500 and ESP32-S3
* Adapted from KinCony's W5500 TCP Server example
*/

#include <SPI.h>
#include <Ethernet.h>
#include <PubSubClient.h>

// W5500 pin definitions
#define W5500_CS_PIN   15
#define W5500_RST_PIN  1
#define W5500_INT_PIN  2
#define W5500_CLK_PIN  42
#define W5500_MOSI_PIN 43
#define W5500_MISO_PIN 44

// MAC address (must be unique)
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };

// Static IP settings
IPAddress ip(192, 168, 3, 55);
IPAddress subnet(255, 255, 255, 0);
IPAddress gateway(192, 168, 3, 1);
IPAddress dns(192, 168, 3, 1);

// MQTT broker settings
const char* mqtt_server = "192.168.3.100";  // 可改为你的服务器
const int mqtt_port = 1883;
const char* mqtt_topic = "kincony/test";

// Ethernet and MQTT clients
EthernetClient ethClient;
PubSubClient mqttClient(ethClient);

// MQTT callback
void mqttCallback(char* topic, byte* payload, unsigned int length) {
  Serial.print("Message arrived [");
  Serial.print(topic);
  Serial.print("]: ");
  for (unsigned int i = 0; i < length; i++) {
    Serial.print((char)payload[i]);
  }
  Serial.println();
}

void mqttReconnect() {
  while (!mqttClient.connected()) {
    Serial.print("Attempting MQTT connection...");
    if (mqttClient.connect("KinConyClient")) {
      Serial.println("connected");
      mqttClient.subscribe(mqtt_topic);  // 订阅主题
    } else {
      Serial.print("failed, rc=");
      Serial.print(mqttClient.state());
      Serial.println(" trying again in 5 seconds");
      delay(5000);
    }
  }
}

void setup() {
  Serial.begin(115200);

  // Reset W5500
  pinMode(W5500_RST_PIN, OUTPUT);
  digitalWrite(W5500_RST_PIN, LOW);
  delay(100);
  digitalWrite(W5500_RST_PIN, HIGH);
  delay(100);

  // Start SPI
  SPI.begin(W5500_CLK_PIN, W5500_MISO_PIN, W5500_MOSI_PIN);
  Ethernet.init(W5500_CS_PIN);
  Ethernet.begin(mac, ip, dns, gateway, subnet);

  Serial.print("IP Address: ");
  Serial.println(Ethernet.localIP());

  mqttClient.setServer(mqtt_server, mqtt_port);
  mqttClient.setCallback(mqttCallback);
}

unsigned long lastMsg = 0;

void loop() {
  if (!mqttClient.connected()) {
    mqttReconnect();
  }

  mqttClient.loop();

  // Publish message every 10 seconds
  unsigned long now = millis();
  if (now - lastMsg > 10000) {
    lastMsg = now;
    const char* msg = "Hello from KinCony ESP32S3 board + W5500";
    mqttClient.publish(mqtt_topic, msg);
    Serial.println("Published message");
  }
}
arduino ino file download:

.zip   14-mqtt.zip (Size: 1.19 KB / Downloads: 327)
   

Print this item

  R503 do'nt scan fingerprints
Posted by: remiasz - 06-13-2025, 06:48 PM - Forum: KC868-A series and Uair Smart Controller - Replies (5)

Fingerprint sensor R503 do not scan finger. I use KC868-A16 with ESPHome.
Sensor is connected to HT1/2 port as Uart. I can control aura led but I get only "No touch sensing" message.
"Wakeup" signal connected to HT3 all time is OFF. When I send command to enroll "Wakeup" goes to ON but sensor dont scan any finger.
Can anyone help?
   

Print this item

  KC868-A16 + 2 × R4DCB08 – CRC errors
Posted by: Akash24 - 06-13-2025, 02:54 PM - Forum: KC868-A series and Uair Smart Controller - Replies (1)

Hi KinCony team,
Hardware
• KC868-A16 (ESP32, ESPHome 2025.2.2, UART TX GPIO13 / RX GPIO16, 9600 baud, 8-N-1)
• Two R4DCB08 temperature-collector boards, each with 4-8 × DS18B20 probes
• 24 V DC power supply feeding both collectors
• RS-485 cabling: shielded twisted pair
Address & jumpers
• Board 1 → Modbus ID 0x01, TERM OFF, BIAS OFF
• Board 2 → Modbus ID 0x02, TERM ON (far end), BIAS OFF
• KC868 terminator jumper → ON when only board #1 is present, OFF when both boards are in the chain
Wiring topology
KC868 A/B/GND → short stub to board #1 → 3 m cable → board #2 (terminator)
(I originally had both collectors fanned out from a terminal block; I have now rewired them in strict daisy-chain as shown in the attachment.)
Symptoms
• With only board #1 on the line everything is stable – ESPHome reads register 0x0000 and publishes 23.8 °C.
• As soon as I plug in board #2 I get continuous
csharp
CopyEdit

Code:
[W][modbus:125]: Modbus CRC Check failed!
[W][modbus_controller]: Modbus device=2 set offline
Board 1 sometimes also goes offline after a minute.
• Swapping A/B on both collectors made no difference.
• If I change board #2’s address to 0x01, unplug board #1, it answers correctly, so the hardware itself works.
What I’ve tried
  1. Checked DIP addresses (01 / 02) – OK
  2. Verified 5 V on both collectors while polling – 5.05 V
  3. Tried baud 2400 on both sides – still CRC errors
  4. Tested with just 30 cm jumpers between boards – same result
Question
Are there any known issues with two R4DCB08 units on the same KC868-A16 RS-485 bus?
Can you suggest further tests (e.g. different termination/bias settings, oscilloscope waveforms to capture) or firmware settings that typically resolve “CRC Check failed” when the wiring looks correct?
Log snippet and wiring photo are attached.
Thanks in advance for any pointers!

Print this item

  Start a Project
Posted by: cturqueti - 06-12-2025, 12:50 PM - Forum: Apply for free sample product - No Replies

I work at Sideout projects and we are automating a machine and I have verified that your product may be compatible with it, and we would like to use it for testing. We would like to verify the quality of the product and in the future use the KC868-A16.

Print this item

  KC868-A16 detected but failed to download firmware
Posted by: mohaz - 06-12-2025, 09:57 AM - Forum: KC868-A series and Uair Smart Controller - Replies (3)

Hi,
I recently purchased a second KC868-A16 , the first one installed ~4 months ago works fine
But the new one can't download firmware  using flash download tool  (see attached file)
I tried the followinf steps:
 1) use the original Usb c cable , and try another one  (no usb hub)  same  from anotehr PC  -> NOK
 2) using flash downlod tool with different rate ->  (see attached download tool log) => NOK
 3) Trying upload using esphome  -> NOK  (see attached error log)
 4) Even connected to Lan netowrk   the scan tool can't detect it

NB : 

The usb device is connected when plugged but there is communication issue or flash issue.

Thank you for your support. 

Regards.



Attached Files Thumbnail(s)
   

.txt   ECE334680F4C.txt (Size: 2.97 KB / Downloads: 154)
.txt   esphome_errors.txt (Size: 1.46 KB / Downloads: 146)
Print this item

  Questions about KinCony String Protocol over RS485 for ESPHome Integration
Posted by: itzek - 06-12-2025, 05:49 AM - Forum: KC868-AK - No Replies

Hello KinCony Admin
I want to send activation commands from 1 KC868-A to 2 different H32B PRO controllers.
I'm integrating a KC868-AK ESP32 board (as an input controller) with other KinCony relay boards (as slaves) using RS485 and your String Protocol. I've seen the KC868-A-series-protocol-String_firmware_V2-2.pdf document and understand that the String Protocol is supported over RS485.

  1. String Protocol DEV_ID: How is the DEV_ID (e.g., "255" in RELAY-KEY-255,id,1) set/configured on KinCony relay boards for RS485 String Protocol? Is there a default, and can it be changed?
  2. RS485 Settings: What are the exact default/recommended RS485 settings (Baud Rate, Stop Bits, Parity) for KinCony boards using the String Protocol?
  3. RTS Pin for KC868-AK RS485: Is an RTS pin required for RS485 communicationon the KC868-AK ESP32 with the String Protocol? If so, which GPIO pin and is it active HIGH/LOW?
  4. Relay ID Mapping:  Does the id in RELAY-KEY-DEV_ID,id,1 directly correspond to the physical relay number (e.g., id=1 for Relay 1, id=16 for Relay 16)?
Thank you for your help

Print this item

  A32 Pro Cross-Controller Control
Posted by: v1rtus - 06-11-2025, 09:44 PM - Forum: KC868-A series and Uair Smart Controller - Replies (7)

I have two A32 Pro controllers—one installed on each floor. I would like to achieve the following functionality: when input 25 on controller 1 is activated, the output on controller 2 should toggle accordingly.
Is it possible to implement this directly using the controllers' software, or would I need to use an intermediate server or external device to achieve this?

Thanks in advance.

Print this item

  rs485 SHT
Posted by: Read.0h1 - 06-11-2025, 02:17 PM - Forum: F16 - Replies (5)

I apologize for my lack of knowledge here but I am trying to set up an SHT temperature and humidity sensor (purchased through your website) to my F16 board. I found YAML in a different thread and copied it and changed the pin numbers to match my board. I am using ESPhome through Homeassistant. The YAML pertaining to the temperature humidity sensor is as follows:

uart:
  - id: uart_modbus
    baud_rate: 9600
    tx_pin: 16
    rx_pin: 17
# Config Modbus
modbus:
  uart_id: uart_modbus
  id: modbus1
modbus_controller:
  - id: modbus_sensor
    address: 0x01  # device address
    modbus_id: modbus1
sensor:

  - platform: modbus_controller
    modbus_controller_id: modbus_sensor
    name: "RS485 Temperature Sensor"
    id: temperature_sensor
    address: 0x0000
    register_type: holding
    value_type: U_WORD
    unit_of_measurement: "°C"
    accuracy_decimals: 1
    filters:
      - lambda: if (x < 10000) return x * 0.1; else return -1 * (x - 10000) * 0.1;
   
  - platform: modbus_controller
    modbus_controller_id: modbus_sensor
    name: "RS485 Humidity Sensor"
    id: humidity_sensor
    address: 0x0001
    register_type: holding
    value_type: U_WORD
    unit_of_measurement: "%"
    accuracy_decimals: 1
    filters:
      - multiply: 0.1



The sensors read as unavailalbe in homeassistant. I have a feeling that the issue may be in the address of the specific sensors, but I have no idea since I have never used the RS485 pins before.

Print this item