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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 9,078
» Latest member: ashutoshsinghrajput0025
» Forum threads: 3,989
» Forum posts: 20,253

Full Statistics

Online Users
There are currently 37 online users.
» 0 Member(s) | 29 Guest(s)
Amazonbot, Applebot, Baidu, Bing, bot

Latest Threads
problem with kc868 has v2
Forum: News
Last Post: Gianfranco Pepi
3 hours ago
» Replies: 3
» Views: 18
Cant flash esphom
Forum: B16M
Last Post: H_spadacini
10 hours ago
» Replies: 9
» Views: 642
Las Firmware ?
Forum: KC868-A16
Last Post: admin
10 hours ago
» Replies: 3
» Views: 50
CRC Errors with ESP Home ...
Forum: N60
Last Post: admin
Yesterday, 07:43 AM
» Replies: 3
» Views: 13
KC868-A8 ethernet work wi...
Forum: KC868-A8
Last Post: admin
Yesterday, 12:23 AM
» Replies: 9
» Views: 7,382
RS485
Forum: DIY Project
Last Post: admin
Yesterday, 12:21 AM
» Replies: 4
» Views: 36
N30 no Energy (kWh)
Forum: "KCS" v3 firmware
Last Post: admin
05-19-2026, 10:21 PM
» Replies: 13
» Views: 160
Questions about KinCony F...
Forum: F16
Last Post: admin
05-19-2026, 12:12 PM
» Replies: 1
» Views: 15
"KCS" v3.25.0 firmware BI...
Forum: "KCS" v3 firmware
Last Post: admin
05-19-2026, 12:03 PM
» Replies: 2
» Views: 204
Energy calculation for ne...
Forum: N30
Last Post: GWS
05-19-2026, 06:23 AM
» Replies: 4
» Views: 54

  G1 cannot flash latest firmware
Posted by: Bodad - 03-12-2026, 09:20 AM - Forum: G1 - Replies (3)

Hi.  My G1 isn't connecting to the mobile network.  This happens regularly.  A simple reboot sometimes corrects this but ultimately, a firmware flash is the only way to reinstate mobile connectivity.  However, when I try to re-flash the G1 with KCS_G1_V3.19.1.bin, the flash    
interface starts the erase process but when the installation process starts, it report that the device has been reset to firmware mode?
   

I'm using Tasmota web installer to flash.  It has always worked before.  How can I re-flash the G1?

Thanks in anticipation.

Print this item

  "KCS" v3.23.2 firmware BIN file download
Posted by: admin - 03-11-2026, 12:13 AM - Forum: "KCS" v3 firmware - Replies (2)

v3.23.2 improvement:
1: fixed undecoded IR signal are currently being reported to Home Assistant via MQTT.
2: fixed an issue where fast-switching relays might cause the system to restart.
3: added support new DM4, DM8, DM32 dimmer board.
4: added OLED screen displays the component loading progress during board startup.
5: added support MQTTS (TLS)



Attached Files
.zip   KCS_A2V3_V3.23.2.zip (Size: 1.16 MB / Downloads: 118)
.zip   KCS_A6V3_V3.23.2.zip (Size: 1.13 MB / Downloads: 110)
.zip   KCS_A8V3_V3.23.2.zip (Size: 1.18 MB / Downloads: 133)
.zip   KCS_A16V3_V3.23.2.zip (Size: 1.2 MB / Downloads: 131)
.zip   KCS_A32PRO_V3.23.2.zip (Size: 1.17 MB / Downloads: 114)
.zip   KCS_AG8_V3.23.2.zip (Size: 1.14 MB / Downloads: 93)
.zip   KCS_AIO_HYBRID_V3.23.2.zip (Size: 1.37 MB / Downloads: 108)
.zip   KCS_ALR_V3.23.2.zip (Size: 1.14 MB / Downloads: 92)
.zip   KCS_B4_V3.23.2.zip (Size: 1.19 MB / Downloads: 87)
.zip   KCS_B4M_V3.23.2.zip (Size: 1.19 MB / Downloads: 95)
.zip   KCS_B8_V3.23.2.zip (Size: 1.19 MB / Downloads: 110)
.zip   KCS_B8M_V3.23.2.zip (Size: 1.19 MB / Downloads: 95)
.zip   KCS_B16_V3.23.2.zip (Size: 1.19 MB / Downloads: 114)
.zip   KCS_B16M_V3.23.2.zip (Size: 1.19 MB / Downloads: 95)
.zip   KCS_B24_V3.23.2.zip (Size: 1.19 MB / Downloads: 95)
.zip   KCS_B24M_V3.23.2.zip (Size: 1.19 MB / Downloads: 90)
.zip   KCS_B32M_V3.23.2.zip (Size: 1.19 MB / Downloads: 96)
.zip   KCS_DM4_V3.23.2.zip (Size: 1.19 MB / Downloads: 91)
.zip   KCS_DM8_V3.23.2.zip (Size: 1.19 MB / Downloads: 97)
.zip   KCS_DM16_V3.23.2.zip (Size: 1.16 MB / Downloads: 83)
.zip   KCS_DM32_V3.23.2.zip (Size: 1.19 MB / Downloads: 96)
.zip   KCS_F4_V3.23.2.zip (Size: 1.18 MB / Downloads: 92)
.zip   KCS_F8_V3.23.2.zip (Size: 1.18 MB / Downloads: 91)
.zip   KCS_F16_V3.23.2.zip (Size: 1.19 MB / Downloads: 125)
.zip   KCS_F24_V3.23.2.zip (Size: 1.19 MB / Downloads: 92)
.zip   KCS_F32_V3.23.2.zip (Size: 1.2 MB / Downloads: 105)
.zip   KCS_G1_V3.23.2.zip (Size: 1.15 MB / Downloads: 96)
.zip   KCS_KC_TA_V3.23.2.zip (Size: 1.15 MB / Downloads: 84)
.zip   KCS_N10_V3.23.2.zip (Size: 1.06 MB / Downloads: 91)
.zip   KCS_N20_V3.23.2.zip (Size: 1.06 MB / Downloads: 91)
.zip   KCS_N30_V3.23.2.zip (Size: 1.06 MB / Downloads: 103)
.zip   KCS_N60_V3.23.2.zip (Size: 1.07 MB / Downloads: 84)
.zip   KCS_T16M_V3.23.2.zip (Size: 1.14 MB / Downloads: 90)
.zip   KCS_T32M_V3.23.2.zip (Size: 1.16 MB / Downloads: 102)
.zip   KCS_T64M_V3.23.2.zip (Size: 1.16 MB / Downloads: 83)
.zip   KCS_T128M_V3.23.2.zip (Size: 1.16 MB / Downloads: 88)
.zip   KCS_TR_V3.23.2.zip (Size: 1.11 MB / Downloads: 87)
.zip   KCS_Z1_V3.23.2.zip (Size: 1.29 MB / Downloads: 96)
Print this item

  "KCS" v2.2.19 firmware BIN file download
