Purchased "Tuya WiFi RF Smart Switch AC 110V 220V 2CH Dry Contact Relay and 433MHz Wireless Remote Control work with Google Assistant, Alexa" from AliExpress, store was "Diese Remote Controller".

Device is BK7238. There is also a PY32F002A onboard - it seems to handle all the RF functions (pairing with RF remote).
P6 and P9 from BK7238 are digital outputs that toggle the relay on/off. (active=high)
I made a firmware backup with `ltchiptool` before overwriting it incorrectly. Unfortunately it looks like ltchiptool cannot write the firmware back, so I cannot proceed any further with the old firmware.
AI: What is your current goal—are you trying to restore the original firmware, flash a custom firmware, or just recover basic functionality on the device?
Trying to make the device work.
AI: Since discovering that ltchiptool cannot write the firmware back, have you tried any other flashing tools or recovery methods (e.g., UART/SWD access, other utilities), and if so, what were the results?
Not yet.

Device is BK7238. There is also a PY32F002A onboard - it seems to handle all the RF functions (pairing with RF remote).
P6 and P9 from BK7238 are digital outputs that toggle the relay on/off. (active=high)
I made a firmware backup with `ltchiptool` before overwriting it incorrectly. Unfortunately it looks like ltchiptool cannot write the firmware back, so I cannot proceed any further with the old firmware.
AI: What is your current goal—are you trying to restore the original firmware, flash a custom firmware, or just recover basic functionality on the device?
Trying to make the device work.
AI: Since discovering that ltchiptool cannot write the firmware back, have you tried any other flashing tools or recovery methods (e.g., UART/SWD access, other utilities), and if so, what were the results?
Not yet.