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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 5,368
» Latest member: Alan.llm
» Forum threads: 2,574
» Forum posts: 13,304

Full Statistics

Online Users
There are currently 50 online users.
» 1 Member(s) | 31 Guest(s)
Bing, Bytespider, Crawl, Google, PetalBot, Semrush, Yandex, bot, xarouli5

Latest Threads
change wake up name
Forum: KinCony AS
Last Post: gal
6 hours ago
» Replies: 12
» Views: 73
A32 Pro ESPHome yaml incl...
Forum: KC868-A32/A32 Pro
Last Post: xarouli5
7 hours ago
» Replies: 17
» Views: 181
Need help with configurat...
Forum: KC868-HxB series Smart Controller
Last Post: admin
9 hours ago
» Replies: 32
» Views: 392
ESP32 S3 set up issue
Forum: Extender module
Last Post: admin
Yesterday, 11:43 PM
» Replies: 10
» Views: 63
KC868-A8 Schematic
Forum: KC868-A8
Last Post: admin
Yesterday, 11:40 PM
» Replies: 7
» Views: 46
"KCS" v2.2.8 firmware BIN...
Forum: "KCS" firmware system
Last Post: admin
Yesterday, 11:38 PM
» Replies: 2
» Views: 167
Dimensions/drawings of bo...
Forum: Schematic and diagram
Last Post: admin
Yesterday, 11:37 PM
» Replies: 1
» Views: 21
how to use AS ESP32-S3 vo...
Forum: KinCony AS
Last Post: admin
12-16-2024, 10:55 PM
» Replies: 12
» Views: 447
Problem with IFTTT automa...
Forum: "KCS" firmware system
Last Post: admin
12-16-2024, 10:53 PM
» Replies: 5
» Views: 34
M16 SHT31 sensor disconne...
Forum: KC868-M16 / M1 / MB / M30
Last Post: bsarra
12-16-2024, 08:36 PM
» Replies: 4
» Views: 39

  Help with KC868-A8 and traditional wall switch
Posted by: ogo - 08-06-2024, 04:38 PM - Forum: KC868-A series and Uair Smart Controller - Replies (8)

Hi,

I've recently acquired a KC868-A8, and successfully configured it with ESPHome and HomeAssistant. I'll be using a few of them to automate my new home, but first I'm trying things.

I'd like to use the unit to control some lights, which should be able to use with traditional wall switches, even if I'd remove the unit or it was failing (meaning not using the digital inputs).

Is it possible to do something like the following diagram, but changing the last switch for one of the relays?

[Image: 309ff1d702969e62f0523a48c5c3fdf6193cffdc.png]


If it is possible, how should I do it? COM to the light, and then NC, and NO to the 4-way switch? My goal is that when I use the wall switch or change the status of the relay, to toggle the state of the light.

Thanks!

Print this item

  H32B firmware download tool on Windows 11
Posted by: xray - 08-04-2024, 04:13 PM - Forum: KC868-HxB series Smart Controller - Replies (8)

Hello Kincony,

Do you have a working version of firmware download tool for Windows 11?

I'm getting an error message when I click on "Open Serial Port" in  "KC868 Controller Bootloader.exe" GUI on Windows 11.



Code:
System.IO.Ports.InternalResources.WinIOError(Int32 errorCode, String str)
   a következő helyen: System.IO.Ports.SerialStream.InitializeDCB(Int32 baudRate, Parity parity, Int32 dataBits, StopBits stopBits, Boolean discardNull)
   a következő helyen: System.IO.Ports.SerialStream..ctor(String portName, Int32 baudRate, Parity parity, Int32 dataBits, StopBits stopBits, Int32 readTimeout, Int32 writeTimeout, Handshake handshake, Boolean dtrEnable, Boolean rtsEnable, Boolean discardNull, Byte parityReplace)
   a következő helyen: System.IO.Ports.SerialPort.Open()
   a következő helyen: 上位机.Form1.btn_openser_Click(Object sender, EventArgs e)
   a következő helyen: System.Windows.Forms.Control.OnClick(EventArgs e)
   a következő helyen: System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   a következő helyen: System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   a következő helyen: System.Windows.Forms.Control.WndProc(Message& m)
   a következő helyen: System.Windows.Forms.ButtonBase.WndProc(Message& m)
   a következő helyen: System.Windows.Forms.Button.WndProc(Message& m)
   a következő helyen: System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Betöltött szerelvények **************
