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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 9,041
» Latest member: DiamondExchange199
» Forum threads: 3,980
» Forum posts: 20,182

Full Statistics

Online Users
There are currently 54 online users.
» 0 Member(s) | 30 Guest(s)
Amazonbot, Baidu, Bing, BingPreview, Bytespider, Crawl, PetalBot, bot

Latest Threads
Factor settings and calcu...
Forum: "KCS" v3 firmware
Last Post: GWS
30 minutes ago
» Replies: 2
» Views: 3
N30 no Energy (kWh)
Forum: "KCS" v3 firmware
Last Post: alexlans
1 hour ago
» Replies: 4
» Views: 19
DM16 output not turning o...
Forum: DM16
Last Post: admin
3 hours ago
» Replies: 20
» Views: 2,011
"KCS" v3.24.5 firmware BI...
Forum: "KCS" v3 firmware
Last Post: admin
3 hours ago
» Replies: 2
» Views: 342
N30 - Modbus-TCP
Forum: "KCS" v3 firmware
Last Post: GWS
7 hours ago
» Replies: 0
» Views: 1
N60 N30 N20 N10 ARM CPU f...
Forum: N30
Last Post: admin
Yesterday, 09:44 PM
» Replies: 26
» Views: 948
How can I control 170 sma...
Forum: Development
Last Post: yosetadi4321
05-12-2026, 08:16 AM
» Replies: 2
» Views: 363
RS485 Modbus SHT30 sensor...
Forum: "KCS" v3 firmware
Last Post: admin
05-11-2026, 02:30 AM
» Replies: 4
» Views: 299
Current and Power not add...
Forum: N60
Last Post: edalquist
05-09-2026, 03:58 AM
» Replies: 10
» Views: 335
Python and arduino code
Forum: News
Last Post: admin
05-08-2026, 12:38 PM
» Replies: 1
» Views: 50

  B4 ESPHome yaml for home assistant with tuya
Posted by: admin - 01-14-2026, 03:46 AM - Forum: B4 - No Replies

Code:
esphome:
  name: b4
  friendly_name: b4
  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
# logger:
#   hardware_uart: USB_SERIAL_JTAG
# Enable Home Assistant API
api:

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

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

pcf8574:
  - id: 'pcf8574_hub_out_1'  # for output channel 0-7| input channel 8-15   
    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: 38
    rx_pin: 39

  - id: tuya_mcu_uart
    tx_pin: GPIO15
    rx_pin: GPIO16
    baud_rate: 9600

tuya_wifi_mcu:
  # tuya mcu product id
  product_id: fotgrf8rowhk1nm3
  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: "b4-output01"
    id: "b4_output01"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 4
      mode: OUTPUT
      inverted: true
  - platform: tuya_wifi_mcu
    name: b4-output1-tuya
    dp_id: 1
    # hide from homeassistant ui
    internal: true
    # bind other switch, sync state
    bind_switch_id: "b4_output01"

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

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

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

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

  - platform: gpio
    name: "b4-input02"
    id: "b4_input02"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 1
      mode: INPUT
      inverted: true
  - platform: tuya_wifi_mcu
    name: b4-input2-tuya
    dp_id: 112
    bind_binary_sensor_id: b4_input02
    internal: true

  - platform: gpio
    name: "b4-input03"
    id: "b4_input03"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 2
      mode: INPUT
      inverted: true
  - platform: tuya_wifi_mcu
    name: b4-input3-tuya
    dp_id: 113
    bind_binary_sensor_id: b4_input03
    internal: true

  - platform: gpio
    name: "b4-input04"
    id: "b4_input04"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 3
      mode: INPUT
      inverted: true
  - platform: tuya_wifi_mcu
    name: b4-input4-tuya
    dp_id: 114
    bind_binary_sensor_id: b4_input04
    internal: true

