Smart Home Automation Forum

Full Version: KC868-A4 esphome yaml config for home assistant
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
esphome:
  name: kc868-a4
  platform: ESP32
  board: esp32dev

# Enable logging
logger:

# Enable Home Assistant API
api:

ota:
  password: "4d5a388de4f759bf88e71cde7a31af6f"

wifi:
  ssid: "KinCony"
  password: "a12345678"

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Kc868-A4 Fallback Hotspot"
    password: "QOU4hbAjJ5Wb"

captive_portal:

switch:
  - platform: gpio
    name: "light1"
    pin: 2
    inverted: false

  - platform: gpio
    name: "light2"
    pin: 15
    inverted: false
   
  - platform: gpio
    name: "light3"
    pin: 5
    inverted: false
   
  - platform: gpio
    name: "light4"
    pin: 4
    inverted: false
   
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



[attachment=1127]
[attachment=1128]
Hi, i got my A4. Question is: Is it possible to connect A4 to home assistant using KCS firmware?
sure, you can add A4 to home assistant by MQTT, just enable MQTT protocol in KCS webpage.
So your devices doesint have direct communication with home assistant? Sad
if you want device directly communication with home assistant, you can download firmware by ESPHome, not need to use KCS firmware. we suggest use this, now just your question is how to use KCS firmware for home assistant.
Ok, thank you, finnaly added A4 to home assistant Smile
ok, good.