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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 10,609
» Latest member: WeFixCar
» Forum threads: 4,352
» Forum posts: 21,389

Full Statistics

Online Users
There are currently 146 online users.
» 1 Member(s) | 118 Guest(s)
AhrefsBot, Amazonbot, Applebot, Baidu, Bing, Bytespider, Crawl, Google, PetalBot, Semrush, Sogou web, bot, WeFixCar

Latest Threads
Shipping costs new CT Cla...
Forum: N30
Last Post: Vega
1 hour ago
» Replies: 2
» Views: 63
KC868-A16 V3 – HTTPS GET ...
Forum: "KCS" v3 firmware
Last Post: admin
10 hours ago
» Replies: 3
» Views: 97
ds3231 added to esphome, ...
Forum: KC868-A16v3
Last Post: admin
Yesterday, 02:59 AM
» Replies: 2
» Views: 123
how to use DS3231/SD8931 ...
Forum: Getting Started with ESPHome and Home Assistant
Last Post: admin
Yesterday, 02:58 AM
» Replies: 0
» Views: 59
Whether KinCony have Alie...
Forum: KC868-AI
Last Post: admin
Yesterday, 02:25 AM
» Replies: 1
» Views: 46
how to use ethernet and w...
Forum: Getting Started with ESPHome and Home Assistant
Last Post: admin
Yesterday, 12:24 AM
» Replies: 0
» Views: 59
Ethernet jack link LED se...
Forum: B16M
Last Post: admin
11-23-2026, 11:40 PM
» Replies: 1
» Views: 32
KinCony N30 – CT clamp se...
Forum: N30
Last Post: admin
11-22-2026, 11:53 PM
» Replies: 1
» Views: 57
KC868-A8v3 (KCS v3.27.4) ...
Forum: KinCony integrate with Loxone home automation
Last Post: admin
11-22-2026, 11:44 PM
» Replies: 1
» Views: 72
Single-family home automa...
Forum: DIY Project
Last Post: lulu01
11-22-2026, 10:42 PM
» Replies: 5
» Views: 1,279

  CO16 ESPHome yaml for home assistant without tuya
Posted by: admin - 08-30-2026, 11:47 PM - Forum: CO16 - No Replies

   

Code:
esphome:
  name: kincony-co16
  friendly_name: KinCony CO16
  name_add_mac_suffix: true
  min_version: 2026.5.3

esp32:
  variant: esp32s3
  flash_size: 16MB
  framework:
    type: esp-idf
    sdkconfig_options:
      CONFIG_ESP32S3_DEFAULT_CPU_FREQ_240: y
      CONFIG_ESP32S3_DATA_CACHE_64KB: y
      CONFIG_ESP32S3_DATA_CACHE_LINE_64B: y
      CONFIG_SPIRAM_FETCH_INSTRUCTIONS: y
      CONFIG_SPIRAM_RODATA: y

psram:
  mode: octal
  speed: 80MHz

logger:
  hardware_uart: USB_SERIAL_JTAG

api:

ota:
  - platform: esphome

# ESPHome does not support Ethernet and Wi-Fi at the same time. Remove this
# block before adding a wifi: configuration.
ethernet:
  type: W5500
  clk_pin: GPIO1
  mosi_pin: GPIO2
  miso_pin: GPIO41
  cs_pin: GPIO42
  interrupt_pin: GPIO43
  reset_pin: GPIO44
  clock_speed: 16MHz
  interface: spi2

web_server:
  port: 80
 
external_components:
  - source:
      type: git
      url: https://github.com/hzkincony/esphome-nx3l4051
      ref: c3b3d5fe6a23e43875dab20dce9ee517a67e95a1
    components:
      - nx3l4051
      - nx3l4051_max31865

i2c:
  sda: GPIO8
  scl: GPIO18
  frequency: 100kHz
  scan: true

pcf8574:
  - id: co16_relay_hub
    address: 0x22
    pcf8575: true

xl9535:
  - id: co16_input_hub
    address: 0x24

ads1115:
  - id: co16_adc_01_04
    address: 0x48
  - id: co16_adc_05_08
    address: 0x49
  - id: co16_adc_09_12
    address: 0x4B
  - id: co16_adc_13_16
    address: 0x4A

