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


Messages In This Thread
868-A4 pins for esphome - by bria_s - 03-11-2023, 06:14 AM
RE: 868-A4 pins for esphome - by admin - 03-11-2023, 06:32 AM
RE: 868-A4 pins for esphome - by bria_s - 03-11-2023, 06:50 AM
RE: 868-A4 pins for esphome - by admin - 03-11-2023, 01:17 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)