Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 9,200
» Latest member: peaceinwar
» Forum threads: 4,092
» Forum posts: 20,521

Full Statistics

Online Users
There are currently 94 online users.
» 0 Member(s) | 80 Guest(s)
Amazonbot, Applebot, Baidu, PetalBot, Semrush, bot

Latest Threads
Request for 230VAC LEDs /...
Forum: Development
Last Post: benoitd54
1 hour ago
» Replies: 2
» Views: 11
KC868-a6 2 analog output...
Forum: KC868-A6
Last Post: bikovalexand
2 hours ago
» Replies: 6
» Views: 86
Multiple phase L1,L2,L3
Forum: N20
Last Post: admin
11 hours ago
» Replies: 5
» Views: 337
Single-family home automa...
Forum: DIY Project
Last Post: Jan_W
Yesterday, 06:07 AM
» Replies: 3
» Views: 124
Kincony A4s
Forum: KC868-A4S
Last Post: admin
06-15-2026, 11:27 PM
» Replies: 1
» Views: 47
"KCS" v3.25.0 firmware BI...
Forum: "KCS" v3 firmware
Last Post: admin
06-15-2026, 11:26 PM
» Replies: 9
» Views: 801
The watch shows the wrong...
Forum: KC868-A series and Uair Smart Controller
Last Post: admin
06-15-2026, 11:25 PM
» Replies: 1
» Views: 56
KC868-A16v3 integration w...
Forum: KC868-A series and Uair Smart Controller
Last Post: rosnoteh
06-15-2026, 08:26 PM
» Replies: 2
» Views: 165
[Arduino IDE demo source ...
Forum: KC868-A8S
Last Post: admin
06-15-2026, 06:16 AM
» Replies: 0
» Views: 62
Tiny Alarm board after fl...
Forum: TA
Last Post: admin
06-14-2026, 11:19 AM
» Replies: 7
» Views: 65

  KinCony A32 Pro 32 Channel ESP32 Relay Board released
Posted by: admin - 04-14-2024, 01:14 AM - Forum: News - No Replies

KinCony A32 Pro ESP32 relay board based on ESP32-S3-WROOM-1U (N16R8) wifi chip, it have 32 manual control switch buttons can turn ON/OFF relay even if system is broken. Support 32 channel relay output and 2 channel dc 0-10v dimmer output, 2 channel 1-wire GPIOs, 4 channel analog input ports. It support 4G module (SIM7600 series) for SMS, voice call, GPRS communication for Tuya mobile application. SIM7600 module also support GPS, just need connect IPEX extender GPS antena. Download KCS firmware , use SMS or call to turn ON/OFF relay will be very easy for home automation DIY. LCD display will show wifi and ethernet IP address and 4G connection state and Tuya connection state. You can write any code by Arduino IDE / MicroPython / ESP-IDF development tool to ESP32 module. We will supply arduino demo code for different samples. Everyone can modify and change the code for your own smart home automation system project. it support use by ESPHome for home assistant or tasmota firmware (Note: tasmota support INPUT + OUTPUT total 32 channel) for smart home automation DIY.
[Image: A32Pro-1.jpg]
[Image: A32Pro-2.jpg]
[Image: A32Pro_diagram.jpg]
Model No. KinCony A32 Pro
Description: KinCony 32 Channel ESP32-S3 Relay Controller - A32 Pro
Power supply: 12V DC
Processor: ESP32-S3-WROOM-1U (N16R8)
PCB Size: 250mm*122mm
interfaces: Ethernet(RJ45)-LAN 100Mbps IPv4/IPv6,WiFi,RS485,Bluetooth,USB,SIM7600 Series 4G Module(optional),LCD,RF433MHz Receiver
Outputs:
32CH Relay Outputs, every channel have "COM,NO":250VAC 7A
2CH 0-10v dc
Inputs:
Inputs 2 analog input DC 0-5V (AI1,AI2)
2 analog input 4-20mA (AI3,AI4)
40 channel dry contact inputs
32 manual control buttons
3 buttons: S1:ESP32 Reset S2:ESP32 Download S3: Tuya module Reset
1-Wire GPIO: 2CH

Print this item

  Extra questions
Posted by: Apo - 04-12-2024, 07:51 PM - Forum: KC868-A32/A32 Pro - Replies (4)

Hi, 
I have been looking for a suitable iot solution for my home to control all the lights while im away but also work with hard wired switches as the wifi might fail in my location. I have a large home that will probably require 3-4 boards for all the lights to be controlled. This will all be done with these boards and esp-home. This seems like the perfect solution for me as it is the biggest board i have found but before ordering i have some questions. 

1. On the Youtube video it says the relays are 270VAC 10Amp but on the website it says 220VAC. 220VAC would not work so i would like to check that its 270VAC.

2. As this board already has a ethernet connection is it possible to power the board with POE (power over ethernet) ?

3. As this board is large and has alot of relays is it possible to easily swap a damaged/faulty relay so a whole board replacement is not necessary?

4. Is it reliable as i want this as a long term solution for my home. The relays will be used very frequently as i will use it for my lights and it is quite possible that all the relays will be on at one time. Is it fine for all the relays to be on at the same time for a long time?

5. As my house is getting built i will specifically wire the switches and lights for use with this board but it will be installed by professionals. Are there any certifications or qualifications for the board to make sure the professionals will approve of the project? Eu specific?

6. If a board dose fail or is dead on arrival dose it have any warranty period or free replacement?

7. Is the board available with just the case and the board as the cables in the kit are not needed?

8. Is there a maximum distance between the board and the switches/lights? 

9. Is it possible to get a small trial board with fewer relays to asses quality of the product and integration?

10. Anyone else who has this board, do you recommend it and if not do you have any good alternatives?

Thanks so much for further discussion please send me a message directly or comment below.
Sincerely: Apo

Print this item

Question M30
Posted by: Antonioc - 04-12-2024, 07:48 AM - Forum: KC868-M16 / M1 / MB / M30 - Replies (1)

Hola quisiera saber que tipo de esp32 lleva, para poder seleccionarlo en el ide de Arduino.
 y El código necesario para ESPHOME.

Print this item

  Control defaults to TCP after power cut
Posted by: Steve@ctrl - 04-12-2024, 06:54 AM - Forum: KC868-HxB series Smart Controller - Replies (3)

Hi there 

I have an issues with the KC868-Server unit. The unit is set to MQTT work mode, but sometimes after a power cut the controller reverts back to TCP mode. How can I set it to always start in MQTT mode?

Print this item

  [Arduino code for KC868-A32 Pro]-04 dubug 4G module AT command using serial port
Posted by: admin - 04-12-2024, 06:39 AM - Forum: KC868-A32/A32 Pro - No Replies

Code:
void setup() {
  Serial.begin(115200);
  Serial2.begin(115200);
}

void loop() {
  while (Serial.available()) {
    //  delay(1);
      Serial2.write(Serial.read());
  }
  while (Serial2.available()) {
       Serial.write(Serial2.read());
  }
}
   

Print this item

  how to use ESP32-S3 USB port as common serial port in arduino IDE
Posted by: admin - 04-12-2024, 06:37 AM - Forum: KC868-A32/A32 Pro - No Replies

Code:
void setup() {
  // put your setup code here, to run once:
Serial.begin(115200);
}

void loop() {
  // put your main code here, to run repeatedly:
Serial.print("Test with KinCony A32B Pro Serail");
}
make sure your setting as these image:
   
   

Print this item

  [Arduino code for KC868-A32 Pro]-03 read / write by RS485
Posted by: admin - 04-12-2024, 06:34 AM - Forum: KC868-A32/A32 Pro - No Replies

Code:
#include <arduino.h>
#include "HardwareSerial.h"
String comdata1,comdata2;
HardwareSerial my485Serial(1);
void setup() {
  // put your setup code here, to run once:
  Serial.begin(115200);
  my485Serial.begin(9600,SERIAL_8N1,8,9);///rx:32  tx:33
  Serial.println("UsbSerial say hello");
  my485Serial.println("R485 say hello");
}

void loop() {
  // put your main code here, to run repeatedly:
 
    while (my485Serial.available() > 0) {
      delay(100);
      comdata1 = my485Serial.readString();
      my485Serial.print("R485.readString:");
      my485Serial.println(comdata1);
    }
    while (Serial.available() > 0) {
        delay(100);
      comdata1 = Serial.readString();
      Serial.print("UsbSerial.readString:");
      Serial.println(comdata1);
    }
}
source code download:

.zip   RS485.zip (Size: 475 bytes / Downloads: 586)

Print this item

  [Arduino code for KC868-A32 Pro]-02 read digital input by XL9535
Posted by: admin - 04-12-2024, 06:32 AM - Forum: KC868-A32/A32 Pro - No Replies

Code:
#include <PCA95x5.h>

PCA9555 ioex;

void setup() {
    Serial.begin(115200);
    delay(2000);

    Wire.begin(11,10,40000);
    ioex.attach(Wire,0x24);
    ioex.polarity(PCA95x5::Polarity::ORIGINAL_ALL);
    ioex.direction(PCA95x5::Direction::IN_ALL);
}

void loop() {
    Serial.println(ioex.read(), BIN);
    delay(1000);
}

source code download:

.zip   XL9535_input.zip (Size: 372 bytes / Downloads: 547)
before use XL9535 chip, you need to install PCA95x5 arduino library:
[Image: attachment.php?aid=5044]

Print this item

  [Arduino code for KC868-A32 Pro]-01 Control relay by XL9535
Posted by: admin - 04-12-2024, 06:28 AM - Forum: KC868-A32/A32 Pro - No Replies

Code:
#include <PCA95x5.h>

PCA9555 ioex;

void setup() {
    Serial.begin(115200);
    delay(100);

    Wire.begin(11,10,100000);
    ioex.attach(Wire,0x21);
    ioex.polarity(PCA95x5::Polarity::ORIGINAL_ALL);
    ioex.direction(PCA95x5::Direction::OUT_ALL);
    ioex.write(PCA95x5::Level::H_ALL);
    delay(2000);
}

void loop() {
    for (size_t i = 0; i < 16; ++i) {
        Serial.print("set port low: ");  //turn ON relay
        Serial.println(i);

        ioex.write((PCA95x5::Port::Port)i, PCA95x5::Level::L);
        Serial.println(ioex.read(), BIN);
        delay(500);
    }

    for (size_t i = 0; i < 16; ++i) {
        Serial.print("set port high: "); //turn OFF relay
        Serial.println(i);

        ioex.write((PCA95x5::Port::Port)i, PCA95x5::Level::H);
        Serial.println(ioex.read(), BIN);
        delay(500);
    }
}
source code download:

.zip   XL9535_output.zip (Size: 492 bytes / Downloads: 629)

before use XL9535 chip, you need to install PCA95x5 arduino library:
   

Print this item

  A32 Pro ESPHome yaml for home assistant
Posted by: admin - 04-12-2024, 06:21 AM - Forum: KC868-A32/A32 Pro - Replies (1)

   

Code:
esphome:
  name: a32-pro
  friendly_name: a32-Pro
  platformio_options:
    board_build.flash_mode: dio

esp32:
  board: esp32-s3-devkitc-1
  framework:
    type: esp-idf

# Enable logging
logger:
  hardware_uart: USB_SERIAL_JTAG

# Enable Home Assistant API
api:

# ota:
#   password: "5f17bccba50c65f60200db69f1b1ebbe"

# wifi:
#   ssid: KinCony
#   password: a12345678

#   # Enable fallback hotspot (captive portal) in case wifi connection fails
#   ap:
#     ssid: "A32-Pro Fallback Hotspot"
#     password: "25JYfblp8QJP"

# captive_portal:

ethernet:
  type: W5500
  clk_pin: GPIO42
  mosi_pin: GPIO44
  miso_pin: GPIO40
  cs_pin: GPIO39
  interrupt_pin: GPIO41
  reset_pin: GPIO43

i2c:
   - id: bus_a
     sda: 11
     scl: 10
     scan: true
     frequency: 400kHz

xl9535:
  - id: xl9535_hub_out1 # for output channel 1-16
    address: 0x21
  - id: xl9535_hub_out2 # for output channel 17-32
    address: 0x22
  - id: xl9535_hub_in1 # for input channel 1-16
    address: 0x24
  - id: xl9535_hub_in2 # for input channel 17-32
    address: 0x25

pcf8574:
  - id: 'pcf8574_in_3'  # for input channel 33-40
    address: 0x23

uart:
  - id: uart_1
    baud_rate: 9600
    debug:
      direction: BOTH
      dummy_receiver: true
      after:
        timeout: 10ms
    tx_pin: 9
    rx_pin: 8

  - id: uart_tuya
    baud_rate: 115200
    debug:
      direction: BOTH
      dummy_receiver: true
      after:
        timeout: 10ms
    tx_pin: 15
    rx_pin: 16

  - id: uart_sim7600
    baud_rate: 115200
    debug:
      direction: BOTH
      dummy_receiver: true
      after:
        timeout: 10ms
      sequence:
        - lambda: UARTDebug::log_string(direction, bytes);
    tx_pin: 18
    rx_pin: 17

switch:

  - platform: gpio
    pin: 45
    name: "LED"

  - platform: uart
    uart_id: uart_1
    name: "RS485 Button"
    data: [0x11, 0x22, 0x33, 0x44, 0x55]

  - platform: uart
    uart_id: uart_sim7600
    name: "UART 4G"
    data: "AT+CGSN\r\n" # read 4G SIM7600 ID

  # - platform: uart
  #   uart_id: uart_tuya
  #   name: "UART TUYA2"
  #   data: [0x55, 0xaa, 0x03, 0x00, 0x00, 0x01, 0x01, 0x04]

  - platform: gpio
    name: A32 Pro Switch01
    pin:
      xl9535: xl9535_hub_out1
      number: 0
      mode: OUTPUT
      inverted: true
  - platform: gpio
    name: A32 Pro Switch02
    pin:
      xl9535: xl9535_hub_out1
      number: 1
      mode: OUTPUT
      inverted: true
  - platform: gpio
    name: A32 Pro Switch03
    pin:
      xl9535: xl9535_hub_out1
      number: 2
      mode: OUTPUT
      inverted: true
  - platform: gpio
    name: A32 Pro Switch04
    pin:
      xl9535: xl9535_hub_out1
      number: 3
      mode: OUTPUT
      inverted: true
  - platform: gpio
    name: A32 Pro Switch05
    pin:
      xl9535: xl9535_hub_out1
      number: 4
      mode: OUTPUT
      inverted: true
  - platform: gpio
    name: A32 Pro Switch06
    pin:
      xl9535: xl9535_hub_out1
      number: 5
      mode: OUTPUT
      inverted: true
  - platform: gpio
    name: A32 Pro Switch07
    pin:
      xl9535: xl9535_hub_out1
      number: 6
      mode: OUTPUT
      inverted: true
  - platform: gpio
    name: A32 Pro Switch08
    pin:
      xl9535: xl9535_hub_out1
      number: 7
      mode: OUTPUT
      inverted: true
  - platform: gpio
    name: A32 Pro Switch09
    pin:
      xl9535: xl9535_hub_out1
      number: 10
      mode: OUTPUT
      inverted: true
  - platform: gpio
    name: A32 Pro Switch10
    pin:
      xl9535: xl9535_hub_out1
      number: 11
      mode: OUTPUT
      inverted: true
  - platform: gpio
    name: A32 Pro Switch11
    pin:
      xl9535: xl9535_hub_out1
      number: 12
      mode: OUTPUT
      inverted: true
  - platform: gpio
    name: A32 Pro Switch12
    pin:
      xl9535: xl9535_hub_out1
      number: 13
      mode: OUTPUT
      inverted: true
  - platform: gpio
    name: A32 Pro Switch13
    pin:
      xl9535: xl9535_hub_out1
      number: 14
      mode: OUTPUT
      inverted: true
  - platform: gpio
    name: A32 Pro Switch14
    pin:
      xl9535: xl9535_hub_out1
      number: 15
      mode: OUTPUT
      inverted: true
  - platform: gpio
    name: A32 Pro Switch15
    pin:
      xl9535: xl9535_hub_out1
      number: 16
      mode: OUTPUT
      inverted: true
  - platform: gpio
    name: A32 Pro Switch16
    pin:
      xl9535: xl9535_hub_out1
      number: 17
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: A32 Pro Switch17
    pin:
      xl9535: xl9535_hub_out2
      number: 0
      mode: OUTPUT
      inverted: true
  - platform: gpio
    name: A32 Pro Switch18
    pin:
      xl9535: xl9535_hub_out2
      number: 1
      mode: OUTPUT
      inverted: true
  - platform: gpio
    name: A32 Pro Switch19
    pin:
      xl9535: xl9535_hub_out2
      number: 2
      mode: OUTPUT
      inverted: true
  - platform: gpio
    name: A32 Pro Switch20
    pin:
      xl9535: xl9535_hub_out2
      number: 3
      mode: OUTPUT
      inverted: true
  - platform: gpio
    name: A32 Pro Switch21
    pin:
      xl9535: xl9535_hub_out2
      number: 4
      mode: OUTPUT
      inverted: true
  - platform: gpio
    name: A32 Pro Switch22
    pin:
      xl9535: xl9535_hub_out2
      number: 5
      mode: OUTPUT
      inverted: true
  - platform: gpio
    name: A32 Pro Switch23
    pin:
      xl9535: xl9535_hub_out2
      number: 6
      mode: OUTPUT
      inverted: true
  - platform: gpio
    name: A32 Pro Switch24
    pin:
      xl9535: xl9535_hub_out2
      number: 7
      mode: OUTPUT
      inverted: true
  - platform: gpio
    name: A32 Pro Switch25
    pin:
      xl9535: xl9535_hub_out2
      number: 10
      mode: OUTPUT
      inverted: true
  - platform: gpio
    name: A32 Pro Switch26
    pin:
      xl9535: xl9535_hub_out2
      number: 11
      mode: OUTPUT
      inverted: true
  - platform: gpio
    name: A32 Pro Switch27
    pin:
      xl9535: xl9535_hub_out2
      number: 12
      mode: OUTPUT
      inverted: true
  - platform: gpio
    name: A32 Pro Switch28
    pin:
      xl9535: xl9535_hub_out2
      number: 13
      mode: OUTPUT
      inverted: true
  - platform: gpio
    name: A32 Pro Switch29
    pin:
      xl9535: xl9535_hub_out2
      number: 14
      mode: OUTPUT
      inverted: true
  - platform: gpio
    name: A32 Pro Switch30
    pin:
      xl9535: xl9535_hub_out2
      number: 15
      mode: OUTPUT
      inverted: true
  - platform: gpio
    name: A32 Pro Switch31
    pin:
      xl9535: xl9535_hub_out2
      number: 16
      mode: OUTPUT
      inverted: true
  - platform: gpio
    name: A32 Pro Switch32
    pin:
      xl9535: xl9535_hub_out2
      number: 17
      mode: OUTPUT
      inverted: true

binary_sensor:
  - platform: gpio
    name: A32 Pro DI01
    pin:
      xl9535: xl9535_hub_in1
      number: 0
      mode: INPUT
      inverted: true
  - platform: gpio
    name: A32 Pro DI02
    pin:
      xl9535: xl9535_hub_in1
      number: 1
      mode: INPUT
      inverted: true
  - platform: gpio
    name: A32 Pro DI03
    pin:
      xl9535: xl9535_hub_in1
      number: 2
      mode: INPUT
      inverted: true
  - platform: gpio
    name: A32 Pro DI04
    pin:
      xl9535: xl9535_hub_in1
      number: 3
      mode: INPUT
      inverted: true
  - platform: gpio
    name: A32 Pro DI05
    pin:
      xl9535: xl9535_hub_in1
      number: 4
      mode: INPUT
      inverted: true
  - platform: gpio
    name: A32 Pro DI06
    pin:
      xl9535: xl9535_hub_in1
      number: 5
      mode: INPUT
      inverted: true
  - platform: gpio
    name: A32 Pro DI07
    pin:
      xl9535: xl9535_hub_in1
      number: 6
      mode: INPUT
      inverted: true
  - platform: gpio
    name: A32 Pro DI08
    pin:
      xl9535: xl9535_hub_in1
      number: 7
      mode: INPUT
      inverted: true
  - platform: gpio
    name: A32 Pro DI09
    pin:
      xl9535: xl9535_hub_in1
      number: 10
      mode: INPUT
      inverted: true
  - platform: gpio
    name: A32 Pro DI10
    pin:
      xl9535: xl9535_hub_in1
      number: 11
      mode: INPUT
      inverted: true
  - platform: gpio
    name: A32 Pro DI11
    pin:
      xl9535: xl9535_hub_in1
      number: 12
      mode: INPUT
      inverted: true
  - platform: gpio
    name: A32 Pro DI12
    pin:
      xl9535: xl9535_hub_in1
      number: 13
      mode: INPUT
      inverted: true
  - platform: gpio
    name: A32 Pro DI13
    pin:
      xl9535: xl9535_hub_in1
      number: 14
      mode: INPUT
      inverted: true
  - platform: gpio
    name: A32 Pro DI14
    pin:
      xl9535: xl9535_hub_in1
      number: 15
      mode: INPUT
      inverted: true
  - platform: gpio
    name: A32 Pro DI15
    pin:
      xl9535: xl9535_hub_in1
      number: 16
      mode: INPUT
      inverted: true
  - platform: gpio
    name: A32 Pro DI16
    pin:
      xl9535: xl9535_hub_in1
      number: 17
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "A32 Pro TMP1"
    pin:
      number: 1
      inverted: true


  - platform: gpio
    name: "A32 Pro TMP2"
    pin:
      number: 2
      inverted: true

  - platform: gpio
    name: "A32 Pro DL"
    pin:
      number: 0
      inverted: true

  - platform: gpio
    name: "A32 Pro DTUYA"
    pin:
      number: 21
      inverted: true

  - platform: gpio
    name: A32 Pro DI17
    pin:
      xl9535: xl9535_hub_in2
      number: 0
      mode: INPUT
      inverted: true
  - platform: gpio
    name: A32 Pro DI18
    pin:
      xl9535: xl9535_hub_in2
      number: 1
      mode: INPUT
      inverted: true
  - platform: gpio
    name: A32 Pro DI19
    pin:
      xl9535: xl9535_hub_in2
      number: 2
      mode: INPUT
      inverted: true
  - platform: gpio
    name: A32 Pro DI20
    pin:
      xl9535: xl9535_hub_in2
      number: 3
      mode: INPUT
      inverted: true
  - platform: gpio
    name: A32 Pro DI21
    pin:
      xl9535: xl9535_hub_in2
      number: 4
      mode: INPUT
      inverted: true
  - platform: gpio
    name: A32 Pro DI22
    pin:
      xl9535: xl9535_hub_in2
      number: 5
      mode: INPUT
      inverted: true
  - platform: gpio
    name: A32 Pro DI23
    pin:
      xl9535: xl9535_hub_in2
      number: 6
      mode: INPUT
      inverted: true
  - platform: gpio
    name: A32 Pro DI24
    pin:
      xl9535: xl9535_hub_in2
      number: 7
      mode: INPUT
      inverted: true
  - platform: gpio
    name: A32 Pro DI25
    pin:
      xl9535: xl9535_hub_in2
      number: 10
      mode: INPUT
      inverted: true
  - platform: gpio
    name: A32 Pro DI26
    pin:
      xl9535: xl9535_hub_in2
      number: 11
      mode: INPUT
      inverted: true
  - platform: gpio
    name: A32 Pro DI27
    pin:
      xl9535: xl9535_hub_in2
      number: 12
      mode: INPUT
      inverted: true
  - platform: gpio
    name: A32 Pro DI28
    pin:
      xl9535: xl9535_hub_in2
      number: 13
      mode: INPUT
      inverted: true
  - platform: gpio
    name: A32 Pro DI29
    pin:
      xl9535: xl9535_hub_in2
      number: 14
      mode: INPUT
      inverted: true
  - platform: gpio
    name: A32 Pro DI30
    pin:
      xl9535: xl9535_hub_in2
      number: 15
      mode: INPUT
      inverted: true
  - platform: gpio
    name: A32 Pro DI31
    pin:
      xl9535: xl9535_hub_in2
      number: 16
      mode: INPUT
      inverted: true
  - platform: gpio
    name: A32 Pro DI32
    pin:
      xl9535: xl9535_hub_in2
      number: 17
      mode: INPUT
      inverted: true

  - platform: gpio
    name: A32 Pro DI33
    pin:
      pcf8574: pcf8574_in_3
      number: 0
      mode: INPUT
      inverted: true

  - platform: gpio
    name: A32 Pro DI34
    pin:
      pcf8574: pcf8574_in_3
      number: 1
      mode: INPUT
      inverted: true

  - platform: gpio
    name: A32 Pro DI35
    pin:
      pcf8574: pcf8574_in_3
      number: 2
      mode: INPUT
      inverted: true

  - platform: gpio
    name: A32 Pro DI36
    pin:
      pcf8574: pcf8574_in_3
      number: 3
      mode: INPUT
      inverted: true

  - platform: gpio
    name: A32 Pro DI37
    pin:
      pcf8574: pcf8574_in_3
      number: 4
      mode: INPUT
      inverted: true

  - platform: gpio
    name: A32 Pro DI38
    pin:
      pcf8574: pcf8574_in_3
      number: 5
      mode: INPUT
      inverted: true

  - platform: gpio
    name: A32 Pro DI39
    pin:
      pcf8574: pcf8574_in_3
      number: 6
      mode: INPUT
      inverted: true

  - platform: gpio
    name: A32 Pro DI40
    pin:
      pcf8574: pcf8574_in_3
      number: 7
      mode: INPUT
      inverted: true

gp8403:
  id: my_gp8403
  voltage: 10V

output:
  - platform: gp8403
    id: gp8403_output_1
    gp8403_id: my_gp8403
    channel: 0
  - platform: gp8403
    id: gp8403_output_2
    gp8403_id: my_gp8403
    channel: 1

light:
  - platform: monochromatic
    name: "A32 Pro-DAC-0"
    output: gp8403_output_1

  - platform: monochromatic
    name: "A32 Pro-DAC-1"
    output: gp8403_output_2

sensor:
  - platform: adc
    pin: 7
    name: "A32 Pro A1 Voltage"
    update_interval: 5s
    attenuation: 11db
    filters:
      - lambda:
          if (x >= 3.11) {
            return x * 1.60256;
          } else if (x <= 0.15) {
            return 0;
          } else {
            return x * 1.51;
          }
  - platform: adc
    pin: 6
    name: "A32 Pro A2 Voltage"
    update_interval: 5s
    attenuation: 11db
    filters:
      # - multiply: 1.51515
      - lambda:
          if (x >= 3.11) {
            return x * 1.60256;
          } else if (x <= 0.15) {
            return 0;
          } else {
            return x * 1.51;
          }
  - platform: adc
    pin: 5
    name: "A32 Pro A3 Current"
    update_interval: 5s
    unit_of_measurement: mA
    attenuation: 11db
    filters:
      - multiply: 6.66666666
  - platform: adc
    pin: 4
    name: "A32 Pro A4 Current"
    update_interval: 5s
    unit_of_measurement: mA
    attenuation: 11db
    filters:
      - multiply: 6.66666666

web_server:
  port: 80

font:
  - file: "gfonts://Roboto"
    id: roboto
    size: 20

display:
  - platform: ssd1306_i2c
    i2c_id: bus_a
    model: "SSD1306 128x64"
    address: 0x3C
    lambda: |-
      it.printf(0, 0, id(roboto), "A32 Pro");
download yaml:



Attached Files
.txt   A32_Pro-ESPHome.txt (Size: 14.46 KB / Downloads: 862)
Print this item