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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 8,418
» Latest member: Delhi Night
» Forum threads: 3,665
» Forum posts: 18,975

Full Statistics

Online Users
There are currently 15 online users.
» 0 Member(s) | 7 Guest(s)
AhrefsBot, Amazonbot, bot

Latest Threads
Not able to connect
Forum: KC868-E16S/E16P
Last Post: admin
26 minutes ago
» Replies: 1
» Views: 3
"KCS" v3.19.0 firmware BI...
Forum: "KCS" v3 firmware
Last Post: admin
6 hours ago
» Replies: 0
» Views: 12
flash Kincony software to...
Forum: DIY Project
Last Post: admin
7 hours ago
» Replies: 14
» Views: 81
KC868-A6 - how to connect...
Forum: KC868-A6
Last Post: admin
9 hours ago
» Replies: 10
» Views: 143
F8 physical on device swi...
Forum: F8
Last Post: admin
9 hours ago
» Replies: 3
» Views: 17
Feedback: Product line di...
Forum: Suggestions and feedback on KinCony's products
Last Post: mkai
11 hours ago
» Replies: 0
» Views: 9
flash kc868-a4
Forum: KC868-A series and Uair Smart Controller
Last Post: Sten
Yesterday, 01:09 PM
» Replies: 14
» Views: 561
KC868 A8v3 RF not working...
Forum: KC868-A8v3
Last Post: admin
Yesterday, 10:46 AM
» Replies: 1
» Views: 11
N30 Energy entry not work...
Forum: N30
Last Post: admin
Yesterday, 01:30 AM
» Replies: 30
» Views: 584
KC868-A16 v1 with KCS v2....
Forum: "KCS" v2 firmware system
Last Post: admin
01-11-2026, 11:52 PM
» Replies: 7
» Views: 55

  adding HAv2 into Discoverable MQTT for homeassistant
Posted by: swisstmack25 - 11-07-2025, 10:12 AM - Forum: F24 - Replies (1)

I would like to use the discoverable entity for homeassistant , is it possible that the 485 interface HAv2 can also be adopted this way into home assistant?

Print this item

  KinCony F32 ESP32-S3 16A Removable Relay Board released
Posted by: admin - 11-05-2025, 09:54 PM - Forum: News - Replies (2)

KinCony F32 ESP32 smart controller based on ESP32-S3-WROOM-1U (N16R8) wifi chip. It have 32 manual control switch buttons can turn ON/OFF relay even if system is broken. 32 channel removable OMRON high-quality relay, 4 channel 1-wire GPIOs, 2 free GPIOs, 4 channel analog input ports. One SD card using SPI bus. KinCony F32 include DS3231 high precision RTC clock chip. LCD display will show wifi and ethernet IP address and Tuya connection state. F32 have RS485 port and RF433MHz RF receiver. You can write any code by Arduino IDE / MicroPython / ESP-IDF development tool to ESP32 module. We will supply Arduino / ESP-IDF demo code for different samples. Everyone can modify and change the code for your own smart home automation system project. it support use by ESPHome for home assistant or tasmota firmware(tasmota total support MAX 32channel INPUT+OUTPUT ports) for smart home automation DIY. F32 use KCS v3 firmware, it support home assistant auto discovery function by MQTT, so without write any config code (zero code) for home assistant.
[Image: F32-1.jpg]
Model No. KinCony F32
Description: KinCony 32 Channel ESP32-S3 Removable Relay Controller – F32
Power supply: 12/24V DC (Default install by 12V OMRON relay)
Processor: ESP32-S3-WROOM-1U (N16R8)
Size: 452mm*127mm*62mm
interfaces: Ethernet(RJ45)-LAN 100Mbps IPv4/IPv6,WiFi,RS485,Bluetooth,USB-C,LCD,Tuya Module
RTC: DS3231 high precision chip (battery socket on PCB)
SD Card: SPI bus
Installation method: DIN RAIL
LCD: SSD1306 I2C display
Outputs:
32CH OMRON removable relay, every channel have "COM"(common) and "NO"(normal open) ports.
MAX load 250VAC/16A 30VDC/16A
Inputs:
2CH analog input DC0-5V (A1,A2) 2CH analog input 4-20mA (A3,A4)
32CH dry contact inputs (optocoupler isolation, long distance circuit for MAX 500 meters cable)
3 buttons: 1:ESP32 Reset 2:ESP32 Download 3:Tuya config
1-Wire GPIO: 4CH (with pull-up resistance on PCB)
free GPIO: 2CH (without pull-up resistance on PCB, connect with ESP32 pin directly)
RF receiver socket: 433MHz RF receiver
[Image: F32-2.jpg]

