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
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