nx3l4051:
  - id: co16_pt100_mux
    pin_s1: GPIO7
    pin_s2: GPIO21
    pin_s3: LOW
    delay: 20ms

globals:
  - id: co16_pt100_channel
    type: uint8_t
    restore_value: false
    initial_value: "0"

switch:
  - platform: gpio
    name: "CO16 Output 01"
    id: co16_output_01
    restore_mode: ALWAYS_OFF
    pin:
      pcf8574: co16_relay_hub
      number: 0
      mode: OUTPUT
      inverted: true
  - platform: gpio
    name: "CO16 Output 02"
    id: co16_output_02
    restore_mode: ALWAYS_OFF
    pin:
      pcf8574: co16_relay_hub
      number: 1
      mode: OUTPUT
      inverted: true
  - platform: gpio
    name: "CO16 Output 03"
    id: co16_output_03
    restore_mode: ALWAYS_OFF
    pin:
      pcf8574: co16_relay_hub
      number: 2
      mode: OUTPUT
      inverted: true
  - platform: gpio
    name: "CO16 Output 04"
    id: co16_output_04
    restore_mode: ALWAYS_OFF
    pin:
      pcf8574: co16_relay_hub
      number: 3
      mode: OUTPUT
      inverted: true
  - platform: gpio
    name: "CO16 Output 05"
    id: co16_output_05
    restore_mode: ALWAYS_OFF
    pin:
      pcf8574: co16_relay_hub
      number: 4
      mode: OUTPUT
      inverted: true
  - platform: gpio
    name: "CO16 Output 06"
    id: co16_output_06
    restore_mode: ALWAYS_OFF
    pin:
      pcf8574: co16_relay_hub
      number: 5
      mode: OUTPUT
      inverted: true
  - platform: gpio
    name: "CO16 Output 07"
    id: co16_output_07
    restore_mode: ALWAYS_OFF
    pin:
      pcf8574: co16_relay_hub
      number: 6
      mode: OUTPUT
      inverted: true
  - platform: gpio
    name: "CO16 Output 08"
    id: co16_output_08
    restore_mode: ALWAYS_OFF
    pin:
      pcf8574: co16_relay_hub
      number: 7
      mode: OUTPUT
      inverted: true
  - platform: gpio
    name: "CO16 Output 09"
    id: co16_output_09
    restore_mode: ALWAYS_OFF
    pin:
      pcf8574: co16_relay_hub
      number: 8
      mode: OUTPUT
      inverted: true
  - platform: gpio
    name: "CO16 Output 10"
    id: co16_output_10
    restore_mode: ALWAYS_OFF
    pin:
      pcf8574: co16_relay_hub
      number: 9
      mode: OUTPUT
      inverted: true
  - platform: gpio
    name: "CO16 Output 11"
    id: co16_output_11
    restore_mode: ALWAYS_OFF
    pin:
      pcf8574: co16_relay_hub
      number: 10
      mode: OUTPUT
      inverted: true
  - platform: gpio
    name: "CO16 Output 12"
    id: co16_output_12
    restore_mode: ALWAYS_OFF
    pin:
      pcf8574: co16_relay_hub
      number: 11
      mode: OUTPUT
      inverted: true
  - platform: gpio
    name: "CO16 Output 13"
    id: co16_output_13
    restore_mode: ALWAYS_OFF
    pin:
      pcf8574: co16_relay_hub
      number: 12
      mode: OUTPUT
      inverted: true
  - platform: gpio
    name: "CO16 Output 14"
    id: co16_output_14
    restore_mode: ALWAYS_OFF
    pin:
      pcf8574: co16_relay_hub
      number: 13
      mode: OUTPUT
      inverted: true
  - platform: gpio
    name: "CO16 Output 15"
    id: co16_output_15
    restore_mode: ALWAYS_OFF
    pin:
      pcf8574: co16_relay_hub
      number: 14
      mode: OUTPUT
      inverted: true
  - platform: gpio
    name: "CO16 Output 16"
    id: co16_output_16
    restore_mode: ALWAYS_OFF
    pin:
      pcf8574: co16_relay_hub
      number: 15
      mode: OUTPUT
      inverted: true