Print this item

  KC868-A8v3 ModBus Temp. Sensor
Posted by: JuDie07 - 11-05-2025, 09:54 AM - Forum: KC868-A series and Uair Smart Controller - Replies (1)

Hello, can I read and display an "RS485 Temperature and Humidity Sensor Modbus RTU Use By SHT30" using KCS v3 (3.15.0)?
Under Sensors “Type,” I can only set TR (RS485) and TS (RS485).

Print this item

  KC868-A6 Flow Control
Posted by: Edomicianoa - 11-04-2025, 04:47 PM - Forum: KC868-A6 - Replies (3)

Prezada Equipe de Suporte Técnico da KinCony,
Estou usando a placa de automação residencial inteligente KC868-A6 V1 4SP .
Preciso saber se é possível usar o controle de fluxo de hardware RTS/CTS (Request To Send / Clear To Send) nas portas seriais RS232 e/ou RS485 integradas .

  • Em caso afirmativo: Poderia especificar quais pinos da placa estão atribuídos aos sinais RTS e CTS para as interfaces RS232 e/ou RS485?
  • Caso a resposta seja NÃO: Você poderia recomendar um modelo alternativo de placa KinCony que suporte o controle de fluxo de hardware RTS/CTS por meio de sua interface RS232?
Agradecemos imensamente sua ajuda para esclarecer as capacidades de hardware da placa KC868-A6.
Muito obrigado, Smile

Print this item

  D16 Dimmer - Set memory value without turning on via MQTT?
Posted by: stansvec - 11-04-2025, 08:48 AM - Forum: KC868-HxB series Smart Controller - Replies (6)

Hello,
Is there an MQTT command to update the D16 dimmer's stored brightness memory value WITHOUT actually turning on the dimmer?

Current behavior:

  • Send
    Code:
    {"dimmer1": {"value": 50}}
    → Light turns on at 50%
  • Send
    Code:
    {"dimmer1": {"value": 0}}
    → Light turns off, hardware remembers 50%
  • Physical button press → Light restores to 50%

What I need:
  • While dimmer is OFF, update the stored memory to a different value (e.g., 30%)
  • So next physical button press turns on at 30%, not 50%
  • Without the light briefly flashing on

Is there a command like
Code:
{"dimmer1": {"memory": 30}}
or similar that only updates the stored value?

Thanks!

Print this item

  WHATS FIRMWARE
Posted by: kamarguinho - 11-03-2025, 11:46 PM - Forum: "KCS" v3 firmware - Replies (7)

Hello, it's been 4 days since this motherboard arrived and I'm trying to get this KC868 E16T-V1.2 working because the access point option doesn't appear. I tried connecting it via cable to see if I could find it on the network, but without success. I can only see it through the USB cable, so I'd like to know which firmware I can install and a step-by-step guide to get it working using Tuya.        

Print this item

  [arduino code examples for F4]-11 digital INPUT trigger OUTPUT directly
Posted by: admin - 11-03-2025, 11:45 PM - Forum: F4 - No Replies

Code:
/*
* Made by KinCony IoT: https://www.kincony.com
*
* This program reads 4 input states from a PCF8574 I/O expander and
* controls a corresponding 4-channel relay module. When an input pin
* is LOW, the corresponding relay is turned ON (LOW means ON for the relay).
*
* Pin Definitions:
* - SDA: GPIO 8
* - SCL: GPIO 18
* - PCF8575 I2C Address: 0x24
*/

#include <Wire.h>
#include <PCF8574.h>

// I2C pins
#define SDA 8
#define SCL 18

// PCF8575 I2C address
#define INPUT_I2C_ADDRESS 0x24   

// Create PCF8575 object
PCF8574 pcf8574_IN(INPUT_I2C_ADDRESS);

void setup() {
  // Initialize I2C communication
  Wire.begin(SDA, SCL);

  // Initialize serial communication
  Serial.begin(115200);

    pcf8574_IN.pinMode(P0, INPUT);
    pcf8574_IN.pinMode(P1, INPUT);
    pcf8574_IN.pinMode(P2, INPUT);
    pcf8574_IN.pinMode(P3, INPUT);
      pcf8574_IN.pinMode(P4, OUTPUT);
    pcf8574_IN.pinMode(P5, OUTPUT);
    pcf8574_IN.pinMode(P6, OUTPUT);
    pcf8574_IN.pinMode(P7, OUTPUT);

  // Initialize PCF8575
  pcf8574_IN.begin();

  // Turn off all relays first (assuming LOW activates the relay)
  for (int i = 4; i < 8; i++) {
    pcf8574_IN.digitalWrite(i, HIGH);  // Set to HIGH to turn off the relay
  }

  delay(50);
}