##pull-up resistance on PCB
  - platform: gpio
    name: "b8-W1-io47"
    pin:
      number: 47
      inverted: true

  - platform: gpio
    name: "b8-W1-io48"
    pin:
      number: 48
      inverted: true

  - platform: gpio
    name: "b8-W1-io17"
    pin:
      number: 17
      inverted: true

  - platform: gpio
    name: "b8-W1-io40"
    pin:
      number: 40
      inverted: true
## without resistance on PCB
  - platform: gpio
    name: "b8-13"
    pin:
      number: 13
      inverted:  false
  - platform: gpio
    name: "b8-14"
    pin:
      number: 14
      inverted:  false
  - platform: gpio
    name: "b8-21"
    pin:
      number: 21
      inverted:  false
  - platform: gpio
    name: "b8-0"
    pin:
      number: 0
      inverted:  false

ads1115:
  - address: 0x48
sensor:
  - platform: ads1115
    multiplexer: 'A0_GND'
    gain: 6.144
    resolution: 16_BITS
    name: "ADS1115 Channel A0-GND"
    update_interval: 5s
  - platform: ads1115
    multiplexer: 'A1_GND'
    gain: 6.144
    name: "ADS1115 Channel A1-GND"
    update_interval: 5s
  - platform: ads1115
    multiplexer: 'A2_GND'
    gain: 6.144
    name: "ADS1115 Channel A2-GND"
    update_interval: 5s
  - platform: ads1115
    multiplexer: 'A3_GND'
    gain: 6.144
    name: "ADS1115 Channel A3-GND"
    update_interval: 5s

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 B4");
download yaml file:

.txt   B4-HA-Tuya.txt (Size: 5.63 KB / Downloads: 103)

Print this item

  B4M ESPHome yaml for home assistant with tuya
Posted by: admin - 01-14-2026, 03:46 AM - Forum: B4M - No Replies

Code:
esphome:
  name: b4
  friendly_name: b4
  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
# logger:
#   hardware_uart: USB_SERIAL_JTAG
# Enable Home Assistant API
api:

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

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

pcf8574:
  - id: 'pcf8574_hub_out_1'  # for output channel 0-7| input channel 8-15   
    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: 38
    rx_pin: 39

  - id: tuya_mcu_uart
    tx_pin: GPIO15
    rx_pin: GPIO16
    baud_rate: 9600

tuya_wifi_mcu:
  # tuya mcu product id
  product_id: fotgrf8rowhk1nm3
  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: "b4-output01"
    id: "b4_output01"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 4
      mode: OUTPUT
      inverted: true
  - platform: tuya_wifi_mcu
    name: b4-output1-tuya
    dp_id: 1
    # hide from homeassistant ui
    internal: true
    # bind other switch, sync state
    bind_switch_id: "b4_output01"

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

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

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

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

  - platform: gpio
    name: "b4-input02"
    id: "b4_input02"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 1
      mode: INPUT
      inverted: true
  - platform: tuya_wifi_mcu
    name: b4-input2-tuya
    dp_id: 112
    bind_binary_sensor_id: b4_input02
    internal: true

  - platform: gpio
    name: "b4-input03"
    id: "b4_input03"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 2
      mode: INPUT
      inverted: true
  - platform: tuya_wifi_mcu
    name: b4-input3-tuya
    dp_id: 113
    bind_binary_sensor_id: b4_input03
    internal: true

  - platform: gpio
    name: "b4-input04"
    id: "b4_input04"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 3
      mode: INPUT
      inverted: true
  - platform: tuya_wifi_mcu
    name: b4-input4-tuya
    dp_id: 114
    bind_binary_sensor_id: b4_input04
    internal: true

##pull-up resistance on PCB
  - platform: gpio
    name: "b8-W1-io47"
    pin:
      number: 47
      inverted: true

  - platform: gpio
    name: "b8-W1-io48"
    pin:
      number: 48
      inverted: true

  - platform: gpio
    name: "b8-W1-io17"
    pin:
      number: 17
      inverted: true

  - platform: gpio
    name: "b8-W1-io40"
    pin:
      number: 40
      inverted: true