binary_sensor:
  - platform: gpio
    name: "CO16 Input 01"
    id: co16_input_01
    pin:
      xl9535: co16_input_hub
      number: 0
      mode: INPUT
      inverted: true
  - platform: gpio
    name: "CO16 Input 02"
    id: co16_input_02
    pin:
      xl9535: co16_input_hub
      number: 1
      mode: INPUT
      inverted: true
  - platform: gpio
    name: "CO16 Input 03"
    id: co16_input_03
    pin:
      xl9535: co16_input_hub
      number: 2
      mode: INPUT
      inverted: true
  - platform: gpio
    name: "CO16 Input 04"
    id: co16_input_04
    pin:
      xl9535: co16_input_hub
      number: 3
      mode: INPUT
      inverted: true
  - platform: gpio
    name: "CO16 Input 05"
    id: co16_input_05
    pin:
      xl9535: co16_input_hub
      number: 4
      mode: INPUT
      inverted: true
  - platform: gpio
    name: "CO16 Input 06"
    id: co16_input_06
    pin:
      xl9535: co16_input_hub
      number: 5
      mode: INPUT
      inverted: true
  - platform: gpio
    name: "CO16 Input 07"
    id: co16_input_07
    pin:
      xl9535: co16_input_hub
      number: 6
      mode: INPUT
      inverted: true
  - platform: gpio
    name: "CO16 Input 08"
    id: co16_input_08
    pin:
      xl9535: co16_input_hub
      number: 7
      mode: INPUT
      inverted: true
  - platform: gpio
    name: "CO16 Input 09"
    id: co16_input_09
    pin:
      xl9535: co16_input_hub
      number: 10
      mode: INPUT
      inverted: true
  - platform: gpio
    name: "CO16 Input 10"
    id: co16_input_10
    pin:
      xl9535: co16_input_hub
      number: 11
      mode: INPUT
      inverted: true
  - platform: gpio
    name: "CO16 Input 11"
    id: co16_input_11
    pin:
      xl9535: co16_input_hub
      number: 12
      mode: INPUT
      inverted: true
  - platform: gpio
    name: "CO16 Input 12"
    id: co16_input_12
    pin:
      xl9535: co16_input_hub
      number: 13
      mode: INPUT
      inverted: true
  - platform: gpio
    name: "CO16 Input 13"
    id: co16_input_13
    pin:
      xl9535: co16_input_hub
      number: 14
      mode: INPUT
      inverted: true
  - platform: gpio
    name: "CO16 Input 14"
    id: co16_input_14
    pin:
      xl9535: co16_input_hub
      number: 15
      mode: INPUT
      inverted: true
  - platform: gpio
    name: "CO16 Input 15"
    id: co16_input_15
    pin:
      xl9535: co16_input_hub
      number: 16
      mode: INPUT
      inverted: true
  - platform: gpio
    name: "CO16 Input 16"
    id: co16_input_16
    pin:
      xl9535: co16_input_hub
      number: 17
      mode: INPUT
      inverted: true