Posted by: admin - 03-08-2026, 11:00 PM - Forum: "KCS" v2 firmware system - Replies (2)

v2.2.19 improvement:
1. fixed Tuya app temperature can't work with automation bug.



Attached Files
.zip   KCS_KC868_A8_V2.2.19.zip (Size: 789.73 KB / Downloads: 125)
.zip   KCS_KC868_A8M_V2.2.19.zip (Size: 806.05 KB / Downloads: 86)
.zip   KCS_KC868_A8S_V2.2.19.zip (Size: 807.48 KB / Downloads: 108)
.zip   KCS_KC868_A16_V2.2.19.zip (Size: 797.24 KB / Downloads: 164)
.zip   KCS_KC868_A16S_V2.2.19.zip (Size: 807.61 KB / Downloads: 88)
.zip   KCS_KC868_A32_V2.2.19.zip (Size: 787.34 KB / Downloads: 95)
.zip   KCS_KC868_A32M_V2.2.19.zip (Size: 805.27 KB / Downloads: 85)
.zip   KCS_KC868_A64_V2.2.19.zip (Size: 787.27 KB / Downloads: 88)
.zip   KCS_KC868_A128_V2.2.19.zip (Size: 787.15 KB / Downloads: 85)
.zip   KCS_KC868_AG_V2.2.19.zip (Size: 765.22 KB / Downloads: 80)
.zip   KCS_KC868_AI_V2.2.19.zip (Size: 789.59 KB / Downloads: 89)
.zip   KCS_KC868_AIO_V2.2.19.zip (Size: 807.13 KB / Downloads: 89)
.zip   KCS_KC868_AK_V2.2.19.zip (Size: 767.57 KB / Downloads: 88)
.zip   KCS_KC868_AM_V2.2.19.zip (Size: 783.01 KB / Downloads: 79)
.zip   KCS_KC868_AP_V2.2.19.zip (Size: 785.16 KB / Downloads: 83)
.zip   KCS_KC868_ASR_V2.2.19.zip (Size: 762.28 KB / Downloads: 89)
.zip   KCS_KC868_E16S_V2.2.19.zip (Size: 791.95 KB / Downloads: 84)
.zip   KCS_KC868_UAIR_V2.2.19.zip (Size: 768.45 KB / Downloads: 74)
.zip   KCS_KC868_A2_V2.2.19.zip (Size: 795.73 KB / Downloads: 95)
.zip   KCS_KC868_A4_V2.2.19.zip (Size: 782.69 KB / Downloads: 95)
.zip   KCS_KC868_A4S_V2.2.19.zip (Size: 806.4 KB / Downloads: 107)
.zip   KCS_KC868_A6_V2.2.19.zip (Size: 744.52 KB / Downloads: 158)
Print this item

  A32pro issue
Posted by: Saif Kitany - 03-07-2026, 06:41 PM - Forum: News - Replies (5)

My A32 pro got stuck, no response. 
In tuya app it shows me that the device is online, but when turn on any switch in the app, no response in the device.

Also i can’t login to the device setup by the IP address.

The device shows on the display the word “welcome”, it blinks every 5 seconds, and it doesn’t show the ip address on the display.

What should i do in this case?



Attached Files Thumbnail(s)
   
Print this item

  N60 N30 N20 N10 ARM CPU firmware V20_260305SP
Posted by: admin - 03-06-2026, 08:17 AM - Forum: N60 - Replies (3)

1. support 0.001kwh precision.
   
you can download by bootloader.exe tool by RS485.
ARM BIN file download:

.zip   N102030_KU_V20_260305SP.zip (Size: 14.12 KB / Downloads: 108)

bootloader.exe tool: 
[Image: zip.png]   KC868 Controller Bootloader.zip (Size: 8.56 KB / Downloads: 77)
[Image: attachment.php?aid=8891]   
1. set baud rate=38400bps.
2. open com port.
3. power on Nx board, during LED fast blink when the "bootloader Detect" button right now. Then board will go to bootloader mode.
4. open BIN file
5. press "Download" button, begin download firmware, after finished, press "Run" button, ARM CPU begin work.
[Image: attachment.php?aid=8892]

Print this item

  KC868-A6v3 ESP32-S3 6 channel LoRa relay module
Posted by: mcdave - 03-05-2026, 10:36 PM - Forum: KC868-A6 - Replies (1)

Hello admin,
I am using the KinCony KC868-A6v3 and  kincony ALR lora board and developing custom firmware with Arduino / PlatformIO.
The SSD1306 OLED works with the factory firmware, but when I upload my own firmware the LCD stays blank.
Could you please tell me:

  1. What GPIO pins are used for the OLED I2C (SDA / SCL)?
  2. What is the I2C address (0x3C or 0x3D)?
  3. Do we need to initialize any IO expander or controller before using the OLED?
  4. Do you have a simple Arduino example to initialize the onboard OLED?