## without resistance on PCB
  - platform: gpio
    name: "b8-13"
    pin:
      number: 13
      inverted:  false
  - platform: gpio
    name: "b8-14"
    pin:
      number: 14
      inverted:  false
  - platform: gpio
    name: "b8-21"
    pin:
      number: 21
      inverted:  false
  - platform: gpio
    name: "b8-0"
    pin:
      number: 0
      inverted:  false

ads1115:
  - address: 0x48
sensor:
  - platform: ads1115
    multiplexer: 'A0_GND'
    gain: 6.144
    resolution: 16_BITS
    name: "ADS1115 Channel A0-GND"
    update_interval: 5s
  - platform: ads1115
    multiplexer: 'A1_GND'
    gain: 6.144
    name: "ADS1115 Channel A1-GND"
    update_interval: 5s
  - platform: ads1115
    multiplexer: 'A2_GND'
    gain: 6.144
    name: "ADS1115 Channel A2-GND"
    update_interval: 5s
  - platform: ads1115
    multiplexer: 'A3_GND'
    gain: 6.144
    name: "ADS1115 Channel A3-GND"
    update_interval: 5s

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 B4");
download yaml file:

.txt   B4-HA-Tuya.txt (Size: 5.63 KB / Downloads: 110)

Print this item

  B4 ESPHome yaml for home assistant without tuya
Posted by: admin - 01-14-2026, 03:45 AM - Forum: B4 - No Replies

Code:
esphome:
  name: b4
  friendly_name: b4

esp32:
  board: esp32-s3-devkitc-1
  framework:
    type: arduino
   

# Enable logging
logger:
   hardware_uart: USB_SERIAL_JTAG
# Enable Home Assistant API
api:

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

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

pcf8574:
  - id: 'pcf8574_hub_out_1'  # for output channel 0-7| input channel 8-15   
    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: 38
    rx_pin: 39




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

  - platform: gpio
    name: "b4-output01"
    id: "b4_output01"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 4
      mode: OUTPUT
      inverted: true


  - platform: gpio
    name: "b4-output02"
    id: "b4_output02"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 5
      mode: OUTPUT
      inverted: true


  - platform: gpio
    name: "b4-output03"
    id: "b4_output03"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 6
      mode: OUTPUT
      inverted: true


  - platform: gpio
    name: "b4-output04"
    id: "b4_output04"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 7
      mode: OUTPUT
      inverted: true


binary_sensor:
  - platform: gpio
    name: "b4-input01"
    id: "b4_input01"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 0
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "b4-input02"
    id: "b4_input02"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 1
      mode: INPUT
      inverted: true


  - platform: gpio
    name: "b4-input03"
    id: "b4_input03"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 2
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "b4-input04"
    id: "b4_input04"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 3
      mode: INPUT
      inverted: true


##pull-up resistance on PCB
  - platform: gpio
    name: "b8-W1-io47"
    pin:
      number: 47
      inverted: true

  - platform: gpio
    name: "b8-W1-io48"
    pin:
      number: 48
      inverted: true

  - platform: gpio
    name: "b8-W1-io17"
    pin:
      number: 17
      inverted: true

  - platform: gpio
    name: "b8-W1-io40"
    pin:
      number: 40
      inverted: true
## without resistance on PCB
  - platform: gpio
    name: "b8-13"
    pin:
      number: 13
      inverted:  false
  - platform: gpio
    name: "b8-14"
    pin:
      number: 14
      inverted:  false
  - platform: gpio
    name: "b8-21"
    pin:
      number: 21
      inverted:  false
  - platform: gpio
    name: "b8-0"
    pin:
      number: 0
      inverted:  false

ads1115:
  - address: 0x48