sensor:
  # The default filters expose the terminal measurements as 0-10 V.
  # For a 4-20 mA channel, replace its filters with: [{multiply: 10.0}]
  # and change the unit/device class to mA/current.
  - platform: ads1115
    ads1115_id: co16_adc_01_04
    multiplexer: A0_GND
    gain: 4.096
    name: "CO16 Analog Input 01"
    id: co16_analog_input_01
    unit_of_measurement: V
    device_class: voltage
    state_class: measurement
    accuracy_decimals: 2
    update_interval: 5s
    filters:
      - lambda: 'return x <= 0.0025f ? 0.0f : x;'
      - multiply: 5.16696
      - clamp:
          min_value: 0.0
          max_value: 10.0
  - platform: ads1115
    ads1115_id: co16_adc_01_04
    multiplexer: A1_GND
    gain: 4.096
    name: "CO16 Analog Input 02"
    id: co16_analog_input_02
    unit_of_measurement: V
    device_class: voltage
    state_class: measurement
    accuracy_decimals: 2
    update_interval: 5s
    filters:
      - lambda: 'return x <= 0.0025f ? 0.0f : x;'
      - multiply: 5.16696
      - clamp:
          min_value: 0.0
          max_value: 10.0
  - platform: ads1115
    ads1115_id: co16_adc_01_04
    multiplexer: A2_GND
    gain: 4.096
    name: "CO16 Analog Input 03"
    id: co16_analog_input_03
    unit_of_measurement: V
    device_class: voltage
    state_class: measurement
    accuracy_decimals: 2
    update_interval: 5s
    filters:
      - lambda: 'return x <= 0.0025f ? 0.0f : x;'
      - multiply: 5.16696
      - clamp:
          min_value: 0.0
          max_value: 10.0
  - platform: ads1115
    ads1115_id: co16_adc_01_04
    multiplexer: A3_GND
    gain: 4.096
    name: "CO16 Analog Input 04"
    id: co16_analog_input_04
    unit_of_measurement: V
    device_class: voltage
    state_class: measurement
    accuracy_decimals: 2
    update_interval: 5s
    filters:
      - lambda: 'return x <= 0.0025f ? 0.0f : x;'
      - multiply: 5.16696
      - clamp:
          min_value: 0.0
          max_value: 10.0
  - platform: ads1115
    ads1115_id: co16_adc_05_08
    multiplexer: A0_GND
    gain: 4.096
    name: "CO16 Analog Input 05"
    id: co16_analog_input_05
    unit_of_measurement: V
    device_class: voltage
    state_class: measurement
    accuracy_decimals: 2
    update_interval: 5s
    filters:
      - lambda: 'return x <= 0.0025f ? 0.0f : x;'
      - multiply: 5.16696
      - clamp:
          min_value: 0.0
          max_value: 10.0
  - platform: ads1115
    ads1115_id: co16_adc_05_08
    multiplexer: A1_GND
    gain: 4.096
    name: "CO16 Analog Input 06"
    id: co16_analog_input_06
    unit_of_measurement: V
    device_class: voltage
    state_class: measurement
    accuracy_decimals: 2
    update_interval: 5s
    filters:
      - lambda: 'return x <= 0.0025f ? 0.0f : x;'
      - multiply: 5.16696
      - clamp:
          min_value: 0.0
          max_value: 10.0
  - platform: ads1115
    ads1115_id: co16_adc_05_08
    multiplexer: A2_GND
    gain: 4.096
    name: "CO16 Analog Input 07"
    id: co16_analog_input_07
    unit_of_measurement: V
    device_class: voltage
    state_class: measurement
    accuracy_decimals: 2
    update_interval: 5s
    filters:
      - lambda: 'return x <= 0.0025f ? 0.0f : x;'
      - multiply: 5.16696
      - clamp:
          min_value: 0.0
          max_value: 10.0
  - platform: ads1115
    ads1115_id: co16_adc_05_08
    multiplexer: A3_GND
    gain: 4.096
    name: "CO16 Analog Input 08"
    id: co16_analog_input_08
    unit_of_measurement: V
    device_class: voltage
    state_class: measurement
    accuracy_decimals: 2
    update_interval: 5s
    filters:
      - lambda: 'return x <= 0.0025f ? 0.0f : x;'
      - multiply: 5.16696
      - clamp:
          min_value: 0.0
          max_value: 10.0
  - platform: ads1115
    ads1115_id: co16_adc_09_12
    multiplexer: A0_GND
    gain: 4.096
    name: "CO16 Analog Input 09"
    id: co16_analog_input_09
    unit_of_measurement: V
    device_class: voltage
    state_class: measurement
    accuracy_decimals: 2
    update_interval: 5s
    filters:
      - lambda: 'return x <= 0.0025f ? 0.0f : x;'
      - multiply: 5.16696
      - clamp:
          min_value: 0.0
          max_value: 10.0
  - platform: ads1115
    ads1115_id: co16_adc_09_12
    multiplexer: A1_GND
    gain: 4.096
    name: "CO16 Analog Input 10"
    id: co16_analog_input_10
    unit_of_measurement: V
    device_class: voltage
    state_class: measurement
    accuracy_decimals: 2
    update_interval: 5s
    filters:
      - lambda: 'return x <= 0.0025f ? 0.0f : x;'
      - multiply: 5.16696
      - clamp:
          min_value: 0.0
          max_value: 10.0
  - platform: ads1115
    ads1115_id: co16_adc_09_12
    multiplexer: A2_GND
    gain: 4.096
    name: "CO16 Analog Input 11"
    id: co16_analog_input_11
    unit_of_measurement: V
    device_class: voltage
    state_class: measurement
    accuracy_decimals: 2
    update_interval: 5s
    filters:
      - lambda: 'return x <= 0.0025f ? 0.0f : x;'
      - multiply: 5.16696
      - clamp:
          min_value: 0.0
          max_value: 10.0
  - platform: ads1115
    ads1115_id: co16_adc_09_12
    multiplexer: A3_GND
    gain: 4.096
    name: "CO16 Analog Input 12"
    id: co16_analog_input_12
    unit_of_measurement: V
    device_class: voltage
    state_class: measurement
    accuracy_decimals: 2
    update_interval: 5s
    filters:
      - lambda: 'return x <= 0.0025f ? 0.0f : x;'
      - multiply: 5.16696
      - clamp:
          min_value: 0.0
          max_value: 10.0
  - platform: ads1115
    ads1115_id: co16_adc_13_16
    multiplexer: A0_GND
    gain: 4.096
    name: "CO16 Analog Input 13"
    id: co16_analog_input_13
    unit_of_measurement: V
    device_class: voltage
    state_class: measurement
    accuracy_decimals: 2
    update_interval: 5s
    filters:
      - lambda: 'return x <= 0.0025f ? 0.0f : x;'
      - multiply: 5.16696
      - clamp:
          min_value: 0.0
          max_value: 10.0
  - platform: ads1115
    ads1115_id: co16_adc_13_16
    multiplexer: A1_GND
    gain: 4.096
    name: "CO16 Analog Input 14"
    id: co16_analog_input_14
    unit_of_measurement: V
    device_class: voltage
    state_class: measurement
    accuracy_decimals: 2
    update_interval: 5s
    filters:
      - lambda: 'return x <= 0.0025f ? 0.0f : x;'
      - multiply: 5.16696
      - clamp:
          min_value: 0.0
          max_value: 10.0
  - platform: ads1115
    ads1115_id: co16_adc_13_16
    multiplexer: A2_GND
    gain: 4.096
    name: "CO16 Analog Input 15"
    id: co16_analog_input_15
    unit_of_measurement: V
    device_class: voltage
    state_class: measurement
    accuracy_decimals: 2
    update_interval: 5s
    filters:
      - lambda: 'return x <= 0.0025f ? 0.0f : x;'
      - multiply: 5.16696
      - clamp:
          min_value: 0.0
          max_value: 10.0
  - platform: ads1115
    ads1115_id: co16_adc_13_16
    multiplexer: A3_GND
    gain: 4.096
    name: "CO16 Analog Input 16"
    id: co16_analog_input_16
    unit_of_measurement: V
    device_class: voltage
    state_class: measurement
    accuracy_decimals: 2
    update_interval: 5s
    filters:
      - lambda: 'return x <= 0.0025f ? 0.0f : x;'
      - multiply: 5.16696
      - clamp:
          min_value: 0.0
          max_value: 10.0

  - platform: nx3l4051_max31865
    id: co16_pt100_reader
    mux_id: co16_pt100_mux
    internal: true
    clk_pin: GPIO11
    mosi_pin: GPIO10
    miso_pin: GPIO12
    cs_pin: GPIO14
    reference_resistance: 400 ohm
    rtd_nominal_resistance: 100 ohm
    rtd_wires: 3
    mains_filter: 50 Hz
    update_interval: never

  - platform: template
    name: "CO16 PT100 01"
    id: co16_pt100_01
    unit_of_measurement: "°C"
    device_class: temperature
    state_class: measurement
    accuracy_decimals: 2
    update_interval: never
  - platform: template
    name: "CO16 PT100 02"
    id: co16_pt100_02
    unit_of_measurement: "°C"
    device_class: temperature
    state_class: measurement
    accuracy_decimals: 2
    update_interval: never
  - platform: template
    name: "CO16 PT100 03"
    id: co16_pt100_03
    unit_of_measurement: "°C"
    device_class: temperature
    state_class: measurement
    accuracy_decimals: 2
    update_interval: never
  - platform: template
    name: "CO16 PT100 04"
    id: co16_pt100_04
    unit_of_measurement: "°C"
    device_class: temperature
    state_class: measurement
    accuracy_decimals: 2
    update_interval: never

