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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 10,581
» Latest member: vegapunk
» Forum threads: 4,348
» Forum posts: 21,379

Full Statistics

Online Users
There are currently 156 online users.
» 0 Member(s) | 137 Guest(s)
AhrefsBot, Applebot, Baidu, Bing, Bytespider, Crawl, Google, PetalBot, Yandex, YisouSpider, bot

Latest Threads
KinCony N30 – CT clamp se...
Forum: N30
Last Post: admin
2 hours ago
» Replies: 1
» Views: 4
KC868-A8v3 (KCS v3.27.4) ...
Forum: KinCony integrate with Loxone home automation
Last Post: admin
2 hours ago
» Replies: 1
» Views: 29
Single-family home automa...
Forum: DIY Project
Last Post: lulu01
3 hours ago
» Replies: 5
» Views: 1,223
Shipping costs new CT Cla...
Forum: N30
Last Post: admin
11-21-2026, 12:07 PM
» Replies: 1
» Views: 36
N60 N30 N20 N10 ARM CPU f...
Forum: N20
Last Post: admin
11-21-2026, 12:06 PM
» Replies: 2
» Views: 633
KC868-A16 V3 – HTTPS GET ...
Forum: "KCS" v3 firmware
Last Post: admin
11-21-2026, 12:01 PM
» Replies: 1
» Views: 44
How is energy value deter...
Forum: N60
Last Post: admin
11-21-2026, 07:30 AM
» Replies: 3
» Views: 76
Automatic Modbus Sensor p...
Forum: "KCS" v3 firmware
Last Post: admin
11-20-2026, 11:19 PM
» Replies: 6
» Views: 199
KC868-A8v3 ESPHome yaml f...
Forum: KC868-A8v3
Last Post: admin
11-20-2026, 03:04 AM
» Replies: 0
» Views: 59
[arduino code examples fo...
Forum: KC868-A8v3
Last Post: admin
11-20-2026, 02:58 AM
» Replies: 0
» Views: 37

  New house
Posted by: Yazaww - 03-03-2023, 11:34 AM - Forum: DIY Project - Replies (11)

Hello, i need your help on checking if i choosed the right components for a new house build, it contains 2 floors.

First floor: 50 lights
                3 ac conditioner(3 different rooms)
                7 blind motors
                6 pir sensor 
               

Second floor: 40 lights
                    2 ac conditioner
                    8 blind motors
                    4 pir sensor
                    3 Glass break sensor
                   
And also alexa speaker to control the whole house on voice control

I choosed:
4 h32b
4 switch terminal board
1 colb
2 blind motors switch( to control 2 blinds manually)
4 kc-102 (3 to control 3 ac in 3 different rooms and 1 for controlling 2 ac next to the each other)
4 alexa speakers with kc-atc to support alexa voice control

Im using tuya app and kincony smart home app

Now am i missing a piece that i need for this new house building?
Best regards,

Print this item

  RC-snubber
Posted by: Philadam - 03-03-2023, 03:15 AM - Forum: KC868-A16 - Replies (6)

Would I need to use the rc-snubber if outputting to 12v 3rd party relays?

Print this item

Bug (SOLVED) Strange behavor ESPHome
Posted by: S.Krans - 03-02-2023, 02:55 PM - Forum: KC868-A128 - Replies (2)

Hi i got a KC868-A128 with ESPHome on it code from this forum


My problem is if i enable Switch (switch.kincony_kc868_a128_a128_light65) the (switch.kincony_kc868_a128_a128_light49) goes on and if i switch (switch.kincony_kc868_a128_a128_light49) does the same switch on and off


if i enable all switches everything goes on except D132 on the board no light

i have attached the code and the log



Attached Files Thumbnail(s)
   

.txt   ESPHOME LOG.txt (Size: 46.57 KB / Downloads: 688)
.txt   ESPHOME CODE.txt (Size: 43.25 KB / Downloads: 632)
Print this item

  [Arduino source code for KC868-A2]-05 RS485
Posted by: KinCony Support - 03-02-2023, 06:54 AM - Forum: KC868-A2 - Replies (5)

Code:
//A2
#define A2_RS485RX  35
#define A2_RS485TX  32
void setup() {
  Serial.begin(115200);
  Serial2.begin(115200,SERIAL_8N1,A2_RS485RX,A2_RS485TX);

   Serial2.println("RS485 SEND is OK!!");
   Serial2.println("******************");
 
}

void loop() {
  /*print the received data of RS485 port*/
  while(Serial2.available()>0)
   {
    Serial2.print((char)Serial2.read());//Read rs485 receive data  and print it
   }
  delay(200);
}



Attached Files
.zip   KC868-A2.zip (Size: 3.15 KB / Downloads: 1034)
Print this item

  [Arduino source code for KC868-A2]-04 RELAY
Posted by: KinCony Support - 03-02-2023, 06:54 AM - Forum: KC868-A2 - No Replies

Code:
/*KC868-A2  relay  output*/
#define RELAY1 2
#define RELAY2 15
void setup() {

  pinMode(RELAY1, OUTPUT);
  pinMode(RELAY2, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
    digitalWrite(RELAY1, HIGH);
    delay(1000);
    digitalWrite(RELAY1, LOW);
    delay(1000);
    digitalWrite(RELAY2, HIGH);
    delay(1000);
    digitalWrite(RELAY2, LOW);
    delay(1000);
  

}



Attached Files
.zip   A2_Relay.zip (Size: 99.6 KB / Downloads: 979)
Print this item

  [Arduino source code for KC868-A2]-03 LAN8720_UDP
Posted by: KinCony Support - 03-02-2023, 06:48 AM - Forum: KC868-A2 - Replies (1)

Code:
#include <ETH.h>
#include <WiFiUdp.h>

#define ETH_ADDR        0
#define ETH_POWER_PIN  -1
#define ETH_MDC_PIN    23
#define ETH_MDIO_PIN   18   
#define ETH_TYPE       ETH_PHY_LAN8720
#define ETH_CLK_MODE   ETH_CLOCK_GPIO17_OUT

WiFiUDP Udp;                      //Create UDP object
unsigned int localUdpPort = 4196; //local port

// Set it based on the IP address of the router
IPAddress local_ip(192, 168, 1, 200);
IPAddress gateway(192, 168, 1, 1);
IPAddress subnet(255, 255, 255, 0);
IPAddress dns(192, 168, 1, 1);

void setup()
{
  Serial.begin(115200);
  Serial.println();
   
  ETH.begin(ETH_ADDR, ETH_POWER_PIN, ETH_MDC_PIN, ETH_MDIO_PIN, ETH_TYPE, ETH_CLK_MODE); //start with ETH

  // write confir for static IP, gateway,subnet,dns1,dns2
  if (ETH.config(local_ip, gateway, subnet, dns, dns) == false) {
    Serial.println("LAN8720 Configuration failed.");
  }else{Serial.println("LAN8720 Configuration success.");}
 
/* while(!((uint32_t)ETH.localIP())) //wait for IP
  {

  }*/
  Serial.println("Connected");
  Serial.print("IP Address:");
  Serial.println(ETH.localIP());

  Udp.begin(localUdpPort); //begin UDP listener
}

void loop()
{
  int packetSize = Udp.parsePacket(); //get package size
  if (packetSize)                     //if have received data
  {
    char buf[packetSize];
    Udp.read(buf, packetSize); //read current data

    Serial.println();
    Serial.print("Received: ");
    Serial.println(buf);
    Serial.print("From IP: ");
    Serial.println(Udp.remoteIP());
    Serial.print("From Port: ");
    Serial.println(Udp.remotePort());

    Udp.beginPacket(Udp.remoteIP(), Udp.remotePort()); //ready to send data
    Udp.print("Received: ");   
    Udp.write((const uint8_t*)buf, packetSize); //copy data to sender buffer
    Udp.endPacket();            //send data
  }
}



Attached Files
.zip   KC868-A2.zip (Size: 3.15 KB / Downloads: 936)
Print this item

  [Arduino source code for KC868-A2]-02 INPUT
Posted by: KinCony Support - 03-02-2023, 06:47 AM - Forum: KC868-A2 - No Replies

Code:
/*A2 INPUT PIN*/
#define input1  36
#define input2  39

void setup()
{
  Serial.begin(115200);
  pinMode(input1,INPUT);
  pinMode(input2,INPUT);
}

void loop()
{
if (digitalRead(input1)==LOW){
  Serial.println("input1 down");
}
if (digitalRead(input2)==LOW){
  Serial.println("input2 down");
}

}



Attached Files
.zip   KC868-A2.zip (Size: 3.15 KB / Downloads: 896)
Print this item

Heart [Arduino source code for KC868-A2]-01 DS18B20
Posted by: KinCony Support - 03-02-2023, 06:46 AM - Forum: KC868-A2 - No Replies

Code:
#include <DS18B20.h>

DS18B20 ds1(33); 
DS18B20 ds2(14); 
void setup() {
  Serial.begin(115200);
}
void loop() {

      Serial.print("Temperature1 is ");
      Serial.print(ds1.getTempC());
      Serial.println(" C");
      delay(500);
      Serial.print("Temperature2 is ");
      Serial.print(ds2.getTempC());
      Serial.println(" C");
      delay(500);
}



Attached Files
.zip   KC868-A2.zip (Size: 3.15 KB / Downloads: 903)
Print this item

  [Arduino source code for KC868-ASR]-04 BEEP
Posted by: KinCony Support - 03-02-2023, 06:39 AM - Forum: KC868-ASR - No Replies

Code:
#define BEEP 18
#define S2 0

void setup() {
  Serial.begin(115200);
  pinMode(BEEP,OUTPUT);
  pinMode(S2,INPUT);

  digitalWrite(BEEP, HIGH);
  delay(200);
  digitalWrite(BEEP,LOW);
  delay(200);
   
}

void loop() {

if(digitalRead(S2)==LOW){
  delay(20);
  if(digitalRead(S2)==LOW)
  {
    digitalWrite(BEEP, HIGH);
    delay(100);
    digitalWrite(BEEP, LOW);
    delay(10); 
  } 
}else digitalWrite(BEEP, LOW);
}



Attached Files
.zip   KC868-ASR_BEEP.zip (Size: 102.86 KB / Downloads: 835)
Print this item

  [Arduino source code for KC868-ASR]-03 DS18B20
Posted by: KinCony Support - 03-02-2023, 06:38 AM - Forum: KC868-ASR - No Replies

Code:
#include <DS18B20.h>

DS18B20 ds1(32);  //channel-1-DS18b20
DS18B20 ds2(33);  //channel-2-DS18b20


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

void loop() {

Serial.printf("T1:%.2f || T2:%.2f \n",ds1.getTempC(),ds2.getTempC());
delay(1000);
}



Attached Files
.zip   KC868-ASR_DS18B20.zip (Size: 105.14 KB / Downloads: 901)
Print this item