devices.esphome.io

KinCony KC868-A32

KinCony KC868-A32

Device Type: relay
Electrical Standard: global
Board: esp32

Product

GPIO Pinout

PinFunction
GPIO39ANALOG_A1
GPIO34ANALOG_A2
GPIO36ANALOG_A3
GPIO35ANALOG_A4
GPIO15IIC_Bus_1_SDA
GPIO13IIC_Bus_1_SCL
GPIO4IIC_Bus_2_SDA
GPIO5IIC_Bus_2_SCL
GPIO321-Wire GPIO
GPIO331-Wire GPIO
GPIO141-Wire GPIO
GPIO16RS485_RXD
GPIO14RS485_TXD
GPIO33Extend_Serial_RXD
GPIO32Extend_Serial_TXD

Additional pinout/design details

Basic Configuration

# Basic Config
esphome:
name: KC868-A32
platform: ESP32
board: esp32dev
# Enable logging
logger:
# Enable Home Assistant API
api:
# Example configuration entry
i2c:
- id: bus_a
sda: 15
scl: 13
scan: true
- id: bus_b
sda: 4
scl: 5
scan: true
# Example configuration entry
ethernet:
type: LAN8720
mdc_pin: GPIO23
mdio_pin: GPIO18
clk_mode: GPIO17_OUT
phy_addr: 0
# Example configuration entry
pcf8574:
- id: 'pcf8574_hub_out_1' # for output channel 1-8
i2c_id: bus_a
address: 0x24
- id: 'pcf8574_hub_out_2' # for output channel 9-16
i2c_id: bus_a
address: 0x25
- id: 'pcf8574_hub_out_3' # for output channel 17-24
i2c_id: bus_a
address: 0x21
- id: 'pcf8574_hub_out_4' # for output channel 25-32
i2c_id: bus_a
address: 0x22
- id: 'pcf8574_hub_in_1' # for input channel 1-8
i2c_id: bus_b
address: 0x24
- id: 'pcf8574_hub_in_2' # for input channel 9-16
i2c_id: bus_b
address: 0x25
- id: 'pcf8574_hub_in_3' # for input channel 17-24
i2c_id: bus_b
address: 0x21
- id: 'pcf8574_hub_in_4' # for input channel 25-32
i2c_id: bus_b
address: 0x22
# Individual outputs
switch:
- platform: gpio
name: "a32-light1"
pin:
pcf8574: pcf8574_hub_out_1
number: 0
mode: OUTPUT
inverted: true
- platform: gpio
name: "a32-light2"
pin:
pcf8574: pcf8574_hub_out_1
number: 1
mode: OUTPUT
inverted: true
- platform: gpio
name: "a32-light3"
pin:
pcf8574: pcf8574_hub_out_1
number: 2
mode: OUTPUT
inverted: true
- platform: gpio
name: "a32-light4"
pin:
pcf8574: pcf8574_hub_out_1
number: 3
mode: OUTPUT
inverted: true
- platform: gpio
name: "a32-light5"
pin:
pcf8574: pcf8574_hub_out_1
number: 4
mode: OUTPUT
inverted: true
- platform: gpio
name: "a32-light6"
pin:
pcf8574: pcf8574_hub_out_1
number: 5
mode: OUTPUT
inverted: true
- platform: gpio
name: "a32-light7"
pin:
pcf8574: pcf8574_hub_out_1
number: 6
mode: OUTPUT
inverted: true
- platform: gpio
name: "a32-light8"
pin:
pcf8574: pcf8574_hub_out_1
number: 7
mode: OUTPUT
inverted: true
- platform: gpio
name: "a32-light9"
pin:
pcf8574: pcf8574_hub_out_2
number: 0
mode: OUTPUT
inverted: true
- platform: gpio
name: "a32-light10"
pin:
pcf8574: pcf8574_hub_out_2
number: 1
mode: OUTPUT
inverted: true
- platform: gpio
name: "a32-light11"
pin:
pcf8574: pcf8574_hub_out_2
number: 2
mode: OUTPUT
inverted: true
- platform: gpio
name: "a32-light12"
pin:
pcf8574: pcf8574_hub_out_2
number: 3
mode: OUTPUT
inverted: true
- platform: gpio
name: "a32-light13"
pin:
pcf8574: pcf8574_hub_out_2
number: 4
mode: OUTPUT
inverted: true
- platform: gpio
name: "a32-light14"
pin:
pcf8574: pcf8574_hub_out_2
number: 5
mode: OUTPUT
inverted: true
- platform: gpio
name: "a32-light15"
pin:
pcf8574: pcf8574_hub_out_2
number: 6
mode: OUTPUT
inverted: true
- platform: gpio
name: "a32-light16"
pin:
pcf8574: pcf8574_hub_out_2
number: 7
mode: OUTPUT
inverted: true
- platform: gpio
name: "a32-light17"
pin:
pcf8574: pcf8574_hub_out_3
number: 0
mode: OUTPUT
inverted: true
- platform: gpio
name: "a32-light18"
pin:
pcf8574: pcf8574_hub_out_3
number: 1
mode: OUTPUT
inverted: true
- platform: gpio
name: "a32-light19"
pin:
pcf8574: pcf8574_hub_out_3
number: 2
mode: OUTPUT
inverted: true
- platform: gpio
name: "a32-light20"
pin:
pcf8574: pcf8574_hub_out_3
number: 3
mode: OUTPUT
inverted: true
- platform: gpio
name: "a32-light21"
pin:
pcf8574: pcf8574_hub_out_3
number: 4
mode: OUTPUT
inverted: true
- platform: gpio
name: "a32-light22"
pin:
pcf8574: pcf8574_hub_out_3
number: 5
mode: OUTPUT
inverted: true
- platform: gpio
name: "a32-light23"
pin:
pcf8574: pcf8574_hub_out_3
number: 6
mode: OUTPUT
inverted: true
- platform: gpio
name: "a32-light24"
pin:
pcf8574: pcf8574_hub_out_3
number: 7
mode: OUTPUT
inverted: true
- platform: gpio
name: "a32-light25"
pin:
pcf8574: pcf8574_hub_out_4
number: 0
mode: OUTPUT
inverted: true
- platform: gpio
name: "a32-light26"
pin:
pcf8574: pcf8574_hub_out_4
number: 1
mode: OUTPUT
inverted: true
- platform: gpio
name: "a32-light27"
pin:
pcf8574: pcf8574_hub_out_4
number: 2
mode: OUTPUT
inverted: true
- platform: gpio
name: "a32-light28"
pin:
pcf8574: pcf8574_hub_out_4
number: 3
mode: OUTPUT
inverted: true
- platform: gpio
name: "a32-light29"
pin:
pcf8574: pcf8574_hub_out_4
number: 4
mode: OUTPUT
inverted: true
- platform: gpio
name: "a32-light30"
pin:
pcf8574: pcf8574_hub_out_4
number: 5
mode: OUTPUT
inverted: true
- platform: gpio
name: "a32-light31"
pin:
pcf8574: pcf8574_hub_out_4
number: 6
mode: OUTPUT
inverted: true
- platform: gpio
name: "a32-light32"
pin:
pcf8574: pcf8574_hub_out_4
number: 7
mode: OUTPUT
inverted: true
# Individual outputs
binary_sensor:
- platform: gpio
name: "a32-input1"
pin:
pcf8574: pcf8574_hub_in_1
number: 0
mode: INPUT
inverted: true
- platform: gpio
name: "a32-input2"
pin:
pcf8574: pcf8574_hub_in_1
number: 1
mode: INPUT
inverted: true
- platform: gpio
name: "a32-input3"
pin:
pcf8574: pcf8574_hub_in_1
number: 2
mode: INPUT
inverted: true
- platform: gpio
name: "a32-input4"
pin:
pcf8574: pcf8574_hub_in_1
number: 3
mode: INPUT
inverted: true
- platform: gpio
name: "a32-input5"
pin:
pcf8574: pcf8574_hub_in_1
number: 4
mode: INPUT
inverted: true
- platform: gpio
name: "a32-input6"
pin:
pcf8574: pcf8574_hub_in_1
number: 5
mode: INPUT
inverted: true
- platform: gpio
name: "a32-input7"
pin:
pcf8574: pcf8574_hub_in_1
number: 6
mode: INPUT
inverted: true
- platform: gpio
name: "a32-input8"
pin:
pcf8574: pcf8574_hub_in_1
number: 7
mode: INPUT
inverted: true
- platform: gpio
name: "a32-input9"
pin:
pcf8574: pcf8574_hub_in_2
number: 0
mode: INPUT
inverted: true
- platform: gpio
name: "a32-input10"
pin:
pcf8574: pcf8574_hub_in_2
number: 1
mode: INPUT
inverted: true
- platform: gpio
name: "a32-input11"
pin:
pcf8574: pcf8574_hub_in_2
number: 2
mode: INPUT
inverted: true
- platform: gpio
name: "a32-input12"
pin:
pcf8574: pcf8574_hub_in_2
number: 3
mode: INPUT
inverted: true
- platform: gpio
name: "a32-input13"
pin:
pcf8574: pcf8574_hub_in_2
number: 4
mode: INPUT
inverted: true
- platform: gpio
name: "a32-input14"
pin:
pcf8574: pcf8574_hub_in_2
number: 5
mode: INPUT
inverted: true
- platform: gpio
name: "a32-input15"
pin:
pcf8574: pcf8574_hub_in_2
number: 6
mode: INPUT
inverted: true
- platform: gpio
name: "a32-input16"
pin:
pcf8574: pcf8574_hub_in_2
number: 7
mode: INPUT
inverted: true
- platform: gpio
name: "a32-input17"
pin:
pcf8574: pcf8574_hub_in_3
number: 0
mode: INPUT
inverted: true
- platform: gpio
name: "a32-input18"
pin:
pcf8574: pcf8574_hub_in_3
number: 1
mode: INPUT
inverted: true
- platform: gpio
name: "a32-input19"
pin:
pcf8574: pcf8574_hub_in_3
number: 2
mode: INPUT
inverted: true
- platform: gpio
name: "a32-input20"
pin:
pcf8574: pcf8574_hub_in_3
number: 3
mode: INPUT
inverted: true
- platform: gpio
name: "a32-input21"
pin:
pcf8574: pcf8574_hub_in_3
number: 4
mode: INPUT
inverted: true
- platform: gpio
name: "a32-input22"
pin:
pcf8574: pcf8574_hub_in_3
number: 5
mode: INPUT
inverted: true
- platform: gpio
name: "a32-input23"
pin:
pcf8574: pcf8574_hub_in_3
number: 6
mode: INPUT
inverted: true
- platform: gpio
name: "a32-input24"
pin:
pcf8574: pcf8574_hub_in_3
number: 7
mode: INPUT
inverted: true
- platform: gpio
name: "a32-input25"
pin:
pcf8574: pcf8574_hub_in_4
number: 0
mode: INPUT
inverted: true
- platform: gpio
name: "a32-input26"
pin:
pcf8574: pcf8574_hub_in_4
number: 1
mode: INPUT
inverted: true
- platform: gpio
name: "a32-input27"
pin:
pcf8574: pcf8574_hub_in_4
number: 2
mode: INPUT
inverted: true
- platform: gpio
name: "a32-input28"
pin:
pcf8574: pcf8574_hub_in_4
number: 3
mode: INPUT
inverted: true
- platform: gpio
name: "a32-input29"
pin:
pcf8574: pcf8574_hub_in_4
number: 4
mode: INPUT
inverted: true
- platform: gpio
name: "a32-input30"
pin:
pcf8574: pcf8574_hub_in_4
number: 5
mode: INPUT
inverted: true
- platform: gpio
name: "a32-input31"
pin:
pcf8574: pcf8574_hub_in_4
number: 6
mode: INPUT
inverted: true
- platform: gpio
name: "a32-input32"
pin:
pcf8574: pcf8574_hub_in_4
number: 7
mode: INPUT
inverted: true
# Example configuration entry
sensor:
- platform: adc
pin: 39
name: "analog-1"
update_interval: 10s
attenuation: 12db
- platform: adc
pin: 34
name: "analog-2"
update_interval: 10s
attenuation: 12db
- platform: adc
pin: 36
name: "analog-3"
update_interval: 10s
attenuation: 12db
- platform: adc
pin: 35
name: "analog-4"
update_interval: 10s
attenuation: 12db
Edit this page on GitHub