interval:
  - interval: 10s
    then:
      - repeat:
          count: 4
          then:
            - nx3l4051.select:
                id: co16_pt100_mux
                channel: !lambda return id(co16_pt100_channel);
            - component.update: co16_pt100_reader
            - delay: 70ms
            - lambda: |-
                const float value = id(co16_pt100_reader).state;
                switch (id(co16_pt100_channel)) {
                  case 0:
                    id(co16_pt100_01).publish_state(value);
                    break;
                  case 1:
                    id(co16_pt100_02).publish_state(value);
                    break;
                  case 2:
                    id(co16_pt100_03).publish_state(value);
                    break;
                  default:
                    id(co16_pt100_04).publish_state(value);
                    break;
                }
                id(co16_pt100_channel) = (id(co16_pt100_channel) + 1) % 4;
esphome yaml file download:

.txt   CO16-HA-without-Tuya.txt (Size: 17.05 KB / Downloads: 145)

Print this item

  CO16 ESP32-S3 IO pins define
Posted by: admin - 08-30-2026, 11:45 PM - Forum: CO16 - No Replies

IIC Bus:

SDA:GPIO8
SCL:GPIO18

PCF8575: (relay1-16): i2c address:0x22

XL9555: (input1-16): i2c address:0x24

24C02 EPROM i2c address: 0x50
DS3231 RTC i2c address: 0x68