void loop() {

  if (pcf8574_IN.digitalRead(0)) pcf8574_IN.digitalWrite(4, HIGH); else pcf8574_IN.digitalWrite(4, LOW);
  delay(50);
  if (pcf8574_IN.digitalRead(1)) pcf8574_IN.digitalWrite(5, HIGH); else pcf8574_IN.digitalWrite(5, LOW);       
  delay(50);
  if (pcf8574_IN.digitalRead(2)) pcf8574_IN.digitalWrite(6, HIGH); else pcf8574_IN.digitalWrite(6, LOW);
  delay(50);
  if (pcf8574_IN.digitalRead(3)) pcf8574_IN.digitalWrite(7, HIGH); else pcf8574_IN.digitalWrite(7, LOW);
  delay(50);
}
arduino ino file download:

.zip   11-input-trigger-output.zip (Size: 846 bytes / Downloads: 99)
BIN file (you can use esp32 download tool download to ESP32-S3 with address 0x0 then directly to use) download:

.zip   11-input-trigger-output.ino.merged.zip (Size: 199.41 KB / Downloads: 95)

Print this item

  [arduino code examples for F4]-02 Read digital input ports state
Posted by: admin - 11-03-2025, 11:41 PM - Forum: F4 - No Replies

Code:
/*
* Made by KinCony IoT: https://www.kincony.com
*
* Description:
* This Arduino program reads the state of a 16-channel PCF8574 I/O expander
* and prints the state of all input pins to the Serial Monitor. The state of
* each pin is represented as a bit in a 8-bit value, where each bit corresponds
* to an input pin. The program prints the input state in binary format.
*
* Pin Definitions:
* - SDA: GPIO 21
* - SCL: GPIO 22
* - PCF8575 I2C Address: 0x24
*/

#include "Arduino.h"
#include "PCF8574.h"

// Define I2C pins
#define I2C_SDA 8  // Define SDA pin
#define I2C_SCL 18  // Define SCL pin

// Set I2C address
PCF8574 pcf8574_IN1(0x24); // The I2C address of the PCF8575

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

    // Initialize I2C communication
    Wire.begin(I2C_SDA, I2C_SCL); // Initialize I2C with defined SDA and SCL pins

    pcf8574_IN1.pinMode(P0, INPUT);
    pcf8574_IN1.pinMode(P1, INPUT);
    pcf8574_IN1.pinMode(P2, INPUT);
    pcf8574_IN1.pinMode(P3, INPUT);

    pcf8574_IN1.begin(); // Initialize the PCF8575

    Serial.println("KinCony F4 4 channel input state 0:ON  1:OFF");
}

void loop() {
    uint16_t state = 0;

    // Read the state of each pin (assuming 16 pins)
    for (int pin = 0; pin < 4; pin++) {
        if (pcf8574_IN1.digitalRead(pin)) {
            state |= (1 << pin); // Set the bit for the active pin
        }
    }

    Serial.print("Input state: ");
    Serial.println(state, BIN); // Print the state of inputs in binary

    delay(500); // Delay 500ms
}
arduino ino file download:

.zip   2-digital-input.zip (Size: 879 bytes / Downloads: 99)
BIN file (you can use esp32 download tool download to ESP32-S3 with address 0x0 then directly to use) download:

.zip   2-digital-input.ino.merged.zip (Size: 199.53 KB / Downloads: 105)

Print this item

  [arduino code examples for F4]-01 Turn ON/OFF relay
Posted by: admin - 11-03-2025, 11:40 PM - Forum: F4 - No Replies

Code:
/*
* Made by KinCony IoT: https://www.kincony.com
*
* This program controls a 8-channel relay board via a PCF8574 I/O expander.
* It sequentially turns on each relay and then turns them off in a loop.
*
* Pin Definitions:
* - SDA: GPIO 8
* - SCL: GPIO 18
*
* Delay Time:
* - 200 milliseconds between switching relays
*/

#include <Wire.h>        // Include the Wire library for I2C communication
#include <PCF8574.h>     // Include the PCF8575 library to control the I/O expander

#define SDA 8            // Define the SDA pin
#define SCL 18           // Define the SCL pin
#define DELAY_TIME 200   // Define the delay time in milliseconds

