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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 8,233
» Latest member: beaudoin michel
» Forum threads: 3,602
» Forum posts: 18,569

Full Statistics

Online Users
There are currently 61 online users.
» 0 Member(s) | 41 Guest(s)
AhrefsBot, Amazonbot, Applebot, Bing, Crawl, Google, PetalBot, Semrush, Yandex, bot

Latest Threads
N20 ESPHome & HA - Line t...
Forum: N20
Last Post: WestCoastXS
Today, 02:52 AM
» Replies: 0
» Views: 11
Automation lamps A16_V3+E...
Forum: KC868-A16v3
Last Post: admin
Yesterday, 11:18 PM
» Replies: 6
» Views: 134
KC868-A2 ESP32 I/O pin de...
Forum: KC868-A2
Last Post: admin
Yesterday, 11:16 PM
» Replies: 16
» Views: 6,648
flash kc868-a4
Forum: KC868-A series and Uair Smart Controller
Last Post: admin
Yesterday, 11:14 PM
» Replies: 9
» Views: 163
KC868-COLB Analog Sensor ...
Forum: Development
Last Post: admin
Yesterday, 11:13 PM
» Replies: 12
» Views: 121
Driver recommendation for...
Forum: DIY Project
Last Post: guycaluwaerts
Yesterday, 08:54 PM
» Replies: 7
» Views: 1,341
N30 installation for Home...
Forum: N30
Last Post: guy
Yesterday, 05:46 AM
» Replies: 13
» Views: 92
Raspberry Pi5 Compute Mod...
Forum: Pi5
Last Post: admin
Yesterday, 05:42 AM
» Replies: 1
» Views: 10
E16T is not detected when...
Forum: KC868-E16T
Last Post: admin
12-08-2025, 11:36 PM
» Replies: 6
» Views: 81
KC868-A16 rs485
Forum: KC868-A16
Last Post: admin
12-08-2025, 11:24 PM
» Replies: 1
» Views: 14

  absolute beginner
Posted by: hideki - 10-04-2022, 12:56 AM - Forum: KC868-A4 - Replies (3)

I bought this base.
The program will learn from this.
I want to build an environment for attachments.
Please guide me.



Please check pdf file. Smile



Attached Files
.pdf   hideki1.pdf (Size: 6.94 MB / Downloads: 778)
Print this item

  Switch Terminal Board Failure??
Posted by: j_griffin100@yahoo.com - 10-03-2022, 08:57 PM - Forum: KC868-HxB series Smart Controller - Replies (1)

Greetings from USA--- I have KC868-H32B Controller with Switch Terminal Board v.2.1.  Controlling 13 outdoor lights, not using remainder relays currently.  Yesterday 2 October, system stopped being responsive to either inputs from app on phone, from remote control, and from push buttons.  Lights that were on before failure remain on, lights which are off can not be turned on.  