ST7789 SPI display:

  SCK: GPIO11
  MOSI: GPIO10
  MISO: GPIO12
  CS: GPIO4
  DC: GPIO0
  RESET: GPIO5
  Back light: GPIO40

ADC (DC 0-10v/4-20mA set by jumper):
jumper: short UP: set for DC 0-10V signal.
jumper: short DOWN: set for DC 4-20mA signal.

ADS1115-1 (U35) adc CH1-CH4: i2c address:0x48
ADS1115-2 (U7): adc CH5-CH8:i2c address:0x49
ADS1115-3 (U15): adc CH9-CH12:i2c address:0x4B
ADS1115-4 (U19): adc CH13-CH16:i2c address:0x4A

------------------

NX3L4051:

S1:GPIO7
S2:GPIO21

------------------
SPI bus for MAX31865

SPI-MOSI: GPIO10
SPI-SCK: GPIO11
SPI-MISO: GPIO12
PTC_CS: GPIO14
PTC_RDY: GPIO21
-----------------
LoRa_RST: GPIO5
LoRa_INT: GPIO40
LoRa_CS:GPIO13
-----------------

Ethernet (W5500) I/O define:

clk_pin: GPIO1
mosi_pin: GPIO2
miso_pin: GPIO41
cs_pin: GPIO42

interrupt_pin: GPIO43
reset_pin: GPIO44

--------------------
RS485:
RXD:GPIO38
TXD:GPIO39

Tuya module:
RXD:GPIO17
TXD:GPIO16

Tuya network button: Tuya module's P28
Tuya network LED: Tuya module's P16
--------------------
SD Card:
SPI-MOSI:GPIO10
SPI-SCK:GPIO11
SPI-MISO:GPIO12
SD-CS:GPIO9

--------------------

433MHz RF receiver: GPIO6

4G SIM7600/KNX RXD: GPIO47
4G SIM7600/KNX TXD: GPIO48

Print this item

  CR battery
Posted by: apps4check - 08-29-2026, 09:28 PM - Forum: KC868-A2v3 - Replies (1)

Hi! Can I use a CR1225 battery or only a CR1220?

Print this item

  N60 Loss of kWh on reset
Posted by: chuyskywalker - 08-28-2026, 04:28 AM - Forum: N60 - Replies (13)

I've had the N60 up and running for about a week now and something on it went sideways (stopped reporting to home assistant; not really sure what went wrong) so I turned it off and back on again. It rebooted and came back online, but all the kWh values had been reset to zero.