sensor:
  - platform: ads1115
    multiplexer: 'A0_GND'
    gain: 6.144
    resolution: 16_BITS
    name: "ADS1115 Channel A0-GND"
    update_interval: 5s
  - platform: ads1115
    multiplexer: 'A1_GND'
    gain: 6.144
    name: "ADS1115 Channel A1-GND"
    update_interval: 5s
  - platform: ads1115
    multiplexer: 'A2_GND'
    gain: 6.144
    name: "ADS1115 Channel A2-GND"
    update_interval: 5s
  - platform: ads1115
    multiplexer: 'A3_GND'
    gain: 6.144
    name: "ADS1115 Channel A3-GND"
    update_interval: 5s

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 B4");
download yaml file:

.txt   B4-HA-Without-Tuya.txt (Size: 3.87 KB / Downloads: 98)

Print this item

  B4M ESPHome yaml for home assistant without tuya
Posted by: admin - 01-14-2026, 03:45 AM - Forum: B4M - No Replies

Code:
esphome:
  name: b4
  friendly_name: b4

esp32:
  board: esp32-s3-devkitc-1
  framework:
    type: arduino
   

# Enable logging
logger:
   hardware_uart: USB_SERIAL_JTAG
# Enable Home Assistant API
api:

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

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

pcf8574:
  - id: 'pcf8574_hub_out_1'  # for output channel 0-7| input channel 8-15   
    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: 38
    rx_pin: 39




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

  - platform: gpio
    name: "b4-output01"
    id: "b4_output01"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 4
      mode: OUTPUT
      inverted: true


  - platform: gpio
    name: "b4-output02"
    id: "b4_output02"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 5
      mode: OUTPUT
      inverted: true


  - platform: gpio
    name: "b4-output03"
    id: "b4_output03"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 6
      mode: OUTPUT
      inverted: true


  - platform: gpio
    name: "b4-output04"
    id: "b4_output04"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 7
      mode: OUTPUT
      inverted: true


binary_sensor:
  - platform: gpio
    name: "b4-input01"
    id: "b4_input01"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 0
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "b4-input02"
    id: "b4_input02"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 1
      mode: INPUT
      inverted: true


  - platform: gpio
    name: "b4-input03"
    id: "b4_input03"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 2
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "b4-input04"
    id: "b4_input04"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 3
      mode: INPUT
      inverted: true


##pull-up resistance on PCB
  - platform: gpio
    name: "b8-W1-io47"
    pin:
      number: 47
      inverted: true

  - platform: gpio
    name: "b8-W1-io48"
    pin:
      number: 48
      inverted: true

  - platform: gpio
    name: "b8-W1-io17"
    pin:
      number: 17
      inverted: true

  - platform: gpio
    name: "b8-W1-io40"
    pin:
      number: 40
      inverted: true
## without resistance on PCB
  - platform: gpio
    name: "b8-13"
    pin:
      number: 13
      inverted:  false
  - platform: gpio
    name: "b8-14"
    pin:
      number: 14
      inverted:  false
  - platform: gpio
    name: "b8-21"
    pin:
      number: 21
      inverted:  false
  - platform: gpio
    name: "b8-0"
    pin:
      number: 0
      inverted:  false

ads1115:
  - address: 0x48
sensor:
  - platform: ads1115
    multiplexer: 'A0_GND'
    gain: 6.144
    resolution: 16_BITS
    name: "ADS1115 Channel A0-GND"
    update_interval: 5s
  - platform: ads1115
    multiplexer: 'A1_GND'
    gain: 6.144
    name: "ADS1115 Channel A1-GND"
    update_interval: 5s
  - platform: ads1115
    multiplexer: 'A2_GND'
    gain: 6.144
    name: "ADS1115 Channel A2-GND"
    update_interval: 5s
  - platform: ads1115
    multiplexer: 'A3_GND'
    gain: 6.144
    name: "ADS1115 Channel A3-GND"
    update_interval: 5s

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 B4");
download yaml file:

.txt   B4-HA-Without-Tuya.txt (Size: 3.87 KB / Downloads: 95)

Print this item

  B4 ESP32-S3 IO pins define