// Set I2C address of the PCF8575 module
#define I2C_ADDRESS 0x24 // I2C address of the PCF8575 module

PCF8574 pcf8574_R1(I2C_ADDRESS); // Create a PCF8575 object with the specified I2C address

void setup() {
  // Initialize I2C communication
  Wire.begin(SDA, SCL); // SDA on GPIO 8, SCL on GPIO 18 (according to your board's configuration)
 
  // Initialize serial communication for debugging (optional)
  Serial.begin(115200);
  Serial.println("PCF8575 Relay Control: Starting...");

    pcf8574_R1.pinMode(P4, OUTPUT);
  pcf8574_R1.pinMode(P5, OUTPUT);
  pcf8574_R1.pinMode(P6, OUTPUT);
  pcf8574_R1.pinMode(P7, OUTPUT);

  // Initialize the PCF8575 module
  pcf8574_R1.begin();

  // Turn off all relays initially (set all pins HIGH)
  for (int i = 4; i < 8; i++) {
    pcf8574_R1.digitalWrite(i, HIGH); // Set all relays to OFF (assuming HIGH means OFF for relays)
  }
}

void loop() {
  // Sequentially turn on each relay
  for (int i = 4; i < 8; i++) {
    pcf8574_R1.digitalWrite(i, LOW);   // Turn on the relay at pin i (LOW means ON for the relay)
    delay(DELAY_TIME);          // Wait for DELAY_TIME milliseconds
  }

  // Sequentially turn off each relay
  for (int i = 4; i < 8; i++) {
    pcf8574_R1.digitalWrite(i, HIGH);  // Turn off the relay at pin i (HIGH means OFF for the relay)
    delay(DELAY_TIME);          // Wait for DELAY_TIME milliseconds
  }
}
arduino ino file download:

.zip   1-relay.zip (Size: 964 bytes / Downloads: 107)
BIN file (you can use esp32 download tool download to ESP32-S3 with address 0x0 then directly to use) download:

.zip   1-relay.ino.merged.zip (Size: 199.39 KB / Downloads: 103)

Print this item

  F4 ESPHome yaml for home assistant with tuya
Posted by: admin - 11-03-2025, 11:39 PM - Forum: F4 - No Replies

Code:
esphome:
  name: f4
  friendly_name: f4
  platformio_options:
    board_build.extra_flags:
      # WIFI_CONTROL_SELF_MODE = 0
      # WIFI_CONTROL_SELF_MODE = 1
      - "-DWIFI_CONTROL_SELF_MODE=1"
esp32:
  board: esp32-s3-devkitc-1
  framework:
    type: arduino
   

external_components:
  - source:
      type: git
      url: https://github.com/hzkincony/esphome-tuya-wifi-mcu
      ref: v1.3.0

# Enable logging

  # hardware_uart: USB_SERIAL_JTAG
# Enable Home Assistant API
api:
  encryption:
    key: "WeVOuL5oNhjXcfzXtTirlOwvtWvCD5yqIxd3oV4es1k="

ethernet:
  type: W5500
  clk_pin: GPIO42
  mosi_pin: GPIO43
  miso_pin: GPIO44
  cs_pin: GPIO41
  interrupt_pin: GPIO2
  reset_pin: GPIO1

i2c:
   - id: bus_a
     sda: 8
     scl: 18
     scan: true
     frequency: 400kHz

pcf8574:
  - id: 'pcf8574_hub_in_1'  # for DI1-DI4 Relay1-Relay4
    i2c_id: bus_a
    address: 0x24

uart:
  - id: uart_1    #RS485
    baud_rate: 9600
    debug:
      direction: BOTH
      dummy_receiver: true
      after:
        timeout: 10ms
    tx_pin: 16
    rx_pin: 17

  - id: tuya_mcu_uart
    tx_pin: GPIO39
    rx_pin: GPIO38
    baud_rate: 9600

tuya_wifi_mcu:
  # tuya mcu product id
  product_id: nnr2qbxrwuleqqgc
  uart_id: tuya_mcu_uart
  wifi_reset_pin: 28
  wifi_led_pin: 16