mscorlib
    Szerelvény verziója: 4.0.0.0
    Win32-verzió: 4.8.9256.0 built by: NET481REL1LAST_B
    Kódbázis: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
上位机
    Szerelvény verziója: 1.0.0.0
    Win32-verzió: 1.0.0.0
    Kódbázis: file:///C:/Users/Username/Downloads/kincony/KC868%20Controller%20Bootloader.exe
----------------------------------------
System.Windows.Forms
    Szerelvény verziója: 4.0.0.0
    Win32-verzió: 4.8.9251.0 built by: NET481REL1LAST_C
    Kódbázis: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Szerelvény verziója: 4.0.0.0
    Win32-verzió: 4.8.9251.0 built by: NET481REL1LAST_C
    Kódbázis: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Szerelvény verziója: 4.0.0.0
    Win32-verzió: 4.8.9032.0 built by: NET481REL1
    Kódbázis: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
    Szerelvény verziója: 4.0.0.0
    Win32-verzió: 4.8.9032.0 built by: NET481REL1
    Kódbázis: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
    Szerelvény verziója: 4.0.0.0
    Win32-verzió: 4.8.9241.0 built by: NET481REL1LAST_C
    Kódbázis: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
    Szerelvény verziója: 4.0.0.0
    Win32-verzió: 4.8.9032.0 built by: NET481REL1
    Kódbázis: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Accessibility
    Szerelvény verziója: 4.0.0.0
    Win32-verzió: 4.8.9032.0 built by: NET481REL1
    Kódbázis: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
System.Windows.Forms.resources
    Szerelvény verziója: 4.0.0.0
    Win32-verzió: 4.8.9032.0 built by: NET481REL1
    Kódbázis: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_hu_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------
mscorlib.resources
    Szerelvény verziója: 4.0.0.0
    Win32-verzió: 4.8.9032.0 built by: NET481REL1
    Kódbázis: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_hu_b77a5c561934e089/mscorlib.resources.dll
----------------------------------------



Attached Files Image(s)
   
Print this item

  Custom ESPHome firmware and Tuya integration
Posted by: Stouf - 08-04-2024, 12:10 AM - Forum: KC868-A6 - Replies (19)

