03-11-2023, 06:14 AM
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:
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