Thank you.

Print this item

  Device change after damage
Posted by: OhnsorgeSebastian - 03-05-2026, 09:09 PM - Forum: Getting Started with ESPHome and Home Assistant - Replies (1)

Hi all. I have a question. I am using a B24M configured as MQTT with Home Assistant. After it was damaged, I bought a new device. How can I replace the device while keeping the existing integrations (so that a new device is not created, but it replaces the damaged one)?  From what I see, the device is identified using a UID in the MQTT broker, so I guess I would need to somehow replace that.

Print this item

  KinCony B32M Smart Controller released
Posted by: admin - 03-05-2026, 01:44 AM - Forum: News - No Replies

KinCony B32M ESP32 smart controller based on ESP32-S3-WROOM-1U (N16R8) wifi chip. Support 32 channel MOSFET output, 4 channel 1-wire GPIOs, 3 free GPIOs, 4 channel ADS1115 16bit analog input ports. One SD card using SPI bus. B32M include DS3231 high precision RTC clock chip. LCD display will show wifi and ethernet IP address and Tuya connection state. B32M have RS485 port. You can write any code by Arduino IDE / MicroPython / ESP-IDF development tool to ESP32 module. We will supply Arduino / ESP-IDF 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 for smart home automation DIY. B32M use KCS v3 firmware, it support home assistant auto discovery function by MQTT, so without write any config code (zero code) for home assistant.
[Image: B32M_1.jpg]
Model No. KinCony B32M
Description: KinCony 32 Channel ESP32-S3 Smart Controller – B32M
Power supply: 12-24V DC
Processor: ESP32-S3-WROOM-1U (N16R8)
Size: 264mm*83mm*56mm
interfaces: Ethernet(RJ45)-LAN 100Mbps IPv4/IPv6,WiFi,RS485,Bluetooth,USB-C,LCD,Tuya Module
RTC: DS3231 high precision chip (battery socket on PCB)
SD Card: SPI bus
Installation method: DIN RAIL
LCD: SSD1306 I2C display
Outputs:
32CH MOSFET Outputs, every channel use MAX 10A driver IC
Inputs:
ADS1115 16bit ADC: 2CH analog input DC0-5V (A1,A2) 2CH analog input 4-20mA (A3,A4)
32CH dry contact inputs (optocoupler isolation, long distance circuit for MAX 500 meters cable)
3 buttons: 1:ESP32 Reset 2:ESP32 Download 3:Tuya config
1-Wire GPIO: 4CH (with pull-up resistance on PCB)
free GPIO: 3CH (without pull-up resistance on PCB, connect with ESP32 pin directly)
[Image: B32M_2.jpg]

Print this item

  B32M ESPHome yaml for home assistant without tuya
Posted by: admin - 03-05-2026, 01:32 AM - Forum: B32M - No Replies

Code:
esphome:
  name: b32m
  friendly_name: b32m

esp32:
  board: esp32-s3-devkitc-1
  framework:
    type: arduino

# Enable logging
logger:

# Enable Home Assistant API
api:

ethernet:
  type: W5500
  clk_pin: GPIO1
  mosi_pin: GPIO2
  miso_pin: GPIO41
  cs_pin: GPIO42
  interrupt_pin: GPIO43
  reset_pin: GPIO44

uart:
  - id: uart_1    #RS485
    baud_rate: 9600
    debug:
      direction: BOTH
      dummy_receiver: true
      after:
        timeout: 10ms
    tx_pin: 39
    rx_pin: 38

i2c:
   - id: bus_a
     sda: 8
     scl: 18
     scan: true
     frequency: 400kHz

pcf8574:
  - id: 'pcf8574_hub_in_1'  # for input channel 1-16
    i2c_id: bus_a
    address: 0x22
    pcf8575: true

  - id: 'pcf8574_hub_in_out_1'  # for digital input channel 17-24 & output 1-8
    i2c_id: bus_a
    address: 0x25
    pcf8575: true

  - id: 'pcf8574_hub_out_1'  # for output channel 9-24
    i2c_id: bus_a
    address: 0x24
    pcf8575: true

  - id: 'pcf8574_hub_in_out_2'  # for digital input channel 25--32 & output 25--32
    i2c_id: bus_a
    address: 0x26
    pcf8575: true