I thought the system saved these values to flash and would reload them at boot so that kWh remains continuous across reboots. Is that understanding wrong?

The reason I ask is because when an ESPHome device reports values of the type "total_increasing" to home assistant, values that go backwards are handled oddly. Worse, values that go to zero are considered reseting the sensor. It's all a bit quirky, but ideally the device would retain those values and restore them. If that's not the case, I'll figure out something.

Thanks!

Print this item

  kc868-A16S3 v3.2
Posted by: 5310h - 08-26-2026, 08:59 PM - Forum: Development - Replies (3)

I have a KC868-A16 V3.2 (ESP32-S3) board powered from the supplied 12 V KinCony adapter. I successfully flashed the official A16V3 ESPHome YAML from this forum.
In the ESPHome web page, outputs 1 and 2 show ON (and I also tried all outputs ON), but none of the 16 on-board output indicator LEDs light. No load is connected.
With output 1 ON, I also measure 0 V between output terminal 1 and the red

Code:
+12/24V
terminal for the 1–8 bank.
Please confirm the exact required power wiring for both output banks on V3.2, and whether the output LEDs should light with only the board powered and an output switched ON. I can provide photos if needed.

Print this item

  SSD1306 with case
Posted by: hans-martijn - 08-26-2026, 07:39 AM - Forum: KC868-A16v3 - Replies (3)

Hello,

Is there a template to cut a hole in the A16v3 case to be able to show the contents of the SSD1306 screen? Or do you have a see-through case to be able to make the screen visible?

Currently, it doesn't make sense to add a screen under the cover, since you have to undo four screws to be able to see it.

Thanks in advance!

-hans-martijn

Print this item

  N60 power supply - power cosumption
Posted by: buttom3 - 08-25-2026, 03:00 PM - Forum: N60 - Replies (1)

What is the maximum power consumption of the N60? 
What power supply does it require, and how many watts are needed? 
Is a 12 V DC, 1.25 A (15 W) power supply sufficient to run it reliably? 
What power supply are you using to keep your N60 stable?

Print this item

  KCS VERSUS ESPHOME
Posted by: EDVALDO DE MARINGA - 08-20-2026, 03:21 PM - Forum: "KCS" v3 firmware - Replies (2)

I just bought a KinCony 32 Pro to control basically the lighting in my house. This was a retrofit: I replaced an old automation system with the KinCony on a DIY basis.
My plan is to use Home Assistant to control everything. Today, the KinCony A32 Pro physically controls the lights ON/OFF. Now I need to install the firmware, and the big question is: ESPHome or KCS?
I asked ChatGPT, Gemini, and Copilot, and they gave contradictory answers.
What ChatGPT said
ChatGPT initially recommended KCS + Home Assistant, arguing that KCS can integrate the A32 Pro through MQTT and MQTT Auto Discovery, and that I would not need ESPHome.
It cited KinCony’s forum, including a discussion where the administrator said that KCS and ESPHome cannot run simultaneously and recommended KCS v3 for users who do not know how to configure ESPHome.
It also cited the KinCony forum thread “A32 pro lost control”, where a user had flashed ESPHome and lost KCS. The administrator explained that KCS and ESPHome cannot coexist, and suggested enabling MQTT Auto Discovery in KCS to integrate the A32 Pro with Home Assistant.
Based on this, ChatGPT concluded:

  • I do not need ESPHome.
  • I can install KCS and integrate it with Home Assistant.
  • KCS + MQTT Auto Discovery is the simpler solution for my case.
What Copilot said
Copilot strongly disagreed and said Gemini was right and ChatGPT was wrong.
Its main argument is that KCS does not expose all 32 digital inputs of the A32 Pro to Home Assistant.
According to Copilot, KCS exposes:
  • Relays through MQTT
  • Basic sensors
  • Some internal states
But it does not expose DI1–DI32.
This is critical for my application because I want to use physical inputs/dry contacts to trigger automations such as:
Quote:Press a button → turn on one, two, or three lights.
Copilot says that without the digital inputs being available in Home Assistant, this type of automation cannot work as intended.
It also claims that KinCony has stated on its forum that if you want all inputs and outputs in Home Assistant, you should use ESPHome.
Copilot's other arguments are:
  1. KCS + MQTT Auto Discovery does not automatically expose the 32 digital inputs.
  2. Saying that KCS is simpler may be true for some smaller KinCony controllers, but not necessarily for the A32 Pro.
  3. The A32 Pro uses multiple I/O expanders, and ESPHome provides a more complete mapping of its inputs and outputs to Home Assistant.
