devices.esphome.io

KinCony KC868-A4

KinCony KC868-A4

Device Type: automate
Electrical Standard: global
Board: esp32

Product

GPIO Pinout

PinFunction
GPIO2Relay1
GPIO15Relay2
GPIO5Relay3
GPIO4Relay4
GPIO2digital input1
GPIO15digital input2
GPIO5digital input3
GPIO4digital input4
GPIO32analog input1
GPIO33analog input2
GPIO34analog input3
GPIO35analog input4
GPIO25analog output1
GPIO26analog output2
GPIO131-Wire GPIO
GPIO18beep
GPIO16RS232_RXD
GPIO17RS232_TXD
GPIO21433MHz Transmitter
GPIO19433MHz Receiver
GPIO23IR Receiver
GPIO22IR Transmitter
GPIO0PCB Button

Additional pinout/design details

Basic Configuration

# Basic Config by Gaetan Caron
substitutions:
number: "1"
device_name: kc868-a4-${number}
device_description: Kincony kc868-a4
friendly_name: kc868-a4 ${number}
esphome:
name: ${device_name}
comment: ${device_description}
esp32:
board: esp32dev
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "your api key"
ota:
password: "your ota password"
wifi:
ssid: "KinCony"
password: "a12345678"
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Kc868-A4 Fallback Hotspot"
password: "1234Ab"
text_sensor:
- platform: wifi_info
ip_address:
name: ESP IP Address
ssid:
name: ESP Connected SSID
bssid:
name: ESP Connected BSSID
mac_address:
name: ESP Mac Wifi Address
captive_portal:
one_wire:
#enable temperature bus
- platform: gpio
pin: 13
switch:
- platform: gpio
name: "Relay 1"
pin: 2
inverted: false
- platform: gpio
name: "Relay 2"
pin: 15
inverted: false
- platform: gpio
name: "Relay 3"
pin: 5
inverted: false
- platform: gpio
name: "Relay 4"
pin: 4
inverted: false
# enable use of internal buzzer
- platform: gpio
id: buzzer
name: "buzzer"
pin: 18
binary_sensor:
- platform: gpio
name: "input1"
pin:
number: 36
inverted: true
- platform: gpio
name: "input2"
pin:
number: 39
inverted: true
- platform: gpio
name: "input3"
pin:
number: 27
inverted: true
- platform: gpio
name: "input4"
pin:
number: 14
inverted: true
# enable use of internal button
- platform: gpio
pin:
number: 0
inverted: true
mode: INPUT_PULLUP
name: "PCB Button"
sensor:
# statistic sensor for convenience
- platform: uptime
name: ${friendly_name} Uptime
unit_of_measurement: minutes
filters:
- lambda: return x / 60.0;
- platform: wifi_signal
name: ${friendly_name} Signal
update_interval: 60s
#ds18b20 on temperature external bus
- platform: dallas_temp
address: #sensor address
resolution: 12
name: "t#1"
accuracy_decimals: 3
update_interval: 1000ms
#analog input, calibrate with your board
- platform: adc
pin: 32
attenuation: auto
name: "Ain 3"
filters:
- calibrate_linear:
method: exact
datapoints:
# Map sensor value vs true value to calibrate volt
- 0.07 -> 0.0
- 0.24 -> 0.347
- 3.13 -> 4.65
update_interval: 1s
- platform: adc
pin: 33
attenuation: auto
name: "Ain 4"
filters:
- calibrate_linear:
method: exact
datapoints:
# Map sensor value vs true value to calibrate volt
- 0.07 -> 0.0
- 0.24 -> 0.347
- 3.13 -> 4.65
update_interval: 1s
- platform: adc
pin: 34
attenuation: auto
unit_of_measurement: "Ma"
name: "Ain 1"
filters:
- calibrate_linear:
method: exact
datapoints:
# Map sensor value vs true value to calibrate current
- 0.07 -> 0.0
- 0.34 -> 2.24
- 3.03 -> 20.12
update_interval: 1s
- platform: adc
pin: 35
attenuation: auto
unit_of_measurement: "Ma"
name: "Ain 2"
filters:
- calibrate_linear:
method: exact
datapoints:
# Map sensor value vs true value to calibrate current
- 0.07 -> 0.0
- 0.34 -> 2.24
- 3.03 -> 20.12
update_interval: 1s
#dac use basic
output:
- platform: esp32_dac
pin: 25
id: "Aout1"
- platform: esp32_dac
pin: 26
id: "Aout2"
light:
- platform: monochromatic
output: Aout1
name: "Aout1"
gamma_correct: 0
id: Aout_1
- platform: monochromatic
output: Aout2
name: "Aout2"
gamma_correct: 0
id: Aout_2
Edit this page on GitHub