Posted by: admin - 01-14-2026, 03:43 AM - Forum: B4 - No Replies

IIC Bus:

SDA:GPIO8
SCL:GPIO18

PCF8574: i2c address:0x24

PCF8574->P0 (digital input-1)
PCF8574->P1 (digital input-2)
PCF8574->P2 (digital input-3)
PCF8574->P3 (digital input-4)

PCF8574->P4 (relay1)
PCF8574->P5 (relay2)
PCF8574->P6 (relay3)
PCF8574->P7 (relay4)

24C02 EPROM i2c address: 0x50
DS3231 RTC i2c address: 0x68
SSD1306 display: i2c address:0x3c
ADS1115 (4CH ADC): i2c address:0x48

Analog input (A1: DC 0-5v)
Analog input (A2: DC 0-5v)
Analog input (A3: DC 4-20mA)
Analog input (A4: DC 4-20mA)


-----------------
1-wire GPIOs (with pull-up resistance on PCB):
1-wire-1:GPIO47
1-wire-2:GPIO48
1-wire-3:GPIO17
1-wire-4:GPIO40
-----------------
free GPIOs (without pull-up resistance on PCB):
GPIO13
GPIO14
GPIO21
-----------------

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:GPIO39
TXD:GPIO38

Tuya module:
RXD:GPIO16
TXD:GPIO15

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
SPI-CS:GPIO9
SPI-CD:GPIO5

Print this item

  B4M ESP32-S3 IO pins define
Posted by: admin - 01-14-2026, 03:42 AM - Forum: B4M - No Replies

IIC Bus:

SDA:GPIO8
SCL:GPIO18

PCF8574: i2c address:0x24

PCF8574->P0 (digital input-1)
PCF8574->P1 (digital input-2)
PCF8574->P2 (digital input-3)
PCF8574->P3 (digital input-4)

PCF8574->P4 (relay1)
PCF8574->P5 (relay2)
PCF8574->P6 (relay3)
PCF8574->P7 (relay4)

24C02 EPROM i2c address: 0x50
DS3231 RTC i2c address: 0x68
SSD1306 display: i2c address:0x3c
ADS1115 (4CH ADC): i2c address:0x48

Analog input (A1: DC 0-5v)
Analog input (A2: DC 0-5v)
Analog input (A3: DC 4-20mA)
Analog input (A4: DC 4-20mA)


-----------------
1-wire GPIOs (with pull-up resistance on PCB):
1-wire-1:GPIO47
1-wire-2:GPIO48
1-wire-3:GPIO17
1-wire-4:GPIO40
-----------------
free GPIOs (without pull-up resistance on PCB):
GPIO13
GPIO14
GPIO21
-----------------

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:GPIO39
TXD:GPIO38

Tuya module:
RXD:GPIO16
TXD:GPIO15

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
SPI-CS:GPIO9
SPI-CD:GPIO5

Print this item

  B24M output mosfet relay load voltage
Posted by: Alex1987new - 01-13-2026, 08:22 AM - Forum: B24M - Replies (3)

Hello
There is info about output mosfet:
24CH MOSFET Outputs, every channel use MAX 10A driver IC

what kind on load I can put on it?
can I connect to ouput 220V? the load will be some lamp 220V 75W
or only DC 12-24V and connecting "-" minus ?

Print this item

  Not able to connect
Posted by: lcs2226 - 01-13-2026, 06:22 AM - Forum: KC868-E16S/E16P - Replies (1)

E19P-V2.3 - address of 192.168.1.200. Cannot login to to web interface. What am I doing wrong, or how can I check connection. I am able to ping device

Thanks.

Print this item

  "KCS" v3.19.0 firmware BIN file download
Posted by: admin - 01-13-2026, 01:17 AM - Forum: "KCS" v3 firmware - Replies (4)

