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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 9,439
» Latest member: xosoplusmobii
» Forum threads: 4,136
» Forum posts: 20,697

Full Statistics

Online Users
There are currently 120 online users.
» 0 Member(s) | 107 Guest(s)
Amazonbot, Bytespider, Google, PetalBot, Semrush, bot

Latest Threads
development code will get...
Forum: Development
Last Post: admin
11 hours ago
» Replies: 3
» Views: 9,052
IFFT Settings Do Not Save...
Forum: KC868-AG / AG Pro / AG8 / Z1
Last Post: admin
Yesterday, 04:05 AM
» Replies: 1
» Views: 14
Kincony Server 16 User Ma...
Forum: KinCony Server-Mini / Server-16 Raspberry Pi4 relay module
Last Post: admin
07-20-2026, 10:05 PM
» Replies: 7
» Views: 2,657
flash kc868-a4
Forum: KC868-A series and Uair Smart Controller
Last Post: admin
07-20-2026, 10:00 PM
» Replies: 23
» Views: 3,848
Ethernet static address
Forum: KC868-A series and Uair Smart Controller
Last Post: admin
07-19-2026, 11:39 AM
» Replies: 7
» Views: 97
"KCS" v3.26.1 firmware BI...
Forum: "KCS" v3 firmware
Last Post: admin
07-19-2026, 01:14 AM
» Replies: 0
» Views: 73
How to get started
Forum: KC868-A16
Last Post: admin
07-18-2026, 01:32 AM
» Replies: 35
» Views: 8,519
KC868 A8 + Home Assistant...
Forum: Development
Last Post: admin
07-18-2026, 01:31 AM
» Replies: 9
» Views: 117
KC868-A4 slide gate retro...
Forum: DIY Project
Last Post: admin
07-17-2026, 12:35 AM
» Replies: 1
» Views: 43
Questions on the B4M
Forum: B4M
Last Post: admin
07-16-2026, 11:43 AM
» Replies: 1
» Views: 31

  Tuya IoT platform parameter for A32 Pro controller
Posted by: admin - 05-31-2024, 02:30 AM - Forum: KC868-A32/A32 Pro - No Replies

PID:fwy7fk4mzay3kern

switch01 DP ID:101
switch02 DP ID:102
switch03 DP ID:103
switch04 DP ID:104
switch05 DP ID:105
switch06 DP ID:106
switch07 DP ID:107
switch08 DP ID:108
switch09 DP ID:109
switch10 DP ID:110
switch11 DP ID:111
switch12 DP ID:112
switch13 DP ID:113
switch14 DP ID:114
switch15 DP ID:115
switch16 DP ID:116
switch17 DP ID:117
switch18 DP ID:118
switch19 DP ID:119
switch20 DP ID:120
switch21 DP ID:121
switch22 DP ID:122
switch23 DP ID:123
switch24 DP ID:124
switch25 DP ID:125
switch26 DP ID:126
switch27 DP ID:127
switch28 DP ID:128
switch29 DP ID:129
switch30 DP ID:130
switch31 DP ID:131
switch32 DP ID:132

digital input1 DP ID:133
digital input2 DP ID:134
digital input3 DP ID:135
digital input4 DP ID:136

DAC output1 DP ID:173
DAC output2 DP ID:174

Print this item

  Help With RS485
Posted by: phateks - 05-30-2024, 08:07 PM - Forum: KC868-A4S - Replies (1)

Hello, i  have an modbus  thermostat and i have those instructions to set up.
Can you help me with a code in esphome for that?
ThankYou!!



Attached Files Thumbnail(s)
       
Print this item

  RF signal learnt but when i press transmit there is no signal sent?
Posted by: stam - 05-30-2024, 03:35 PM - Forum: KC868-AG / AG Pro / AG8 / Z1 - Replies (5)

I press transmit and got the trasmitted msg but it cant control the device, may i know the reasons?

Print this item

  Unable to access my KC868-AG through IP address
Posted by: stam - 05-29-2024, 03:51 PM - Forum: KC868-AG / AG Pro / AG8 / Z1 - Replies (3)

Hi, i can see my KC-868-AG IP address in my router, but i tried typing the IP address into my browser but i cant connect to the device, may i know whats the issue? Thank you.

Print this item

  KC868-H32BS restart
Posted by: hentes - 05-29-2024, 10:19 AM - Forum: KC868-HxB series Smart Controller - Replies (5)

I have a KC868-H32BS and after restarting Home Assistant all entities from KC868-H32BS are unavailable. After power cycling the KC868-H32BS all entities are coming back. Is it possible to restart the KC868-H32BS with an MQTT command? 
Any other alternatives to resolve this situation?