My questions
I do not want a generic comparison between ESPHome and KCS. I want the answer specifically for the KinCony KC868-A32 Pro + Home Assistant, considering that my primary objective is to control lighting and use the physical digital inputs for automations.
1. Who is technically correct: Gemini/Copilot or ChatGPT?
More specifically: Does KCS v3 with MQTT Auto Discovery expose all 32 digital inputs of the A32 Pro to Home Assistant, or do I need ESPHome for that?
2. If I need ESPHome on the KinCony A32 Pro:
Where is the latest official A32 Pro ESPHome YAML/configuration for Home Assistant?
Is this KinCony forum thread the correct/latest source?
https://www.kincony.com/forum/showthread.php?tid=5520
3. If KCS should be installed instead:
Is this the latest KCS version/configuration for the A32 Pro, including MQTT Auto Discovery?
https://www.kincony.com/forum/showthread...3#pid25773
I want to resolve the contradiction before flashing the controller, because KCS and ESPHome cannot coexist, so choosing the wrong firmware means having to reflash the device.
Please base the answer on the current KinCony A32 Pro documentation/forum information, not on assumptions about other KinCony models.
Summary: I need to decide between KCS + MQTT Auto Discovery and ESPHome for an A32 Pro whose relays control my lights and whose digital inputs will be used by Home Assistant for physical-button/dry-contact automations. The key question is whether KCS exposes the 32 digital inputs to Home Assistant.

Print this item

  KC868-AGv3
Posted by: zalaking - 08-19-2026, 08:45 PM - Forum: Getting Started with ESPHome and Home Assistant - Replies (5)

Hi Kincony and community.

I've just received my KC868-AGv3 RF/IR Smart Controller..

is there an example ESPHome configuration posted anywhere - I've been searching for some time and cannot find a an example I can use to get me started... I've installed a base ESP32 config on it and I see it on my network etc.. but keen to get it fully worked with all the RF/IR/Buzzer features..

Many thanks in advance.

Print this item

  KinCony B2 Smart Controller released
Posted by: admin - 08-17-2026, 01:07 PM - Forum: News - No Replies

KinCony B2 ESP32 smart controller based on ESP32-S3-WROOM-1U (N16R8) wifi chip. Support 2 channel relay output, 4 channel 1-wire GPIOs, 4 channel ADS1115 16bit analog input ports. One SD card using SPI bus. B2 include DS3231 high precision RTC clock chip. LCD display will show wifi and ethernet IP address and Tuya connection state. B2 have I2C bus extender and RS485 port. B2 support use SIM7600E 4G module. 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 for smart home automation DIY. B2 use KCS v3 firmware, it support home assistant auto discovery function by MQTT, so without write any config code (zero code) for home assistant. KCS v3 support KinCony cloud service (official shop customer free 2 years), remote monitor and control device by webpage in anywhere. KCS v3 support KinCony board integrate to Loxone Miniserver. Support Apple HomeKit for Siri.
[Image: B2-2.jpg]
Model No. KinCony B2
Description: KinCony 2 Channel ESP32-S3 Smart Relay Controller – B2
Power supply: 12-24V DC
Processor: ESP32-S3-WROOM-1U (N16R8)
Size: 124mm*83mm*56mm
interfaces: Ethernet(RJ45)-LAN 100Mbps IPv4/IPv6,WiFi,RS485,Bluetooth,USB-C,LCD,I2C,Tuya Module, 4G SIM7600
RTC: DS3231 high precision chip (battery socket on PCB)
SD Card: SPI bus
Installation method: DIN RAIL
LCD: SSD1306 I2C display
Outputs:
2CH relay Outputs, every relay use by MAX AC270V/10A
Inputs:
ADS1115 16bit ADC: 2CH analog input DC0-5V (A1,A2) 2CH analog input 4-20mA (A3,A4)
2CH 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)
[Image: B2-1.jpg]

Print this item