v3.19.0 improvement:
1. Added free GPIO can use by digital input ports
2. Improved home assistant's ability to quickly respond to digital input state changes
3. Renamed digital input ports by (buttons + input) on G1 controller
4. Removed invalid TR humidity sensor on home assistant
5. Fxed mqtt bug with ALR board
6. Fixed bug energy data with N series board.



Attached Files
.zip   KCS_T16M_V3.19.0.zip (Size: 1.09 MB / Downloads: 130)
.zip   KCS_A2V3_V3.19.0.zip (Size: 1.11 MB / Downloads: 126)
.zip   KCS_A6V3_V3.19.0.zip (Size: 1.08 MB / Downloads: 120)
.zip   KCS_A8V3_V3.19.0.zip (Size: 1.13 MB / Downloads: 131)
.zip   KCS_A16V3_V3.19.0.zip (Size: 1.15 MB / Downloads: 161)
.zip   KCS_A32PRO_V3.19.0.zip (Size: 1.11 MB / Downloads: 124)
.zip   KCS_AG8_V3.19.0.zip (Size: 1.09 MB / Downloads: 109)
.zip   KCS_AIO_HYBRID_V3.19.0.zip (Size: 1.32 MB / Downloads: 127)
.zip   KCS_ALR_V3.19.0.zip (Size: 1.08 MB / Downloads: 116)
.zip   KCS_B8_V3.19.0.zip (Size: 1.14 MB / Downloads: 113)
.zip   KCS_B8M_V3.19.0.zip (Size: 1.14 MB / Downloads: 147)
.zip   KCS_B16_V3.19.0.zip (Size: 1.14 MB / Downloads: 112)
.zip   KCS_B16M_V3.19.0.zip (Size: 1.14 MB / Downloads: 115)
.zip   KCS_B24_V3.19.0.zip (Size: 1.14 MB / Downloads: 114)
.zip   KCS_B24M_V3.19.0.zip (Size: 1.14 MB / Downloads: 120)
.zip   KCS_B32M_V3.19.0.zip (Size: 1.14 MB / Downloads: 110)
.zip   KCS_DM16_V3.19.0.zip (Size: 1.11 MB / Downloads: 112)
.zip   KCS_F4_V3.19.0.zip (Size: 1.13 MB / Downloads: 121)
.zip   KCS_F8_V3.19.0.zip (Size: 1.13 MB / Downloads: 114)
.zip   KCS_F16_V3.19.0.zip (Size: 1.14 MB / Downloads: 130)
.zip   KCS_F24_V3.19.0.zip (Size: 1.14 MB / Downloads: 128)
.zip   KCS_F32_V3.19.0.zip (Size: 1.14 MB / Downloads: 124)
.zip   KCS_G1_V3.19.0.zip (Size: 1.1 MB / Downloads: 111)
.zip   KCS_KC_TA_V3.19.0.zip (Size: 1.09 MB / Downloads: 119)
.zip   KCS_N10_V3.19.0.zip (Size: 1 MB / Downloads: 124)
.zip   KCS_N20_V3.19.0.zip (Size: 1 MB / Downloads: 114)
.zip   KCS_N30_V3.19.0.zip (Size: 1 MB / Downloads: 110)
.zip   KCS_N60_V3.19.0.zip (Size: 1.02 MB / Downloads: 112)
.zip   KCS_T32M_V3.19.0.zip (Size: 1.11 MB / Downloads: 113)
.zip   KCS_T64M_V3.19.0.zip (Size: 1.11 MB / Downloads: 112)
.zip   KCS_T128M_V3.19.0.zip (Size: 1.11 MB / Downloads: 112)
.zip   KCS_TR_V3.19.0.zip (Size: 1.06 MB / Downloads: 118)
.zip   KCS_Z1_V3.19.0.zip (Size: 1.24 MB / Downloads: 119)
Print this item

  Feedback: Product line dimensions vs. german cabinet standards and integration densit
Posted by: mkai - 01-12-2026, 08:02 PM - Forum: Suggestions and feedback on KinCony's products - Replies (3)

Hey there, 