switch:
  - platform: uart
    uart_id: uart_1
    name: "RS485 Button"
    data: [0x11, 0x22, 0x33, 0x44, 0x55]

  - platform: gpio
    name: "f4-output01"
    id: "f4_output01"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 4
      mode: OUTPUT
      inverted: true
  - platform: tuya_wifi_mcu
    name: f4-output1-tuya
    dp_id: 1
    # hide from homeassistant ui
    internal: true
    # bind other switch, sync state
    bind_switch_id: "f4_output01"

  - platform: gpio
    name: "f4-output02"
    id: "f4_output02"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 5
      mode: OUTPUT
      inverted: true
  - platform: tuya_wifi_mcu
    name: f4-output2-tuya
    dp_id: 2
    # hide from homeassistant ui
    internal: true
    # bind other switch, sync state
    bind_switch_id: "f4_output02"

  - platform: gpio
    name: "f4-output03"
    id: "f4_output03"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 6
      mode: OUTPUT
      inverted: true
  - platform: tuya_wifi_mcu
    name: f4-output3-tuya
    dp_id: 3
    # hide from homeassistant ui
    internal: true
    # bind other switch, sync state
    bind_switch_id: "f4_output03"

  - platform: gpio
    name: "f4-output04"
    id: "f4_output04"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 7
      mode: OUTPUT
      inverted: true
  - platform: tuya_wifi_mcu
    name: f4-output4-tuya
    dp_id: 4
    # hide from homeassistant ui
    internal: true
    # bind other switch, sync state
    bind_switch_id: "f4_output04"

binary_sensor:
  - platform: gpio
    name: "f4-input01"
    id: "f4_input01"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 0
      mode: INPUT
      inverted: true
  - platform: tuya_wifi_mcu
    name: f4-input1-tuya
    dp_id: 111
    bind_binary_sensor_id: f4_input01
    internal: true

  - platform: gpio
    name: "f4-input02"
    id: "f4_input02"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 1
      mode: INPUT
      inverted: true
  - platform: tuya_wifi_mcu
    name: f4-input2-tuya
    dp_id: 112
    bind_binary_sensor_id: f4_input02
    internal: true

  - platform: gpio
    name: "f4-input03"
    id: "f4_input03"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 2
      mode: INPUT
      inverted: true
  - platform: tuya_wifi_mcu
    name: f4-input3-tuya
    dp_id: 113
    bind_binary_sensor_id: f4_input03
    internal: true

  - platform: gpio
    name: "f4-input04"
    id: "f4_input04"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 3
      mode: INPUT
      inverted: true
  - platform: tuya_wifi_mcu
    name: f4-input4-tuya
    dp_id: 114
    bind_binary_sensor_id: f4_input04
    internal: true

##pull-up resistance on PCB
  - platform: gpio
    name: "f4-W1-io48"
    pin:
      number: 48
      inverted: true

  - platform: gpio
    name: "f4-W1-io47"
    pin:
      number: 47
      inverted: true

  - platform: gpio
    name: "f4-W1-io21"
    pin:
      number: 21
      inverted: true

  - platform: gpio
    name: "f4-W1-io15"
    pin:
      number: 15
      inverted: true
## without resistance on PCB
  - platform: gpio
    name: "f4-W1-io14"
    pin:
      number: 14
      inverted:  false

  - platform: gpio
    name: "f4-433M"
    pin:
      number: 40
      inverted:  false

  - platform: gpio
    name: "f4-io0"
    pin:
      number: 0
      inverted:  false

sensor:
  - platform: adc
    pin: 5
    name: "f4 A1 Voltage"
    update_interval: 5s
    attenuation: 11db
    filters:
      - lambda:
          if (x >= 3.11) {
            return x * 1.60256;
          } else if (x <= 0.15) {
            return 0;
          } else {
            return x * 1.51;
          }
  - platform: adc
    pin: 7
    name: "f4 A2 Voltage"
    update_interval: 5s
    attenuation: 11db
    filters:
      # - multiply: 1.51515
      - lambda:
          if (x >= 3.11) {
            return x * 1.60256;
          } else if (x <= 0.15) {
            return 0;
          } else {
            return x * 1.51;
          }
  - platform: adc
    pin: 6
    name: "f4 A3 Current"
    update_interval: 5s
    unit_of_measurement: mA
    attenuation: 11db
    filters:
      - multiply: 6.66666666
  - platform: adc
    pin: 4
    name: "f4 A4 Current"
    update_interval: 5s
    unit_of_measurement: mA
    attenuation: 11db
    filters:
      - multiply: 6.66666666

web_server:
  port: 80

font:
  - file: "gfonts://Roboto"
    id: roboto
    size: 20

display:
  - platform: ssd1306_i2c
    i2c_id: bus_a
    model: "SSD1306 128x64"
    address: 0x3C
    lambda: |-
      it.printf(0, 0, id(roboto), "KinCony f4");
esphome yaml file:

.txt   F4-HA-tuya.txt (Size: 6.04 KB / Downloads: 83)

Print this item