Hello,
I am trying to use your librairy but seem to always have the same compilation error, using the exemple or my own code. Maybe you have an idea of what it can be please?
(of course I have a license for the product, hc868-a6, but almost sure it's not related)



Code:
src/esphome/components/tuya_iot/tuya_iot_component.cpp: In lambda function:
src/esphome/components/tuya_iot/tuya_iot_component.cpp:167:96: error: invalid initialization of reference of type 'const json_parse_t&' {aka 'const std::function<bool(ArduinoJson6185_D1::ObjectRef)>&'} from expression of type 'esphome::tuya_iot::TuyaIotComponent::subscribe_json(const string&, const mqtt_json_callback_t&, uint8_t)::<lambda(const string&, const string&)>::<lambda(ArduinoJson::JsonObject)>'
         json::parse_json(payload, [topic, callback](JsonObject root) { callback(topic, root); });
                                                                                                ^
In file included from src/esphome.h:21,
                 from src/esphome/components/tuya_iot/tuya_iot_component.h:3,
                 from src/esphome/components/tuya_iot/tuya_iot_component.cpp:1:
src/esphome/components/json/json_util.h:26:6: note: in passing argument 2 of 'bool esphome::json::parse_json(const string&, const json_parse_t&)'
bool parse_json(const std::string &data, const json_parse_t &f);
      ^~~~~~~~~~
Compiling .pioenvs/tuya-test/src/esphome/components/wifi/wifi_component_esp8266.cpp.o
*** [.pioenvs/tuya-test/src/esphome/components/tuya_iot/tuya_iot_component.cpp.o] Error 1
========================= [FAILED] Took 55.72 seconds =========================

Thank you very much

Print this item

  No AP wifi
Posted by: rroca - 08-02-2024, 07:43 PM - Forum: KC868-A6 - Replies (1)

I've just bought the KC868-A6 and after powering it with 12V, I do see a red led just near the 12V intput, so has power, but I don't get any wifi to start. I was expecting the board in AP mode. (I was assuyming that's the way to start).

I tried to push S1 & S2 buttons ofr > 10 secs, but the same.

Is the board I've got faulty? What can I so?

Print this item

  Dimensions for KC868-E16 V2
Posted by: lulu01 - 08-02-2024, 12:10 PM - Forum: Schematic and diagram - Replies (3)

Hello,

do you have the exact dimensions (H x h x l) for the KC868-E16 V2 board? I'm especially interested in knowing how much it protrudes towards the front - the minimum distance from the DIN rail that I need to have available.

Thank you!

Print this item

  KinCony ESP32 Tuya IoT adapter and Tuya app
Posted by: Dana - 08-01-2024, 12:07 PM - Forum: KC868-HxB series Smart Controller - Replies (1)

Good evening, 
I am using Kincony kc868-atc v1 board, to connect my modbus device, I want to interface it with tuya application.
I want to build my own interface, but all the tutorials uses a ready interface. the other tutorials suggest burning the authorization to an ESP module so it can interface with tuya platform, but in our case we have the CBU-IPEX module, how can I build an interface on tuya, does it require licensing?

Also, does the  kincony esp32 bin file firmware interfere with the arduino file? 

thank you

Print this item

  RFID reader
Posted by: diegoruales@gmail.com - 07-31-2024, 11:20 PM - Forum: KC868-A8 - Replies (6)

Hi

please guide me in the right direction

i bought a kc868-A8  and  i want to add  RFID READER ;  my code working in normal ESP32 NODEMCU IS

Code:
#include <SPI.h>
#include <MFRC522.h>

#define RST_PIN 9 // Pin para el RST de los lectores RFID

// Pines SS para los 6 lectores RFID
#define SS_PIN1 10
#define SS_PIN2 11
#define SS_PIN3 12
#define SS_PIN4 13
#define SS_PIN5 14
#define SS_PIN6 15

// Instancias de los lectores RFID
MFRC522 rfid1(SS_PIN1, RST_PIN);
MFRC522 rfid2(SS_PIN2, RST_PIN);
MFRC522 rfid3(SS_PIN3, RST_PIN);
MFRC522 rfid4(SS_PIN4, RST_PIN);
MFRC522 rfid5(SS_PIN5, RST_PIN);
MFRC522 rfid6(SS_PIN6, RST_PIN);

// Variables para el temporizador
unsigned long previousMillis = 0; // Almacena el último tiempo en que se imprimió el mensaje
const long interval = 10000;      // Intervalo de 10 segundos (10,000 milisegundos)

void setup()
{
  Serial.begin(115200); // Inicializar comunicación serial
  SPI.begin();          // Inicializar el bus SPI

  // Inicializar cada lector RFID
  rfid1.PCD_Init();
  rfid2.PCD_Init();
  rfid3.PCD_Init();
  rfid4.PCD_Init();
  rfid5.PCD_Init();
  rfid6.PCD_Init();

  Serial.println("RFID readers initialized");
}

// Función para leer datos del RFID y mostrar el UID
void readRFID(MFRC522 &rfid, const char *lector)
{
  // Verificar si hay una nueva tarjeta presente
  if (!rfid.PICC_IsNewCardPresent())
    return;

  // Seleccionar una tarjeta
  if (!rfid.PICC_ReadCardSerial())
    return;

  // Mostrar el UID de la tarjeta
  Serial.print("UID de la tarjeta en ");
  Serial.print(lector);
  Serial.print(": ");
  for (byte i = 0; i < rfid.uid.size; i++)
  {
    Serial.print(rfid.uid.uidByte[i] < 0x10 ? " 0" : " ");
    Serial.print(rfid.uid.uidByte[i], HEX);
  }
  Serial.println();

  // Detener la comunicación con la tarjeta
  rfid.PICC_HaltA();
  rfid.PCD_StopCrypto1();
}

void loop()
{
  // Leer cada lector RFID
  readRFID(rfid1, "Lector 1");
  readRFID(rfid2, "Lector 2");
  readRFID(rfid3, "Lector 3");
  readRFID(rfid4, "Lector 4");
  readRFID(rfid5, "Lector 5");
  readRFID(rfid6, "Lector 6");

  // Imprimir algo cada 10 segundos
  unsigned long currentMillis = millis();
  if (currentMillis - previousMillis >= interval)
  {
    previousMillis = currentMillis;
    Serial.println("Han pasado 10 segundos.");
  }

  delay(1000); // Retardo para evitar lecturas rápidas consecutivas
}

i dont care about using ethernet , i don t need ethernet;   please tell me how to address the pins to use MOSI MISO SCLK AND CS required for  MFRC522 library

thanks a lot

Print this item

  KC-868 A16 output strange behaviour
Posted by: emile - 07-31-2024, 09:14 AM - Forum: KC868-A16 - Replies (16)

I've installed a KC868-a16 and used the 12v powersupply delivered by Kincony. For output's I use a seperate 24v power supply. The board is flashed by using ESPHOME+HomeAssistant.

5 inputs+outputs are in use. 

The problem occurs when using the default code (by Kincony) and when I use a modified version. 

The problem:
- When output 1,2,3,4 switched on, the corresponding LED's switch on and my relays switch on. 
- When switching output 5 on, all LED's switch off, except5. all relays stay on, but cannot be controlled by switching off the output (1,2,3,4).

the same issue occurs when I switch 1,2,4,5 on. Then output 3 starts the problem. 

my thoughts: 
- I2C adresses seem to be ok (v1.6 board)
- no library installed

Please let me know

Print this item

  Need Help Getting Started with ESPHome and Home Assistant Integration
Posted by: benjonson - 07-29-2024, 09:25 AM - Forum: Getting Started with ESPHome and Home Assistant - Replies (1)

Hi everyone Rolleyes

I am diving into home automation for the first time and just got my hands on some Kincony devices. I'm excited to start building my smart home with ESPHome and Home Assistant but could use some guidance.

I've followed the basic setup instructions but I'm hitting a few roadblocks. I'd appreciate any tips on:-

  • Flashing Firmware: What's the best way to install ESPHome firmware on Kincony devices? Are there specific settings I should know about?
  • Configuration Files: Can anyone share example YAML configuration files for common Kincony devices? I need help understanding how to set up sensors, switches, etc.
  • Home Assistant Integration: How do I smoothly integrate my flashed and configured devices into Home Assistant? Any tips for a reliable connection?
  • Troubleshooting: What are common issues to watch out for during setup?
I'm eager to learn and get my smart home up and running. 

Thanks in advance for any help!

Respected community member! Heart

Print this item

  Need Help Getting Started with ESPHome and Home Assistant Integration
Posted by: benjonson - 07-29-2024, 09:20 AM - Forum: Getting Started with ESPHome and Home Assistant - Replies (8)

Hello guys! :)

I am excited to start integrating them with ESPHome and Home Assistant but I am finding the initial setup a bit challenging.

I have gone through the basic installation guides but I could use some help with the following:-

  • What are the best practices for flashing ESPHome firmware onto Kincony devices? Are there any specific settings or configurations I should be aware of?
  • Could anyone share sample YAML configuration files for common Kincony devices? I am looking for examples to better understand how to define sensors, switches and other components.
  • Once the devices are flashed and configured, what's the best way to integrate them into Home Assistant? Are there any tips for ensuring a smooth connection and reliable performance?
  • Any advice on common issues or pitfalls to avoid during this setup process?

I also check this:- KC868-H32B Pro with Home Assistantlooker But I have not found any solution. Could anyone guide me about this? I appreciate any guidance or resources you can provide. Looking forward to getting my smart home up and running with your help!

Thanks in advance :shy:

Respected community member

Print this item