First: I find the Kinkony products very compelling and find it amazing what product lines you built always following the open approach of open hardware with schematics and software support for ESPHome!

I want to use several actors in my future house to control 230V and Roller/Shutters with ESPHome, but there are some drawbacks preventing me. I'd like to share my thoughts - maybe for your future products Smile

- The actors should be installed in a "standard german electrical cabinet" following the standard "DIN 43880:1988-12".
- This standard defines division units (DU) of 17.5mm for DIN-rail devices. The standard cabinet provides a width of 12 DU (12x 17.5 = 210mm) per slot.
- All common smart home devices in Germany follow these standards, e.g., HomeMaticIP Wired, Loxone and KNX. These units are available in 2, 4, 6 or 12 division units to maximize the space utilization in cabinets and provide around 1 relay per DU.
- For my Smart Home, I need a bunch of 230V actors supporting 10A (roller shutter) and 16A relays (switchable sockets / lights) and don't have much space left in the existing cabinets, so integration density is crucial.


- Your product line:
-- I find the F16 very compelling, but it exceeds the maximum width of my cabinet slots (262mm F16 vs. 210mm (12DU) cabinet). Costs are ~15 USD/relay.
-- The F8 on the other hand would fit with its 195mm, but only provides a overall poor integration density of 8 relays / 12 DU and has a higher cost per relay (~20 USD/relay).
-- KC868-A8v3 comes with 8x 10A relays, width: 148mm(9 DU), integration density: 8 relays/9DU;  costs: 8USD/relay
   Q: Can't find the schematics for the v3 version. Is there a single PCB variant supporting V12 and V24 power supply (as opposed to the v1 versions where the relays are either 12V or 24V)


--> My conclusion: At the current state none of the products really match by requirements, so I want to share some thoughts:


Summing up my requirements for the ideal cabinet 230V actor:
- 24V power supply
- Device width following 6 or 12 DU DIN Rail widths
- LAN connection (POE would be nice, but 24V power is also available in the cabinet)
- 230V outputs: 10 / 16 A relays  (edit: was 23V, intended: 230V)
- Inputs: Every relay should have one corresponding opto-coupled dry contact input (24-capable)
- Stand-only functionality: Should work without active connection to the home controller / home assistant.
- High integration density: 1 Relay per 1 DU (17.5mm) as provided by competitors (Loxone, Homematic, KNX)
- NO need for additional interfaces (CAN, Tuya, SDCard, analogue in, etc.).
- costs should not exceed 15USD/ relay
- Housing with proper cover is a must. LEDs should indicate active relays. A display does not matter. An additional RGB-LED showing a general device health-status (power okay, ESPHome connected/disconnected) should be enough. 


Additional (unstructured) feedback:
- I like the idea of having input overrides as the switches in the F-series. But for using them as a roller-shutter actor this can lead to severe problems (powering both up -and down of the roller-shutter at once). While accessing the device by software there will be an mutual lock of Up/Down ESPHome (already provided in their sources).
Could you consider replacing the "permanent switches" with buttons and program a software-behaviour like "hold them for momentary-override" or "double click for permanent on/off"?
- The connectors used in your products are rather large. Could you consider using connectors with a smaller footprints? The reduced size could be used for additional relays on this side of the board (especially good for 12 DU units (6 DU for inputs/power and 6 DU for 4 additional relays).
- Did you know that the company Waveshare (e.g., Modbus POE Eth Relay ©) has a nice concept of DIN-rail devices with 2xEthernet/RJ45 POE-in and POE-out? This allows for device chaining, which is super cool for tight cabinet spaces Smile
- Product selector:
-- Please make separate a selection for 12V and 24V.
-- Filter by size / length

My background: Electrical Engineer (PCB design / FPGA). Designed several Atmega 328-based devices for my cabinet and want to upgrade for better HomeAssitant integration. I have many more ideas and would be happy to discuss, if you are interested Smile


Best Regards, sorry for the long post and keep up your good work!

Martin

Print this item