Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
868-A4 pins for esphome
#1
Hi
what pins are used for the different input / outputs on the A4?
I would like make the complet unit with capabilities available to home assistant.
Right now i have the following:



Code:
esphome:
  name: 868-a4
  friendly_name: 868-A4

esp32:
  board: esp32dev
  framework:
    type: arduino

# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

ota:
  password: "xxxxxxxxxxxxxxxxxxxxxxxxxxxx"

wifi:
  ssid: "xxxxxxxx"
  password: "xxxxxx"

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

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

output:
  - platform: esp32_dac
    pin: GPIO25
    id: dac_output2
  - platform: esp32_dac
    pin: GPIO26
    id: dac_output1

light:
  - platform: monochromatic
    output: dac_output1
    name: "KC868-A4-DAC1"
    gamma_correct: 2
    id: dac_light1
  - platform: monochromatic
    output: dac_output2
    name: "KC868-A4-DAC2"
    id: dac_light2
   
sensor:
  - platform: adc
    pin: 34
    name: "ADC-IN"
    update_interval: 5s

dallas:
  - pin: GPIO13
Reply
#2
KC868-A4 ESP32 pin define: https://www.kincony.com/forum/showthread.php?tid=282
KC868-A4 for home asisstant ESPHome yaml file: https://www.kincony.com/forum/showthread.php?tid=2036
Reply
#3
(03-11-2023, 06:32 AM)admin Wrote: KC868-A4 ESP32 pin define: https://www.kincony.com/forum/showthread.php?tid=282
KC868-A4 for home asisstant ESPHome yaml file: https://www.kincony.com/forum/showthread.php?tid=2036

Thank you for replying.

yes i used the ESPHome yaml file as base for the code above. 
But it is missing all the rest of the capabilities.

It would be great to have a esphome template for the KC868-AX with all the hardware capabilities exposed.
This would give new users a good starting point.
Reply
#4
actually the ADC,DAC, DS18B20, RF sender and RF receiver functions, we have made many demo yaml on different A series board. you can see different forum zone maybe you will find it. everyl KC868-A model zone, have ESPHome demo code download link.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)