I got a raspberry pi 5, with latest raspberry os 64 bit.
I loaded and successfully ran the tuya cloudcutter process on this switch.
The switch now has the kickstart firmware and is on my home wifi network, and I can access its webpage at 192.168.4.1.
I then downloaded LTChipTool and found a profile for this switch on that application, and copied the yaml code it produced, and pasted it into ESPHome Device Builder.
I also tried the yaml code I got from UPK2ESPHome.
But when I clicked install in ESPHome Device Builder and chose “manual” (I planned to upload it through kickstart at 192.168.4.1), it gave me this error message:
Failed config
output.libretiny_pwm: [source /config/esphome/basement-toy-area.yaml:34]
platform: libretiny_pwm
id: output_red
Pin number '19' is not usable for board generic-bk7231n-qfn32-tuya.
pin: P19
I have a feeling that this config code is not the right code for this switch, but not sure.
I used the kickstart webpage to scan all the pins.
The only pins that responded were 8 and 14.
When I selected pin 8, there was a response on a downpress of the toggle switch.
When I selected pin 14, then it just shows continuous responses, no need for me to touch the actual switch.
There are the only responses I got from the pins from the kickstart webpage.