binary_sensor:
  - platform: gpio
    name: "b32-input01"
    id: "b32_input01"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 8
      mode: INPUT
      inverted: true


  - platform: gpio
    name: "b32-input02"
    id: "b32_input02"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 9
      mode: INPUT
      inverted: true


  - platform: gpio
    name: "b32-input03"
    id: "b32_input03"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 10
      mode: INPUT
      inverted: true


  - platform: gpio
    name: "b32-input04"
    id: "b32_input04"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 11
      mode: INPUT
      inverted: true


  - platform: gpio
    name: "b32-input05"
    id: "b32_input05"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 12
      mode: INPUT
      inverted: true


  - platform: gpio
    name: "b32-input06"
    id: "b32_input06"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 13
      mode: INPUT
      inverted: true


  - platform: gpio
    name: "b32-input07"
    id: "b32_input07"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 14
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "b32-input08"
    id: "b32_input08"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 15
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "b32-input09"
    id: "b32_input09"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 0
      mode: INPUT
      inverted: true


  - platform: gpio
    name: "b32-input10"
    id: "b32_input10"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 1
      mode: INPUT
      inverted: true


  - platform: gpio
    name: "b32-input11"
    id: "b32_input11"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 2
      mode: INPUT
      inverted: true


  - platform: gpio
    name: "b32-input12"
    id: "b32_input12"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 3
      mode: INPUT
      inverted: true


  - platform: gpio
    name: "b32-input13"
    id: "b32_input13"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 4
      mode: INPUT
      inverted: true


  - platform: gpio
    name: "b32-input14"
    id: "b32_input14"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 5
      mode: INPUT
      inverted: true


  - platform: gpio
    name: "b32-input15"
    id: "b32_input15"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 6
      mode: INPUT
      inverted: true


  - platform: gpio
    name: "b32-input16"
    id: "b32_input16"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 7
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "b32-input17"
    id: "b32_input17"
    pin:
      pcf8574: pcf8574_hub_in_out_1
      number: 0
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "b32-input18"
    id: "b32_input18"
    pin:
      pcf8574: pcf8574_hub_in_out_1
      number: 1
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "b32-input19"
    id: "b32_input19"
    pin:
      pcf8574: pcf8574_hub_in_out_1
      number: 2
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "b32-input20"
    id: "b32_input20"
    pin:
      pcf8574: pcf8574_hub_in_out_1
      number: 3
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "b32-input21"
    id: "b32_input21"
    pin:
      pcf8574: pcf8574_hub_in_out_1
      number: 4
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "b32-input22"
    id: "b32_input22"
    pin:
      pcf8574: pcf8574_hub_in_out_1
      number: 5
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "b32-input23"
    id: "b32_input23"
    pin:
      pcf8574: pcf8574_hub_in_out_1
      number: 6
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "b32-input24"
    id: "b32_input24"
    pin:
      pcf8574: pcf8574_hub_in_out_1
      number: 7
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "b32-input25"
    id: "b32_input25"
    pin:
      pcf8574: pcf8574_hub_in_out_2
      number: 0
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "b32-input26"
    id: "b32_input26"
    pin:
      pcf8574: pcf8574_hub_in_out_2
      number: 1
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "b32-input27"
    id: "b32_input27"
    pin:
      pcf8574: pcf8574_hub_in_out_2
      number: 2
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "b32-input28"
    id: "b32_input28"
    pin:
      pcf8574: pcf8574_hub_in_out_2
      number: 3
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "b32-input29"
    id: "b32_input29"
    pin:
      pcf8574: pcf8574_hub_in_out_2
      number: 4
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "b32-input30"
    id: "b32_input30"
    pin:
      pcf8574: pcf8574_hub_in_out_2
      number: 5
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "b32-input31"
    id: "b32_input31"
    pin:
      pcf8574: pcf8574_hub_in_out_2
      number: 6
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "b32-input32"
    id: "b32_input32"
    pin:
      pcf8574: pcf8574_hub_in_out_2
      number: 7
      mode: INPUT
      inverted: true

##pull-up resistance on PCB
  - platform: gpio
    name: "b32-W1-io48"
    pin:
      number: 48
      inverted: true

  - platform: gpio
    name: "b32-W1-io47"
    pin:
      number: 47
      inverted: true

  - platform: gpio
    name: "b32-W1-io40"
    pin:
      number: 40
      inverted: true

  - platform: gpio
    name: "b32-W1-io7"
    pin:
      number: 7
      inverted: true
## without resistance on PCB
  - platform: gpio
    name: "b32-W1-io13"
    pin:
      number: 13
      inverted: false

  - platform: gpio
    name: "b32-W1-io14"
    pin:
      number: 14
      inverted:  false

  - platform: gpio
    name: "b32-W1-io21"
    pin:
      number: 21
      inverted:  false

  - platform: gpio
    name: "b32-W1-io0"
    pin:
      number: 0
      inverted:  false

switch:
  - platform: gpio
    name: "b32-output01"
    id: b32_output01
    pin:
      pcf8574: pcf8574_hub_in_out_2
      number: 8
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "b32-output02"
    id: b32_output02
    pin:
      pcf8574: pcf8574_hub_in_out_2
      number: 9
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "b32-output03"
    id: b32_output03
    pin:
      pcf8574: pcf8574_hub_in_out_2
      number: 10
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "b32-output04"
    id: b32_output04
    pin:
      pcf8574: pcf8574_hub_in_out_2
      number: 11
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "b32-output05"
    id: b32_output05
    pin:
      pcf8574: pcf8574_hub_in_out_2
      number: 12
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "b32-output06"
    id: b32_output06
    pin:
      pcf8574: pcf8574_hub_in_out_2
      number: 13
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "b32-output07"
    id: b32_output07
    pin:
      pcf8574: pcf8574_hub_in_out_2
      number: 14
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "b32-output08"
    id: b32_output08
    pin:
      pcf8574: pcf8574_hub_in_out_2
      number: 15
      mode: OUTPUT
      inverted: true


  - platform: gpio
    name: "b32-output09"
    id: "b32_output09"
    pin:
      pcf8574: pcf8574_hub_in_out_1
      number: 8
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "b32-output10"
    id: "b32_output10"
    pin:
      pcf8574: pcf8574_hub_in_out_1
      number: 9
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "b32-output11"
    id: "b32_output11"
    pin:
      pcf8574: pcf8574_hub_in_out_1
      number: 10
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "b32-output12"
    id: "b32_output12"
    pin:
      pcf8574: pcf8574_hub_in_out_1
      number: 11
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "b32-output13"
    id: "b32_output13"
    pin:
      pcf8574: pcf8574_hub_in_out_1
      number: 12
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "b32-output14"
    id: "b32_output14"
    pin:
      pcf8574: pcf8574_hub_in_out_1
      number: 13
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "b32-output15"
    id: "b32_output15"
    pin:
      pcf8574: pcf8574_hub_in_out_1
      number: 14
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "b32-output16"
    id: "b32_output16"
    pin:
      pcf8574: pcf8574_hub_in_out_1
      number: 15
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "b32-output17"
    id: b32_output17
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 0
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "b32-output18"
    id: b32_output18
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 1
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "b32-output19"
    id: b32_output19
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 2
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "b32-output20"
    id: b32_output20
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 3
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "b32-output21"
    id: b32_output21
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 4
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "b32-output22"
    id: b32_output22
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 5
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "b32-output23"
    id: b32_output23
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 6
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "b32-output24"
    id: b32_output24
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 7
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "b32-output25"
    id: b32_output25
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 8
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "b32-output26"
    id: b32_output26
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 9
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "b32-output27"
    id: b32_output27
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 10
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "b32-output28"
    id: b32_output28
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 11
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "b32-output29"
    id: b32_output29
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 12
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "b32-output30"
    id: b32_output30
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 13
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "b32-output31"
    id: b32_output31
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 14
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "b32-output32"
    id: b32_output32
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 15
      mode: OUTPUT
      inverted: true

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