Thank you

Print this item

  PWM Output on KC868-A8
Posted by: claudius - 05-29-2024, 07:41 AM - Forum: KC868-A8 - Replies (8)

I am using the KC868-A8.
I need at least ONE - preferably two PWM outputs from the KC868-A8.
Any idea except dismounting two(four) relays??

Print this item

  Arduino source code for A32 Pro - UDP with Ethernet chip W5500
Posted by: admin - 05-29-2024, 04:24 AM - Forum: KC868-A32/A32 Pro - No Replies

before run code, you need to install "AsyncUDP_ESP32_SC_Ethernet" arduino library.
   
   

Code:
/****************************************************************************************************************************
  Async_UdpClient.ino

  AsyncUDP_ESP32_SC_Ethernet is a Async UDP library for the ESP32_SC_Ethernet (ESP32S2/S3/C3 + LwIP W5500 / W6100 / ENC28J60)

  Based on and modified from ESPAsyncUDP Library (https://github.com/me-no-dev/ESPAsyncUDP)
  Built by Khoi Hoang https://github.com/khoih-prog/AsyncUDP_ESP32_SC_Ethernet
  Licensed under GPLv3 license
*****************************************************************************************************************************/

#if !( defined(ESP32) )
  #error This code is designed for (ESP32S2/S3/C3 + LwIP W5500, W6100 or ENC28J60) to run on ESP32 platform! Please check your Tools->Board setting.
#endif

#include <Arduino.h>

#define USING_W5500           true
#define USING_W6100           false
#define USING_ENC28J60        false

#if !USING_W5500 && !USING_W6100 && !USING_ENC28J60
  #undef USING_W5500
  #define USING_W5500           true
#endif

#define ASYNC_UDP_ESP32_SC_ETHERNET_DEBUG_PORT      Serial

// Use from 0 to 4. Higher number, more debugging messages and memory usage.
#define _ASYNC_UDP_ESP32_SC_ETHERNET_LOGLEVEL_      4

//////////////////////////////////////////////////////////

#if USING_W5500

  #define ESP32_Ethernet_onEvent            ESP32_W5500_onEvent
  #define ESP32_Ethernet_waitForConnect     ESP32_W5500_waitForConnect

  // For ESP32_S3
  // Optional values to override default settings
  // Don't change unless you know what you're doing
  //#define ETH_SPI_HOST        SPI3_HOST
  //#define SPI_CLOCK_MHZ       25
 
  // Must connect INT to GPIOxx or not working
  #define INT_GPIO            41
 
  #define MISO_GPIO           40
  #define MOSI_GPIO           44
  #define SCK_GPIO            42
  #define CS_GPIO             39

  // For ESP32_C3
  // Optional values to override default settings
  // Don't change unless you know what you're doing
  //#define ETH_SPI_HOST        SPI2_HOST
  //#define SPI_CLOCK_MHZ       25
 
  // Must connect INT to GPIOxx or not working
  //#define INT_GPIO            10
 
  //#define MISO_GPIO           5
  //#define MOSI_GPIO           6
  //#define SCK_GPIO            4
  //#define CS_GPIO             7

  //////////////////////////////////////////////////////////

#elif USING_W6100

  #define ESP32_Ethernet_onEvent            ESP32_W6100_onEvent
  #define ESP32_Ethernet_waitForConnect     ESP32_W6100_waitForConnect

  // For ESP32_S3
  // Optional values to override default settings
  // Don't change unless you know what you're doing
  //#define ETH_SPI_HOST        SPI3_HOST
  //#define SPI_CLOCK_MHZ       25
 
  // Must connect INT to GPIOxx or not working
  //#define INT_GPIO            4
 
  //#define MISO_GPIO           13
  //#define MOSI_GPIO           11
  //#define SCK_GPIO            12
  //#define CS_GPIO             10

  // For ESP32_C3
  // Optional values to override default settings
  // Don't change unless you know what you're doing
  //#define ETH_SPI_HOST        SPI2_HOST
  //#define SPI_CLOCK_MHZ       25
 
  // Must connect INT to GPIOxx or not working
  //#define INT_GPIO            10
 
  //#define MISO_GPIO           5
  //#define MOSI_GPIO           6
  //#define SCK_GPIO            4
  //#define CS_GPIO             7

  //////////////////////////////////////////////////////////
 
