Tuya Clouder Cutter device stuck on ESP Home Kickstart without proper YAML codes

I badly need this community help for one of the devices which I flashed to ESPHome kickstart via Tuya Cloudcutter, it is a 4Gang touch switch (CB3S board) there was a profile available in Cloudcutter, and the cloud cut was successfully done.

The device has a IP assigned on my router and but when I try to generate the yaml vial Itchiptool it gives me an error as below

image

After few digging around online I managed to get a Yaml code which matches the board with 4Gang switch and its now integrated with Home Assistant but the relays & pins seems to be different, and the switches are not working hence seeking this community help in how to identify the Pins & relays for the switches to work

Yaml code which I am using

esphome:
  name: 4-gang-switch
  friendly_name: 4 Gang Switch

bk72xx:
  board: generic-bk7231n-qfn32-tuya

logger:
web_server:
captive_portal:
mdns:

api:
  password: ""

ota:
  password: ""

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password
  ap:

text_sensor:
  - platform: libretiny
    version:
      name: LibreTiny Version

binary_sensor:
  - platform: gpio
    id: binary_switch_1
    pin:
      number: P8
      inverted: true
      mode: INPUT_PULLUP
    on_press:
      then:
        - switch.toggle: switch_1
  - platform: gpio
    id: binary_switch_2
    pin:
      number: P9
      inverted: true
      mode: INPUT_PULLUP
    on_press:
      then:
        - switch.toggle: switch_2
  - platform: gpio
    id: binary_switch_3
    pin:
      number: P10
      inverted: true
      mode: INPUT_PULLUP
    on_press:
      then:
        - switch.toggle: switch_3
  - platform: gpio
    id: binary_switch_4
    pin:
      number: P11
      inverted: true
      mode: INPUT_PULLUP
    on_press:
      then:
        - switch.toggle: switch_4
  - platform: gpio
    id: binary_switch_all
    pin:
      number: P7
      inverted: true
      mode: INPUT_PULLUP
    on_press:
      then:
        - switch.toggle: switch_1
        - switch.toggle: switch_2
        - switch.toggle: switch_3
        - switch.toggle: switch_4

switch:
  - platform: gpio
    id: switch_1
    name: Relay 1
    pin: P24
  - platform: gpio
    id: switch_2
    name: Relay 2
    pin: P6
  - platform: gpio
    id: switch_3
    name: Relay 3
    pin: P26
  - platform: gpio
    id: switch_4
    name: Relay 4
    pin: P14

status_led:
  pin:
    number: P22
    inverted: true

Which switch do you have and does it have tuya mcu?

yes it is a Tuya MCU as per the details by itchiptool
its a CB3S board

Do you have a teardown of the device/open the switch plate?
Sometimes it’s not detected properly, and it could be just using gpio pins

HomeMate Wi-Fi + Bluetooth Smart 4 Gang Touch Switch (elektroda.com)

this thread has all the details… pls check if u can help

Looks like all dpids are listed there, you can use the tuya platform for the switches