ads1115:
  - address: 0x48
sensor:
  - platform: ads1115
    multiplexer: 'A0_GND'
    gain: 6.144
    resolution: 16_BITS
    name: "ADS1115 Channel A0-GND"
    update_interval: 5s
  - platform: ads1115
    multiplexer: 'A1_GND'
    gain: 6.144
    name: "ADS1115 Channel A1-GND"
    update_interval: 5s
  - platform: ads1115
    multiplexer: 'A2_GND'
    gain: 6.144
    name: "ADS1115 Channel A2-GND"
    update_interval: 5s
  - platform: ads1115
    multiplexer: 'A3_GND'
    gain: 6.144
    name: "ADS1115 Channel A3-GND"
    update_interval: 5s

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), "KinCony b32");
download yaml file:

.txt   B32M-HA-without-Tuya.txt (Size: 13.81 KB / Downloads: 103)

Print this item

  B32M ESPHome yaml for home assistant with tuya
Posted by: admin - 03-05-2026, 01:31 AM - Forum: B32M - No Replies

Code:
esphome:
  name: b32m
  friendly_name: b32m
  platformio_options:
    board_build.extra_flags:
      # WIFI_CONTROL_SELF_MODE = 0
      # WIFI_CONTROL_SELF_MODE = 1
      - "-DWIFI_CONTROL_SELF_MODE=1"

esp32:
  board: esp32-s3-devkitc-1
  framework:
    type: arduino

external_components:
  - source:
      type: git
      url: https://github.com/hzkincony/esphome-tuya-wifi-mcu
      ref: v1.3.1

# Enable logging
logger:

# Enable Home Assistant API
api:

ethernet:
  type: W5500
  clk_pin: GPIO1
  mosi_pin: GPIO2
  miso_pin: GPIO41
  cs_pin: GPIO42
  interrupt_pin: GPIO43
  reset_pin: GPIO44

uart:
  - id: uart_1    #RS485
    baud_rate: 9600
    debug:
      direction: BOTH
      dummy_receiver: true
      after:
        timeout: 10ms
    tx_pin: 39
    rx_pin: 38

  - id: tuya_mcu_uart
    tx_pin: GPIO16
    rx_pin: GPIO17
    baud_rate: 9600

i2c:
   - id: bus_a
     sda: 8
     scl: 18
     scan: true
     frequency: 400kHz

pcf8574:
  - id: 'pcf8574_hub_in_1'  # for input channel 1-16
    i2c_id: bus_a
    address: 0x22
    pcf8575: true

  - id: 'pcf8574_hub_in_out_1'  # for digital input channel 17-24 & output 1-8
    i2c_id: bus_a
    address: 0x25
    pcf8575: true

  - id: 'pcf8574_hub_out_1'  # for output channel 9-24
    i2c_id: bus_a
    address: 0x24
    pcf8575: true

  - id: 'pcf8574_hub_in_out_2'  # for digital input channel 25--32 & output 25--32
    i2c_id: bus_a
    address: 0x26
    pcf8575: true

tuya_wifi_mcu:
  # tuya mcu product id
  product_id: zutoqag0cwczmwma
  uart_id: tuya_mcu_uart
  wifi_reset_pin: 28
  wifi_led_pin: 16