#else   // #if USING_W5500

  //////////////////////////////////////////////////////////

  // For ENC28J60

  #define ESP32_Ethernet_onEvent            ESP32_ENC_onEvent
  #define ESP32_Ethernet_waitForConnect     ESP32_ENC_waitForConnect

  // Optional values to override default settings
  // Don't change unless you know what you're doing
  //#define ETH_SPI_HOST        SPI2_HOST
  //#define SPI_CLOCK_MHZ       8
 
  // Must connect INT to GPIOxx or not working
  //#define INT_GPIO            4
 
  //#define MISO_GPIO           13
  //#define MOSI_GPIO           11
  //#define SCK_GPIO            12
  //#define CS_GPIO             10

  //////////////////////////////////////////////////////////

#endif    // #if USING_W5500

//////////////////////////////////////////////////////////

#include <AsyncUDP_ESP32_SC_Ethernet.h>

IPAddress remoteIPAddress = IPAddress(192, 168, 3, 101);

#define UDP_REMOTE_PORT         5698

/////////////////////////////////////////////

// Enter a MAC address and IP address for your controller below.
#define NUMBER_OF_MAC      20

byte mac[][NUMBER_OF_MAC] =
{
  { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0x01 },
  { 0xDE, 0xAD, 0xBE, 0xEF, 0xBE, 0x02 },
  { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0x03 },
  { 0xDE, 0xAD, 0xBE, 0xEF, 0xBE, 0x04 },
  { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0x05 },
  { 0xDE, 0xAD, 0xBE, 0xEF, 0xBE, 0x06 },
  { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0x07 },
  { 0xDE, 0xAD, 0xBE, 0xEF, 0xBE, 0x08 },
  { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0x09 },
  { 0xDE, 0xAD, 0xBE, 0xEF, 0xBE, 0x0A },
  { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0x0B },
  { 0xDE, 0xAD, 0xBE, 0xEF, 0xBE, 0x0C },
  { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0x0D },
  { 0xDE, 0xAD, 0xBE, 0xEF, 0xBE, 0x0E },
  { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0x0F },
  { 0xDE, 0xAD, 0xBE, 0xEF, 0xBE, 0x10 },
  { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0x11 },
  { 0xDE, 0xAD, 0xBE, 0xEF, 0xBE, 0x12 },
  { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0x13 },
  { 0xDE, 0xAD, 0xBE, 0xEF, 0xBE, 0x14 },
};

// Select the IP address according to your local network
IPAddress myIP(192, 168, 3, 232);
IPAddress myGW(192, 168, 3, 1);
IPAddress mySN(255, 255, 255, 0);

// Google DNS Server IP
IPAddress myDNS(8, 8, 8, 8);

/////////////////////////////////////////////

AsyncUDP udp;

void parsePacket(AsyncUDPPacket packet)
{
  Serial.print("UDP Packet Type: ");
  Serial.print(packet.isBroadcast() ? "Broadcast" : packet.isMulticast() ? "Multicast" : "Unicast");
  Serial.print(", From: ");
  Serial.print(packet.remoteIP());
  Serial.print(":");
  Serial.print(packet.remotePort());
  Serial.print(", To: ");
  Serial.print(packet.localIP());
  Serial.print(":");
  Serial.print(packet.localPort());
  Serial.print(", Length: ");
  Serial.print(packet.length());
  Serial.print(", Data: ");
  Serial.write(packet.data(), packet.length());
  Serial.println();
  //reply to the client
  packet.printf("Got %u bytes of data", packet.length());
}

void initEthernet()
{
  UDP_LOGWARN(F("Default SPI pinout:"));
  UDP_LOGWARN1(F("SPI_HOST:"), ETH_SPI_HOST);
  UDP_LOGWARN1(F("MOSI:"), MOSI_GPIO);
  UDP_LOGWARN1(F("MISO:"), MISO_GPIO);
  UDP_LOGWARN1(F("SCK:"),  SCK_GPIO);
  UDP_LOGWARN1(F("CS:"),   CS_GPIO);
  UDP_LOGWARN1(F("INT:"),  INT_GPIO);
  UDP_LOGWARN1(F("SPI Clock (MHz):"), SPI_CLOCK_MHZ);
  UDP_LOGWARN(F("========================="));

  ///////////////////////////////////

  // To be called before ETH.begin()
  ESP32_Ethernet_onEvent();

  // start the ethernet connection and the server:
  // Use DHCP dynamic IP and random mac
  //bool begin(int MISO_GPIO, int MOSI_GPIO, int SCLK_GPIO, int CS_GPIO, int INT_GPIO, int SPI_CLOCK_MHZ,
  //           int SPI_HOST, uint8_t *W6100_Mac = W6100_Default_Mac);
  ETH.begin( MISO_GPIO, MOSI_GPIO, SCK_GPIO, CS_GPIO, INT_GPIO, SPI_CLOCK_MHZ, ETH_SPI_HOST );
  //ETH.begin( MISO_GPIO, MOSI_GPIO, SCK_GPIO, CS_GPIO, INT_GPIO, SPI_CLOCK_MHZ, ETH_SPI_HOST, mac[millis() % NUMBER_OF_MAC] );

  // Static IP, leave without this line to get IP via DHCP
  //bool config(IPAddress local_ip, IPAddress gateway, IPAddress subnet, IPAddress dns1 = 0, IPAddress dns2 = 0);
  //ETH.config(myIP, myGW, mySN, myDNS);

  ESP32_Ethernet_waitForConnect();

  ///////////////////////////////////
}

