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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 9,085
» Latest member: jessekendall147
» Forum threads: 3,989
» Forum posts: 20,263

Full Statistics

Online Users
There are currently 58 online users.
» 0 Member(s) | 42 Guest(s)
Amazonbot, Applebot, Baidu, Bytespider, Semrush, bot

Latest Threads
"KCS" v3.25.0 firmware BI...
Forum: "KCS" v3 firmware
Last Post: admin
1 hour ago
» Replies: 4
» Views: 218
problem with kc868 has v2
Forum: News
Last Post: admin
1 hour ago
» Replies: 6
» Views: 30
Tuya licence for "KCS" fi...
Forum: "KCS" v2 firmware system
Last Post: Aditiya
9 hours ago
» Replies: 86
» Views: 51,700
Cant flash esphom
Forum: B16M
Last Post: admin
Yesterday, 10:44 AM
» Replies: 12
» Views: 653
N30 - Modbus-TCP
Forum: "KCS" v3 firmware
Last Post: admin
Yesterday, 01:58 AM
» Replies: 4
» Views: 84
Las Firmware ?
Forum: KC868-A16
Last Post: admin
05-22-2026, 12:15 PM
» Replies: 3
» Views: 64
CRC Errors with ESP Home ...
Forum: N60
Last Post: admin
05-21-2026, 07:43 AM
» Replies: 3
» Views: 14
KC868-A8 ethernet work wi...
Forum: KC868-A8
Last Post: admin
05-21-2026, 12:23 AM
» Replies: 9
» Views: 7,392
RS485
Forum: DIY Project
Last Post: admin
05-21-2026, 12:21 AM
» Replies: 4
» Views: 46
N30 no Energy (kWh)
Forum: "KCS" v3 firmware
Last Post: admin
05-19-2026, 10:21 PM
» Replies: 13
» Views: 175

  KC868-A6 DS1307 Issue
Posted by: Senapsys - 10-23-2022, 06:50 AM - Forum: KC868-A series and Uair Smart Controller - Replies (20)

Hi there

I'm having an issue with getting the KC868-A6 RTC working.

I've taken the example code in the A6 thread as per below, and it returns an error of "Couldn't find RTC".

I've made sure that the I2C SDA and SCL pins are set correctly in the NodeMCU-32S config file.

The RTClib I've used is the Adafruit library below:
https://github.com/adafruit/RTClib

The battery has been installed into the socket on the board.  I've successfully coded up things so that the PCF8574 outputs and inputs to work so I know that the I2C SDA and SCL are working.

The comments in the example code mention the Wire lib, so I've tried including this as well, but it didn't fix the problem.

Any thoughts would be appreciated.


/*KC868-A6 DS1307 CODE*/
// Date and time functions using a DS1307 RTC connected via I2C and Wire lib
#include "RTClib.h"

RTC_DS1307 rtc;

char daysOfTheWeek[7][12] = {"Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"};

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

#ifndef ESP8266
  while (!Serial); // wait for serial port to connect. Needed for native USB
#endif

  if (! rtc.begin()) {
    Serial.println("Couldn't find RTC");
    Serial.flush();
    while (1) delay(10);
  }

  if (! rtc.isrunning()) {
    Serial.println("RTC is NOT running, let's set the time!");
    // When time needs to be set on a new device, or after a power loss, the
    // following line sets the RTC to the date & time this sketch was compiled
    rtc.adjust(DateTime(F(__DATE__), F(__TIME__)));
    // This line sets the RTC with an explicit date & time, for example to set
    // January 21, 2014 at 3am you would call:
    // rtc.adjust(DateTime(2014, 1, 21, 3, 0, 0));
  }

  // When time needs to be re-set on a previously configured device, the
  // following line sets the RTC to the date & time this sketch was compiled
  // rtc.adjust(DateTime(F(__DATE__), F(__TIME__)));
  // This line sets the RTC with an explicit date & time, for example to set
  // January 21, 2014 at 3am you would call:
  // rtc.adjust(DateTime(2014, 1, 21, 3, 0, 0));
}