binary_sensor:
  - platform: gpio
    name: "b32-input01"
    id: "b32_input01"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 8
      mode: INPUT
      inverted: true
  - platform: tuya_wifi_mcu
    name: b32-input1-tuya
    dp_id: 111
    bind_binary_sensor_id: b32_input01
    internal: true

  - platform: gpio
    name: "b32-input02"
    id: "b32_input02"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 9
      mode: INPUT
      inverted: true
  - platform: tuya_wifi_mcu
    name: b32-input2-tuya
    dp_id: 112
    bind_binary_sensor_id: b32_input02
    internal: true

  - platform: gpio
    name: "b32-input03"
    id: "b32_input03"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 10
      mode: INPUT
      inverted: true
  - platform: tuya_wifi_mcu
    name: b32-input3-tuya
    dp_id: 113
    bind_binary_sensor_id: b32_input03
    internal: true

  - platform: gpio
    name: "b32-input04"
    id: "b32_input04"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 11
      mode: INPUT
      inverted: true
  - platform: tuya_wifi_mcu
    name: b32-input4-tuya
    dp_id: 114
    bind_binary_sensor_id: b32_input04
    internal: true

  - platform: gpio
    name: "b32-input05"
    id: "b32_input05"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 12
      mode: INPUT
      inverted: true
  - platform: tuya_wifi_mcu
    name: b32-input5-tuya
    dp_id: 115
    bind_binary_sensor_id: b32_input05
    internal: true

  - platform: gpio
    name: "b32-input06"
    id: "b32_input06"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 13
      mode: INPUT
      inverted: true
  - platform: tuya_wifi_mcu
    name: b32-input6-tuya
    dp_id: 116
    bind_binary_sensor_id: b32_input06
    internal: true

  - platform: gpio
    name: "b32-input07"
    id: "b32_input07"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 14
      mode: INPUT
      inverted: true
  - platform: tuya_wifi_mcu
    name: b32-input7-tuya
    dp_id: 117
    bind_binary_sensor_id: b32_input07
    internal: true

  - platform: gpio
    name: "b32-input08"
    id: "b32_input08"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 15
      mode: INPUT
      inverted: true
  - platform: tuya_wifi_mcu
    name: b32-input8-tuya
    dp_id: 118
    bind_binary_sensor_id: b32_input08
    internal: true


  - platform: gpio
    name: "b32-input09"
    id: "b32_input09"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 0
      mode: INPUT
      inverted: true


  - platform: gpio
    name: "b32-input10"
    id: "b32_input10"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 1
      mode: INPUT
      inverted: true


  - platform: gpio
    name: "b32-input11"
    id: "b32_input11"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 2
      mode: INPUT
      inverted: true


  - platform: gpio
    name: "b32-input12"
    id: "b32_input12"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 3
      mode: INPUT
      inverted: true


  - platform: gpio
    name: "b32-input13"
    id: "b32_input13"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 4
      mode: INPUT
      inverted: true


  - platform: gpio
    name: "b32-input14"
    id: "b32_input14"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 5
      mode: INPUT
      inverted: true


  - platform: gpio
    name: "b32-input15"
    id: "b32_input15"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 6
      mode: INPUT
      inverted: true


  - platform: gpio
    name: "b32-input16"
    id: "b32_input16"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 7
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "b32-input17"
    id: "b32_input17"
    pin:
      pcf8574: pcf8574_hub_in_out_1
      number: 0
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "b32-input18"
    id: "b32_input18"
    pin:
      pcf8574: pcf8574_hub_in_out_1
      number: 1
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "b32-input19"
    id: "b32_input19"
    pin:
      pcf8574: pcf8574_hub_in_out_1
      number: 2
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "b32-input20"
    id: "b32_input20"
    pin:
      pcf8574: pcf8574_hub_in_out_1
      number: 3
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "b32-input21"
    id: "b32_input21"
    pin:
      pcf8574: pcf8574_hub_in_out_1
      number: 4
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "b32-input22"
    id: "b32_input22"
    pin:
      pcf8574: pcf8574_hub_in_out_1
      number: 5
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "b32-input23"
    id: "b32_input23"
    pin:
      pcf8574: pcf8574_hub_in_out_1
      number: 6
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "b32-input24"
    id: "b32_input24"
    pin:
      pcf8574: pcf8574_hub_in_out_1
      number: 7
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "b32-input25"
    id: "b32_input25"
    pin:
      pcf8574: pcf8574_hub_in_out_2
      number: 0
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "b32-input26"
    id: "b32_input26"
    pin:
      pcf8574: pcf8574_hub_in_out_2
      number: 1
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "b32-input27"
    id: "b32_input27"
    pin:
      pcf8574: pcf8574_hub_in_out_2
      number: 2
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "b32-input28"
    id: "b32_input28"
    pin:
      pcf8574: pcf8574_hub_in_out_2
      number: 3
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "b32-input29"
    id: "b32_input29"
    pin:
      pcf8574: pcf8574_hub_in_out_2
      number: 4
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "b32-input30"
    id: "b32_input30"
    pin:
      pcf8574: pcf8574_hub_in_out_2
      number: 5
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "b32-input31"
    id: "b32_input31"
    pin:
      pcf8574: pcf8574_hub_in_out_2
      number: 6
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "b32-input32"
    id: "b32_input32"
    pin:
      pcf8574: pcf8574_hub_in_out_2
      number: 7
      mode: INPUT
      inverted: true

##pull-up resistance on PCB
  - platform: gpio
    name: "b32-W1-io48"
    pin:
      number: 48
      inverted: true

  - platform: gpio
    name: "b32-W1-io47"
    pin:
      number: 47
      inverted: true

  - platform: gpio
    name: "b32-W1-io40"
    pin:
      number: 40
      inverted: true

  - platform: gpio
    name: "b32-W1-io7"
    pin:
      number: 7
      inverted: true
## without resistance on PCB
  - platform: gpio
    name: "b32-W1-io13"
    pin:
      number: 13
      inverted: false

  - platform: gpio
    name: "b32-W1-io14"
    pin:
      number: 14
      inverted:  false

  - platform: gpio
    name: "b32-W1-io21"
    pin:
      number: 21
      inverted:  false

  - platform: gpio
    name: "b32-W1-io0"
    pin:
      number: 0
      inverted:  false