////////////////////////////////////

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

  while (!Serial && (millis() < 5000));

  delay(500);

  Serial.print(F("\nStart Async_UDPClient on "));
  Serial.print(ARDUINO_BOARD);
  Serial.print(F(" with "));
  Serial.println(SHIELD_TYPE);

#if USING_W5500
  Serial.println(WEBSERVER_ESP32_SC_W5500_VERSION);
#elif USING_W6100
  Serial.println(WEBSERVER_ESP32_SC_W6100_VERSION); 
#else
  Serial.println(WEBSERVER_ESP32_SC_ENC_VERSION);
#endif
 
  Serial.println(ASYNC_UDP_ESP32_SC_ETHERNET_VERSION);

  Serial.setDebugOutput(true);

  ///////////////////////////////////

  initEthernet();

  ///////////////////////////////////

  // Client address
  Serial.print("Async_UDPClient started @ IP address: ");
  Serial.println(ETH.localIP());

  if (udp.connect(remoteIPAddress, UDP_REMOTE_PORT))
  {
    Serial.println("UDP connected");

    udp.onPacket([](AsyncUDPPacket packet)
    {
      parsePacket( packet);
    });

    //Send unicast
    udp.print("Hello Server!");
  }
}

void loop()
{
  delay(2000);
  //Send broadcast on port UDP_REMOTE_PORT = 1234
  udp.broadcastTo("Anyone here?", UDP_REMOTE_PORT);

}

Print this item

  KC868-A8 + KCS + iiC + PCF8574 + TUYA
Posted by: Vall2KAS - 05-28-2024, 11:50 AM - Forum: KC868-A series and Uair Smart Controller - Replies (3)

Dear ALL,
I plan to connect via iic PCF8574 - 4 input - 4 output.
Question: How (or) will the KCS firmware find the PCF8574 and connect these input-outputs to the TUYA? I will buy a TUYA license.

Print this item

  "KCS" v1.0.7 firmware for A32 Pro controller
Posted by: admin - 05-28-2024, 02:44 AM - Forum: "KCS" v2 firmware system - No Replies

improvment:
1. changed process worm momory size.
2. added different delay time when turn ALL relay ON

there are some different files for v1.0.7. delay time: 1ms, 5ms, 10ms, 50ms    4 version.

just added different delay time when turn ON all 32 channel relay output, you can chose by yourself. added the delay time will protect your power system, because if you have connected 32 channel contactor work at the same time,it will cause instantaneous impact on the power grid.


.zip   A32PRO_V1.0.7_1ms.zip (Size: 777.64 KB / Downloads: 659)

.zip   A32PRO_V1.0.7_5ms.zip (Size: 777.7 KB / Downloads: 688)

.zip   A32PRO_V1.0.7_10ms.zip (Size: 777.7 KB / Downloads: 707)

.zip   A32PRO_V1.0.7_50ms.zip (Size: 777.63 KB / Downloads: 690)

Print this item

  KC868-A4 USB not detected by computer
Posted by: BogdanBBB - 05-27-2024, 02:53 PM - Forum: KC868-A series and Uair Smart Controller - Replies (4)

Hi,

Brand new board, I plug it in > the computer doesn't "see" it. What I've tried so far:
- different power sources
- different USB-C data cables
- reinstalled USB drivers
- 3 different computers (all running different versions of macos)
All of the above tested with a working A8 board that I have in use, so it's definitely not the cable/power adapter/drivers.
Another thing that is strange: as soon as I power it up 3 of the four relays engage and stay ON that until I power it off.

Please help. I just want to install Tasmota on it.
Thank you!

   

Nevermind... I tried another random cable and it finally worked! For others who might be in the same situation: I used a USB-A to USB-C cable with a USB-C dongle to plug into the macbook.

Print this item