I have tried power on/off and I think it is possible the switch terminal board failed since I tested by first removing all loads and also tried to toggle relay by making contact on switch terminal board common + relay and nothing happens.   I have not been able to ever do a firmware update since I do not have Serial to USB cable, but I wonder if it is unrelated to firmware.  Does anyone have similar experience?  Anyone ever have Switch Terminal Board fail?[url=https://www.kincony.com/forum/showthread.php?tid=2320&action=lastpost][/url]

Thank you for your help!

Print this item

  COLB update state in Home Assistant
Posted by: Dober - 10-03-2022, 06:35 PM - Forum: Development - Replies (6)

hello!

I have COLB connected with home assistant by mqtt, when i restart home assistant all sensors turn to "unknown" to see the state again i have to restart COLB.
What have to do to maintain the state?

Print this item

  Problem with wall switch and HA automation
Posted by: Dober - 09-28-2022, 03:41 PM - Forum: DIY Project - Replies (8)

Hello Guys,

I have KC868 Server connected to HA by mqtt, i can read the entities and works well, in the relay board i connect 5 different lights also i add a wall switch which i connected to relay board and make an automation in HA to read the state of lights.
To connect relay and HA i manually add code to configuration yaml file.

My problem is that i have errors since i add switch code to yaml file. what im doing wrong??
Keep in mind that the automation works but when i press the button it has a delay 3 sec until light on

this is log details

Error parsing value: ‘dict object’ has no attribute ‘sw12’ (value: {“relay1”:{“on”:1},“relay2”:{“on”:1},“relay3”:{“on”:1},“relay4”:{“on”:1},“relay5”:{“on”:0},“relay6”:{“on”:0},“relay7”:{“on”:0},“relay8”:{“on”:0},“relay9”:{“on”:0},“relay10”:{“on”:0},“relay11”:{“on”:0},“relay12”:{“on”:0},“relay13”:{“on”:0},“relay14”:{“on”:0},“relay15”:{“on”:0},“relay16”:{“on”:0},“input1”:{“on”:0},“input2”:{“on”:0},“input3”:{“on”:0},“input4”:{“on”:0},“input5”:{“on”:0},“input6”:{“on”:0},“input7”:{“on”:0},“input8”:{“on”:0},“analog1”:{“value”:0},“analog2”:{“value”:0},“analog3”:{“value”:1},“analog4”:{“value”:1}}, template: {{ value_json.sw12.on }})

Template variable error: ‘dict object’ has no attribute ‘sw12’ when rendering ‘{{ value_json.sw12.on }}’

my code is:

binary_sensor:

name: ‘sw12’
unique_id: sw-12
state_topic: ‘server/xxxxxxxxxxxxxxxxxxxxxxxx/state’
value_template: ‘{{ value_json.sw12.on }}’
payload_on: 1
payload_off: 0

Print this item

  [Arduino IDE demo source code for KC868-E16S]-09 Work with Apple Homekit
Posted by: admin - 09-28-2022, 02:23 AM - Forum: KC868-E16S/E16P - No Replies

this arduino source code for KC868-E16S/KC868-E16T work with 16 relay and 16 momentary switch buttons via Apple homekit app. you can download the BIN firmware directly without chanage any code. Or you can open arduino source code project to compile. The source code use homespan library, mainly use PCF8574 extend GPIOs work with homespan.
   
       

here is firmware BIN file for KC868-E16S/KC868-E16T:

.zip   RealPushButtons.ino.nodemcu-32s-BIN.zip (Size: 623.62 KB / Downloads: 569)
here is arduino source code via homekit homespan library:

.zip   RealPushButtons.zip (Size: 2.49 KB / Downloads: 582)

after you downloaded firmware, how to use:

1. power on of your KC868-E16S/KC868-E16T board , connect with USB cable with your PC.
   
find out your USB cable COM port.

   
Set COM port in your arduino IDE "Tool" menu

   
open "Serial Monitor", actually you can use any serial monitor tool, we use arduino , just to use it's "Serial Monitor"

after you downloaded firmware, first time to use, need type "W" in serial monitor, chose number of wifi SSID, input password. 
[Image: attachment.php?aid=1375]   
[Image: attachment.php?aid=1376]   
[Image: attachment.php?aid=1377]   
[Image: attachment.php?aid=1378]   

then use your iPhone or iPad to pair KC868-A4.
[Image: attachment.php?aid=1379]    [Image: attachment.php?aid=1380]    [Image: attachment.php?aid=1381]    [Image: attachment.php?aid=1382]    [Image: attachment.php?aid=1383]    [Image: attachment.php?aid=1384]    [Image: attachment.php?aid=1385]    [Image: attachment.php?aid=1386]    [Image: attachment.php?aid=1387]    [Image: attachment.php?aid=1388]
if you want to eraser all data , re-config homespan, then you can send "E" to serial port.
   

Print this item

  Kincony a-16 using esphome toggle relays at boot up time
Posted by: nikhuge - 09-27-2022, 01:59 PM - Forum: KC868-A16 - Replies (2)

I am using kincony a16 with 16 relay board with esphome running but at the boot time all the relays  toggle  and make the relays on and off ...is their a way to stop this in the software side..this is become a big problem for me due all the appliance connect to relays suddenly become active and then turn off at the a16 booting up....below is my config


Code:
substitutions:
  name: kc868-a16

esphome:
  name: ${name}
  name_add_mac_suffix: false
 
  project:
    name: kincony.kc868-a16
    version: "1"

esp32:
  board: esp32dev


web_server:
  port: 80

dashboard_import:
  package_import_url: github://hzkincony/kc868-a16/kc868-a16.yaml@main

ota:
  password: "1234"

wifi:
  ssid: "router"
  password: "1234"
  use_address: 192.168.8.114
  manual_ip:
    static_ip: 192.168.8.114
    gateway: 192.168.8.1
    subnet: 255.255.255.0
# Example configuration entry for ESP32
i2c:
  sda: 4
  scl: 5
  scan: false
  id: bus_a

# Example configuration entry
# ethernet:
#  type: LAN8720
#  mdc_pin: GPIO23
#  mdio_pin: GPIO18
#  clk_mode: GPIO17_OUT
#  phy_addr: 0

# Example configuration entry
pcf8574:
  - id: "pcf8574_hub_out_1" # for output channel 1-8
    address: 0x24

  - id: "pcf8574_hub_out_2" # for output channel 9-16
    address: 0x25

  - id: "pcf8574_hub_in_1" # for input channel 1-8
    address: 0x21

  - id: "pcf8574_hub_in_2" # for input channel 9-16
    address: 0x22



# Individual outputs
switch:

  - platform: gpio
    name: "light2"
    id: light2
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 1
      mode: OUTPUT
      inverted: false

  - platform: gpio
    name: "light3"
    id: light3
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 2
      mode: OUTPUT
      inverted: false

  - platform: gpio
    name: "light4"
    id: light4
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 3
      mode: OUTPUT
      inverted: false

  - platform: gpio
    name: "light5"
    id: light5
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 4
      mode: OUTPUT
      inverted: false

  - platform: gpio
    name: "light6"
    id: light6
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 5
      mode: OUTPUT
      inverted: false

  - platform: gpio
    name: "light7"
    id: light7
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 6
      mode: OUTPUT
      inverted: false

  - platform: gpio
    name: "light8"
    id: light8
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 7
      mode: OUTPUT
      inverted: false

  - platform: gpio
    name: "light9"
    id: light9
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 0
      mode: OUTPUT
      inverted: false

  - platform: gpio
    name: "light10"
    id: light10
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 1
      mode: OUTPUT
      inverted: false

  - platform: gpio
    name: "light11"
    id: light11
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 2
      mode: OUTPUT
      inverted: false

  - platform: gpio
    name: "light12"
    id: light12
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 3
      mode: OUTPUT
      inverted: false

  - platform: gpio
    name: "light13"
    id: light13
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 4
      mode: OUTPUT
      inverted: false

  - platform: gpio
    name: "light14"
    id: light14
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 5
      mode: OUTPUT
      inverted: false

  - platform: gpio
    name: "light15"
    id: light15
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 6
      mode: OUTPUT
      inverted: false

  - platform: gpio
    name: "light16"
    id: light16
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 7
      mode: OUTPUT
      inverted: false

Print this item

  Nextion display work with KC868-A6
Posted by: admin - 09-27-2022, 05:34 AM - Forum: KC868-A6 - Replies (9)

i have used on board extend serial port. actually use want to use VCC,GND,RXD,TXD for Nextion display.

define RXD:GPIO13 TXD:GPIO12 by ESP32

weld Vcc 5V from LM1117 output pin.

here are some photos:

   
   
   

This just a simplest demo, use Nextion display two buttons, press button-one will send 'a' by serial port, press button-two will send 'b' by serial port.
when KC868-A4 received 'a' will turn ON relay1, when received 'b' will turn OFF relay1.

firstly create two buttons UI by Nextion Editor PC software:
[Image: attachment.php?aid=1429]   
[Image: attachment.php?aid=1430]   

here is firmware BIN file, you can download to KC868-A4 ESP32 directly to use:


.zip   nextion_KC868-A6.ino.nodemcu-32s.zip (Size: 108.86 KB / Downloads: 577)
here are source code:

Code:
#include "PCF8574.h"

String indata="";
String val="";

// Set i2c address
PCF8574 pcf8574(0x24);

void setup() {

  Serial1.begin(9600,SERIAL_8N1,13,12);
  Serial.begin(9600);
  pcf8574.pinMode(P0, OUTPUT);
  pcf8574.pinMode(P1, OUTPUT);
  pcf8574.pinMode(P2, OUTPUT);
  pcf8574.pinMode(P3, OUTPUT);
  pcf8574.pinMode(P4, OUTPUT);
  pcf8574.pinMode(P5, OUTPUT);

  Serial.print("Init pcf8574...");
  if (pcf8574.begin()){
    Serial.println("OK");
  }else{
    Serial.println("KO");
  } 
  pcf8574.digitalWrite(P0, HIGH);
  pcf8574.digitalWrite(P1, HIGH);
  pcf8574.digitalWrite(P2, HIGH);
  pcf8574.digitalWrite(P3, HIGH);
  pcf8574.digitalWrite(P4, HIGH);
  pcf8574.digitalWrite(P5, HIGH);
}

void loop() {
  while(Serial1.available()>0)
  {
    indata+=char(Serial1.read());
    delay(2);
    if(Serial1.available()<=0)
     {
        Serial.println(indata);
     }
  } 
  if(indata.length()>0)
  {
     val=indata;   
     if(val=="a")   
       {
         pcf8574.digitalWrite(P0, LOW);
         Serial.println("Relay1-ON OK!");
       }
     else if(val=="b")
      {
         pcf8574.digitalWrite(P0, HIGH);
         Serial.println("Relay1-OFF OK!");
      }
  }
  indata=""; 
}

Print this item

  KC868-H32B V4.45 new firmware update
Posted by: admin - 09-27-2022, 12:36 AM - Forum: News - No Replies


improvement:
support set "interlock" mode for motor curtain. Because it make the logical by hardware, so it will be safety. when set relay in "interlock" mode, in group relay will never ON together at the same time.
firmware download link:

.zip   Relay32_V445_220925.zip (Size: 49.51 KB / Downloads: 556)

   
   

Print this item

  KC868-E16T work with contact and wall switch by Tuya app
Posted by: admin - 09-27-2022, 12:23 AM - Forum: Schematic & diagram & Dimensions of KinCony PCB layout CAD file - No Replies

   

Print this item

  KC868-E16T demo configure for ESPhome
Posted by: admin - 09-26-2022, 02:03 PM - Forum: KC868-E16T - Replies (6)


.zip   Made_for_ESPHome_KC868-E16T.zip (Size: 887 bytes / Downloads: 716)

esphome:
  name: kc868-e16t
  platform: ESP32
  board: esp32dev
 
 
# Example configuration entry for ESP32
i2c:
  sda: 16
  scl: 15
  scan: true
  id: bus_a


# Example configuration entry
ethernet:
  type: LAN8720
  mdc_pin: GPIO23
  mdio_pin: GPIO18
  clk_mode: GPIO17_OUT
  phy_addr: 0

  # Optional manual IP
#  manual_ip:
#    static_ip: 192.168.1.199
#    gateway: 192.168.1.1
#    subnet: 255.255.255.0 


# Example configuration entry
pcf8574:
  - id: 'pcf8574_hub_out_1'  # for output channel 1-8
    address: 0x21

  - id: 'pcf8574_hub_out_2'  # for output channel 9-16
    address: 0x25

  - id: 'pcf8574_hub_in_1'  # for input channel 1-8
    address: 0x22

  - id: 'pcf8574_hub_in_2'  # for input channel 9-16
    address: 0x24

# Individual outputs
switch:
  - platform: gpio
    name: "e16t-output1"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 0
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "e16t-output2"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 1
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "e16t-output3"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 2
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "e16t-output4"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 3
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "e16t-output5"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 4
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "e16t-output6"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 5
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "e16t-output7"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 6
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "e16t-output8"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 7
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "e16t-output9"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 0
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "e16t-output10"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 1
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "e16t-output11"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 2
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "e16t-output12"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 3
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "e16t-output13"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 4
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "e16t-output14"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 5
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "e16t-output15"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 6
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "e16t-output16"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 7
      mode: OUTPUT
      inverted: true
     
binary_sensor:
  - platform: gpio
    name: "e16t-input1"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 0
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "e16t-input2"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 1
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "e16t-input3"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 2
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "e16t-input4"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 3
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "e16t-input5"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 4
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "e16t-input6"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 5
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "e16t-input7"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 6
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "e16t-input8"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 7
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "e16t-input9"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 0
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "e16t-input10"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 1
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "e16t-input11"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 2
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "e16t-input12"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 3
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "e16t-input13"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 4
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "e16t-input14"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 5
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "e16t-input15"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 6
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "e16t-input16"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 7
      mode: INPUT
      inverted: true

# Enable logging
logger:

# Enable Home Assistant API
api:

Print this item