switch:
  - platform: gpio
    name: "b32-output01"
    id: b32_output01
    pin:
      pcf8574: pcf8574_hub_in_out_2
      number: 8
      mode: OUTPUT
      inverted: true
  - platform: tuya_wifi_mcu
    name: b32-output1-tuya
    dp_id: 1
    # hide from homeassistant ui
    internal: true
    # bind other switch, sync state
    bind_switch_id: "b32_output01"


  - platform: gpio
    name: "b32-output02"
    id: b32_output02
    pin:
      pcf8574: pcf8574_hub_in_out_2
      number: 9
      mode: OUTPUT
      inverted: true
  - platform: tuya_wifi_mcu
    name: b32-output2-tuya
    dp_id: 2
    # hide from homeassistant ui
    internal: true
    # bind other switch, sync state
    bind_switch_id: "b32_output02"


  - platform: gpio
    name: "b32-output03"
    id: b32_output03
    pin:
      pcf8574: pcf8574_hub_in_out_2
      number: 10
      mode: OUTPUT
      inverted: true
  - platform: tuya_wifi_mcu
    name: b32-output3-tuya
    dp_id: 3
    # hide from homeassistant ui
    internal: true
    # bind other switch, sync state
    bind_switch_id: "b32_output03"

  - platform: gpio
    name: "b32-output04"
    id: b32_output04
    pin:
      pcf8574: pcf8574_hub_in_out_2
      number: 11
      mode: OUTPUT
      inverted: true
  - platform: tuya_wifi_mcu
    name: b32-output4-tuya
    dp_id: 4
    # hide from homeassistant ui
    internal: true
    # bind other switch, sync state
    bind_switch_id: "b32_output04"

  - platform: gpio
    name: "b32-output05"
    id: b32_output05
    pin:
      pcf8574: pcf8574_hub_in_out_2
      number: 12
      mode: OUTPUT
      inverted: true
  - platform: tuya_wifi_mcu
    name: b32-output5-tuya
    dp_id: 5
    # hide from homeassistant ui
    internal: true
    # bind other switch, sync state
    bind_switch_id: "b32_output05"

  - platform: gpio
    name: "b32-output06"
    id: b32_output06
    pin:
      pcf8574: pcf8574_hub_in_out_2
      number: 13
      mode: OUTPUT
      inverted: true
  - platform: tuya_wifi_mcu
    name: b32-output6-tuya
    dp_id: 6
    # hide from homeassistant ui
    internal: true
    # bind other switch, sync state
    bind_switch_id: "b32_output06"


  - platform: gpio
    name: "b32-output07"
    id: b32_output07
    pin:
      pcf8574: pcf8574_hub_in_out_2
      number: 14
      mode: OUTPUT
      inverted: true
  - platform: tuya_wifi_mcu
    name: b32-output7-tuya
    dp_id: 101
    # hide from homeassistant ui
    internal: true
    # bind other switch, sync state
    bind_switch_id: "b32_output07"

  - platform: gpio
    name: "b32-output08"
    id: b32_output08
    pin:
      pcf8574: pcf8574_hub_in_out_2
      number: 15
      mode: OUTPUT
      inverted: true
  - platform: tuya_wifi_mcu
    name: b32-output8-tuya
    dp_id: 102
    # hide from homeassistant ui
    internal: true
    # bind other switch, sync state
    bind_switch_id: "b32_output08"

  - platform: gpio
    name: "b32-output09"
    id: "b32_output09"
    pin:
      pcf8574: pcf8574_hub_in_out_1
      number: 8
      mode: OUTPUT
      inverted: true
  - platform: tuya_wifi_mcu
    name: b32-output9-tuya
    dp_id: 103
    # hide from homeassistant ui
    internal: true
    # bind other switch, sync state
    bind_switch_id: "b32_output09"

  - platform: gpio
    name: "b32-output10"
    id: "b32_output10"
    pin:
      pcf8574: pcf8574_hub_in_out_1
      number: 9
      mode: OUTPUT
      inverted: true
  - platform: tuya_wifi_mcu
    name: b32-output10-tuya
    dp_id: 104
    # hide from homeassistant ui
    internal: true
    # bind other switch, sync state
    bind_switch_id: "b32_output10"

  - platform: gpio
    name: "b32-output11"
    id: "b32_output11"
    pin:
      pcf8574: pcf8574_hub_in_out_1
      number: 10
      mode: OUTPUT
      inverted: true
  - platform: tuya_wifi_mcu
    name: b32-output11-tuya
    dp_id: 105
    # hide from homeassistant ui
    internal: true
    # bind other switch, sync state
    bind_switch_id: "b32_output11"

  - platform: gpio
    name: "b32-output12"
    id: "b32_output12"
    pin:
      pcf8574: pcf8574_hub_in_out_1
      number: 11
      mode: OUTPUT
      inverted: true
  - platform: tuya_wifi_mcu
    name: b32-output12-tuya
    dp_id: 106
    # hide from homeassistant ui
    internal: true
    # bind other switch, sync state
    bind_switch_id: "b32_output12"

  - platform: gpio
    name: "b32-output13"
    id: "b32_output13"
    pin:
      pcf8574: pcf8574_hub_in_out_1
      number: 12
      mode: OUTPUT
      inverted: true
  - platform: tuya_wifi_mcu
    name: b32-output13-tuya
    dp_id: 107
    # hide from homeassistant ui
    internal: true
    # bind other switch, sync state
    bind_switch_id: "b32_output13"

  - platform: gpio
    name: "b32-output14"
    id: "b32_output14"
    pin:
      pcf8574: pcf8574_hub_in_out_1
      number: 13
      mode: OUTPUT
      inverted: true
  - platform: tuya_wifi_mcu
    name: b32-output14-tuya
    dp_id: 108
    # hide from homeassistant ui
    internal: true
    # bind other switch, sync state
    bind_switch_id: "b32_output14"

  - platform: gpio
    name: "b32-output15"
    id: "b32_output15"
    pin:
      pcf8574: pcf8574_hub_in_out_1
      number: 14
      mode: OUTPUT
      inverted: true
  - platform: tuya_wifi_mcu
    name: b32-output15-tuya
    dp_id: 109
    # hide from homeassistant ui
    internal: true
    # bind other switch, sync state
    bind_switch_id: "b32_output15"

  - platform: gpio
    name: "b32-output16"
    id: "b32_output16"
    pin:
      pcf8574: pcf8574_hub_in_out_1
      number: 15
      mode: OUTPUT
      inverted: true
  - platform: tuya_wifi_mcu
    name: b32-output16-tuya
    dp_id: 110
    # hide from homeassistant ui
    internal: true
    # bind other switch, sync state
    bind_switch_id: "b32_output16"

  - platform: gpio
    name: "b32-output17"
    id: b32_output17
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 0
      mode: OUTPUT
      inverted: true
  - platform: tuya_wifi_mcu
    name: b32-output17-tuya
    dp_id: 126
    # hide from homeassistant ui
    internal: true
    # bind other switch, sync state
    bind_switch_id: "b32_output17"

  - platform: gpio
    name: "b32-output18"
    id: b32_output18
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 1
      mode: OUTPUT
      inverted: true
  - platform: tuya_wifi_mcu
    name: b32-output18-tuya
    dp_id: 129
    # hide from homeassistant ui
    internal: true
    # bind other switch, sync state
    bind_switch_id: "b32_output18"

  - platform: gpio
    name: "b32-output19"
    id: b32_output19
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 2
      mode: OUTPUT
      inverted: true
  - platform: tuya_wifi_mcu
    name: b32-output19-tuya
    dp_id: 130
    # hide from homeassistant ui
    internal: true
    # bind other switch, sync state
    bind_switch_id: "b32_output19"

  - platform: gpio
    name: "b32-output20"
    id: b32_output20
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 3
      mode: OUTPUT
      inverted: true
  - platform: tuya_wifi_mcu
    name: b32-output20-tuya
    dp_id: 131
    # hide from homeassistant ui
    internal: true
    # bind other switch, sync state
    bind_switch_id: "b32_output20"

  - platform: gpio
    name: "b32-output21"
    id: b32_output21
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 4
      mode: OUTPUT
      inverted: true
  - platform: tuya_wifi_mcu
    name: b32-output21-tuya
    dp_id: 132
    # hide from homeassistant ui
    internal: true
    # bind other switch, sync state
    bind_switch_id: "b32_output21"

  - platform: gpio
    name: "b32-output22"
    id: b32_output22
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 5
      mode: OUTPUT
      inverted: true
  - platform: tuya_wifi_mcu
    name: b32-output22-tuya
    dp_id: 133
    # hide from homeassistant ui
    internal: true
    # bind other switch, sync state
    bind_switch_id: "b32_output22"     

  - platform: gpio
    name: "b32-output23"
    id: b32_output23
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 6
      mode: OUTPUT
      inverted: true
  - platform: tuya_wifi_mcu
    name: b32-output23-tuya
    dp_id: 134
    # hide from homeassistant ui
    internal: true
    # bind other switch, sync state
    bind_switch_id: "b32_output23"     

  - platform: gpio
    name: "b32-output24"
    id: b32_output24
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 7
      mode: OUTPUT
      inverted: true
  - platform: tuya_wifi_mcu
    name: b32-output24-tuya
    dp_id: 135
    # hide from homeassistant ui
    internal: true
    # bind other switch, sync state
    bind_switch_id: "b32_output24"

  - platform: gpio
    name: "b32-output25"
    id: b32_output25
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 8
      mode: OUTPUT
      inverted: true
  - platform: tuya_wifi_mcu
    name: b32-output25-tuya
    dp_id: 136
    # hide from homeassistant ui
    internal: true
    # bind other switch, sync state
    bind_switch_id: "b32_output25"     

  - platform: gpio
    name: "b32-output26"
    id: b32_output26
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 9
      mode: OUTPUT
      inverted: true
  - platform: tuya_wifi_mcu
    name: b32-output26-tuya
    dp_id: 137
    # hide from homeassistant ui
    internal: true
    # bind other switch, sync state
    bind_switch_id: "b32_output26"

  - platform: gpio
    name: "b32-output27"
    id: b32_output27
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 10
      mode: OUTPUT
      inverted: true
  - platform: tuya_wifi_mcu
    name: b32-output27-tuya
    dp_id: 138
    # hide from homeassistant ui
    internal: true
    # bind other switch, sync state
    bind_switch_id: "b32_output27"

  - platform: gpio
    name: "b32-output28"
    id: b32_output28
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 11
      mode: OUTPUT
      inverted: true
  - platform: tuya_wifi_mcu
    name: b32-output28-tuya
    dp_id: 139
    # hide from homeassistant ui
    internal: true
    # bind other switch, sync state
    bind_switch_id: "b32_output28"

  - platform: gpio
    name: "b32-output29"
    id: b32_output29
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 12
      mode: OUTPUT
      inverted: true
  - platform: tuya_wifi_mcu
    name: b32-output29-tuya
    dp_id: 140
    # hide from homeassistant ui
    internal: true
    # bind other switch, sync state
    bind_switch_id: "b32_output29"     

  - platform: gpio
    name: "b32-output30"
    id: b32_output30
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 13
      mode: OUTPUT
      inverted: true
  - platform: tuya_wifi_mcu
    name: b32-output30-tuya
    dp_id: 141
    # hide from homeassistant ui
    internal: true
    # bind other switch, sync state
    bind_switch_id: "b32_output30"     

  - platform: gpio
    name: "b32-output31"
    id: b32_output31
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 14
      mode: OUTPUT
      inverted: true
  - platform: tuya_wifi_mcu
    name: b32-output31-tuya
    dp_id: 142
    # hide from homeassistant ui
    internal: true
    # bind other switch, sync state
    bind_switch_id: "b32_output31"   

  - platform: gpio
    name: "b32-output32"
    id: b32_output32
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 15
      mode: OUTPUT
      inverted: true
  - platform: tuya_wifi_mcu
    name: b32-output32-tuya
    dp_id: 143
    # hide from homeassistant ui
    internal: true
    # bind other switch, sync state
    bind_switch_id: "b32_output32"   

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

ads1115:
  - address: 0x48
sensor:
  - platform: ads1115
    multiplexer: 'A0_GND'
    gain: 6.144
    resolution: 16_BITS
    name: "ADS1115 Channel A0-GND"
    update_interval: 5s
  - platform: ads1115
    multiplexer: 'A1_GND'
    gain: 6.144
    name: "ADS1115 Channel A1-GND"
    update_interval: 5s
  - platform: ads1115
    multiplexer: 'A2_GND'
    gain: 6.144
    name: "ADS1115 Channel A2-GND"
    update_interval: 5s
  - platform: ads1115
    multiplexer: 'A3_GND'
    gain: 6.144
    name: "ADS1115 Channel A3-GND"
    update_interval: 5s

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), "KinCony b32");
download yaml file:

.txt   B32M-HA-with-Tuya.txt (Size: 21.65 KB / Downloads: 84)

Print this item