Thread Rating:
  • 2 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Configure KC868-A8 in ESPHome
#22
here is sample config for KC868-A8 input1 trigger output1:

esphome:
name: a8
platform: ESP32
board: esp32dev

i2c:
sda: 4
scl: 5
scan: true
id: bus_a

ethernet:
type: LAN8720
mdc_pin: GPIO23
mdio_pin: GPIO18
clk_mode: GPIO17_OUT
phy_addr: 0

pcf8574:
- id: 'pcf8574_hub_out_1' # for output channel 1-8
address: 0x24

- id: 'pcf8574_hub_in_1' # for input channel 1-8
address: 0x22

switch:
- platform: gpio
name: "light1"
id: light1
pin:
pcf8574: pcf8574_hub_out_1
number: 0
mode: OUTPUT
inverted: true


binary_sensor:
- platform: gpio
name: "input1"
on_press:
then:
- switch.toggle: light1
pin:
pcf8574: pcf8574_hub_in_1
number: 0
mode: INPUT
inverted: true
Reply


Messages In This Thread
Configure KC868-A8 in ESPHome - by fabuena - 07-06-2022, 07:41 AM
RE: Configure KC868-A8 in ESPHome - by admin - 07-06-2022, 01:17 PM
RE: Configure KC868-A8 in ESPHome - by fabuena - 07-06-2022, 02:25 PM
RE: Configure KC868-A8 in ESPHome - by admin - 07-06-2022, 02:47 PM
RE: Configure KC868-A8 in ESPHome - by fabuena - 07-06-2022, 04:43 PM
RE: Configure KC868-A8 in ESPHome - by admin - 07-07-2022, 06:06 AM
RE: Configure KC868-A8 in ESPHome - by fabuena - 07-07-2022, 08:11 AM
RE: Configure KC868-A8 in ESPHome - by admin - 07-07-2022, 10:19 PM
RE: Configure KC868-A8 in ESPHome - by fabuena - 07-07-2022, 11:49 PM
RE: Configure KC868-A8 in ESPHome - by admin - 07-08-2022, 12:07 AM
RE: Configure KC868-A8 in ESPHome - by fabuena - 07-08-2022, 07:40 AM
RE: Configure KC868-A8 in ESPHome - by admin - 07-08-2022, 09:07 AM
RE: Configure KC868-A8 in ESPHome - by juan - 10-04-2022, 08:43 PM
RE: Configure KC868-A8 in ESPHome - by admin - 10-04-2022, 10:13 PM
RE: Configure KC868-A8 in ESPHome - by land88 - 11-16-2022, 08:42 AM
RE: Configure KC868-A8 in ESPHome - by admin - 11-16-2022, 12:48 PM
RE: Configure KC868-A8 in ESPHome - by land88 - 11-16-2022, 02:41 PM
RE: Configure KC868-A8 in ESPHome - by admin - 11-16-2022, 02:59 PM
RE: Configure KC868-A8 in ESPHome - by land88 - 11-16-2022, 03:53 PM
RE: Configure KC868-A8 in ESPHome - by admin - 11-17-2022, 12:10 AM
RE: Configure KC868-A8 in ESPHome - by juan - 12-20-2022, 04:25 PM
RE: Configure KC868-A8 in ESPHome - by admin - 12-21-2022, 02:05 AM

Forum Jump:


Users browsing this thread:
1 Guest(s)