void loop () {
    DateTime now = rtc.now();

    Serial.print(now.year(), DEC);
    Serial.print('/');
    Serial.print(now.month(), DEC);
    Serial.print('/');
    Serial.print(now.day(), DEC);
    Serial.print(" (");
    Serial.print(daysOfTheWeek[now.dayOfTheWeek()]);
    Serial.print(") ");
    Serial.print(now.hour(), DEC);
    Serial.print(':');
    Serial.print(now.minute(), DEC);
    Serial.print(':');
    Serial.print(now.second(), DEC);
    Serial.println();

    Serial.print(" since midnight 1/1/1970 = ");
    Serial.print(now.unixtime());
    Serial.print("s = ");
    Serial.print(now.unixtime() / 86400L);
    Serial.println("d");

    // calculate a date which is 7 days, 12 hours, 30 minutes, and 6 seconds into the future
    DateTime future (now + TimeSpan(7,12,30,6));

    Serial.print(" now + 7d + 12h + 30m + 6s: ");
    Serial.print(future.year(), DEC);
    Serial.print('/');
    Serial.print(future.month(), DEC);
    Serial.print('/');
    Serial.print(future.day(), DEC);
    Serial.print(' ');
    Serial.print(future.hour(), DEC);
    Serial.print(':');
    Serial.print(future.minute(), DEC);
    Serial.print(':');
    Serial.print(future.second(), DEC);
    Serial.println();

    Serial.println();
    delay(3000);
}

Print this item

  KC868-E8T ESP32 Tuya 4G Energy Meter Relay Module Released
Posted by: admin - 10-23-2022, 12:51 AM - Forum: News - No Replies

We have designed KC868-E8T with Tuya module , 4G LTE module and ESP32, the 8 channel removable relay board.

You can integrate KC868-E8T to home assistant by ESPHome use follow resource:

a. 8 relay relay, 8 channel digital input for switch panel. 4 channel AC220V energy meter (BL0939 energy chip) for load's voltage, current, power, power consumption. DS18B20 temperature sensor.

b. support use Tuya mobile phone application remote control 8 relay by internet , monitor 4 channel load's energy meter and temperature by DS18B20 sensor.


[Image: KC868-E8T-1_01.jpg]
[Image: KC868-E8T-1_02.jpg]
[Image: KC868-E8T-1_03.jpg]
[Image: KC868-E8T-1_04.jpg]

Print this item

  Help H32B Reset
Posted by: rwcidade - 10-22-2022, 05:20 PM - Forum: KC868-HxB series Smart Controller - Replies (14)

Hello.

I need to know how to completely reset the H23B, Seria number H32B200812520, I don´t have access to it and I can´t configure it for WEB access.
It´s very old firmware, and never been done, which if you have i want update.
I couldn´t find the manual or the PC software on the website kincony.
Thanks

Print this item

  KC868-A6 Relays
Posted by: Senapsys - 10-22-2022, 04:26 AM - Forum: KC868-A series and Uair Smart Controller - Replies (1)

Hi there
I'm trying to get the relays to work on a KC868-A6.
I'm using the KC868-A8 example source code as the basis for this and modified it as shown below:

#include “Arduino.h”
#include “PCF8574.h”

#define I2C_RELAYS_ADR 0x24
PCF8574 pcf(I2C_RELAYS_ADR);

void setup() {
Serial.begin(115200);
Serial.println(F(“Start Kincony KC868-A6 Relays example…”));
pcf.pinMode(P0, OUTPUT);
pcf.pinMode(P1, OUTPUT);
pcf.pinMode(P2, OUTPUT);
pcf.pinMode(P3, OUTPUT);
pcf.pinMode(P4, OUTPUT);
pcf.pinMode(P5, OUTPUT);
Serial.print(“Init PCF8574… “);
if (pcf.begin()){Serial.println(F(“Ok”));}
else {Serial.println(F(“Error”));}
}

void loop() {
pcf.digitalWrite(P0, HIGH);
Serial.print(F(“Relay #”)); Serial.print(P0); Serial.println(F(” ON”));
delay(10000);
pcf.digitalWrite(P0, LOW);
Serial.print(F(“Relay #”)); Serial.print(P0); Serial.println(F(” OFF”));
delay(10000);
}


Using this example, the pcf.begin statement fails and returns "Error".
Looking at the schematic diagram for the KC868-A6, the I2C SDA is set to pin 26, and the SCL is set to pin 23.  By default the PCF8574 library will default to other values, so I tried changing the statement below to the following which matches the format noted in the readme file for the PCF8574 library
 PCF8574 pcf(0x24, 26, 23);

This didn't work either and so I tried the various I2C scanners and they don't find any I2C device.

I've also ensured that the relevant pins_arduino.h file has been edited to reflect the correct SDA and SCL pin values.

One other thing I have noticed is on startup there is a strange error, see below:

ets Jun  8 2016 00:22:57
rst:0x1 (POWERON_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
modeBig GrinIO, clock div:1
load:0x3fff0030,len:1184
load:0x40078000,len:13160
load:0x40080400,len:3036
entry 0x400805e4
E (309) i2c: i2c_set_pin(873): scl an⸮4⸮⸮⸮gpio numbers are the same


The highlighted line in red looks odd but I can't find anything online to help. 

Any assistance would be appreciated.

Print this item

  Switch terminal board H16B relay default controll
Posted by: T920919 - 10-19-2022, 09:50 PM - Forum: KC868-HxB series Smart Controller - Replies (7)

Hi

I would like to have a wall switch status monitored in Home Assistant using Node Red to do automation.  I have this configured and working as per the 4-Wall Switch Wireless remoter video.  I can see the button state change in Node Red using the debug option.
 
However the default behaviour without any programming is for the switch buttons to control the corresponding H16B relays, switch button 1-16 control H16B relays 1-16 directly.
 
After I configured Node Red in HA I can make Switch button 1 turn on H16B relay 2 but is also turns on relay 1, (by default).
 
Is there a way to turn off this default setting so the switch buttons don’t change the H16B relay states unless I configure it in Node Red?
 
Set up is
HA running Node Red
KC868-H16B V4.34  Work Mode: TCP Server for both Ethernet and Wifi
Switch Terminal Board V2.1 connect via Rs232
6 Gang Wall Self Reset Momentary Switch Toggle Button Dry Contact.  Connect via KCom and K1-K6

Any help would be appreciated.

Print this item

  RS485 Esphome
Posted by: janosch1337 - 10-17-2022, 07:42 AM - Forum: KC868-E16S/E16P - Replies (1)

Hey,

i am interested in a tutorial showing how to make multiple esphome kincony devices talk to each other over rs485. is this possible?

i know that you actually do it via homeassistant - but this way it is failsafe.



and the other thing what i want to do is connect a dmx interface via rs485.

https://github.com/andyboeh/esphome-dmx512

is that possible with esphome and the kincony rs485?

Print this item

  Wiring diagram and/or demo code on how to connect I2C devices to A32
Posted by: VanPeerce - 10-16-2022, 11:56 PM - Forum: KC868-A32/A32 Pro - Replies (5)

Are there any examples of how to use the A32 board with an I2C device?  I have 5  SHT30 I2C Temp/Humidity Sensors that I have connected to an ESP32 Dev board and working.  I've upgraded to thge A32 board as everything is integrated but I'm confused how to wire the sensors to the A32 board and read the values. I cannot find documentation that shows how to wire into the GIO pin on the A32 board.   Do you have any example code and/or wiring diagrams on how to connect  these?  Thank you in advance for any advice

Print this item

  KC868-AG learn different remotes and integrade with Home Assistant
Posted by: Dober - 10-16-2022, 09:16 PM - Forum: KC868-AG / AG Pro / AG8 / Z1 - Replies (1)

Hello!

I have a TV, a stereo and a fan with different remotes.

1) How i can make KC868-AG "learn" the remotes.
2) How i integrade them with home assistant.

I saw your video with A/C and i want to do the same with the other devices

Print this item

  KC868-E16T with AC contactor use by Tuya App
Posted by: admin - 10-15-2022, 11:21 PM - Forum: Schematic & diagram & Dimensions of KinCony PCB layout CAD file - Replies (4)

   

Print this item

  KC868-D16 dimmer controller with LED driver
Posted by: admin - 10-15-2022, 11:18 PM - Forum: Schematic & diagram & Dimensions of KinCony PCB layout CAD file - Replies (31)

   

Print this item