Here’s what I have. Did you have to use a Tuya IoT account to make it work?
tuya: username: !secret tuya_user password: !secret tuya_pass country_code: 1 switch: platform: tuya host: 192.168.2.231 local_key: [REDACTED] device_id: [REDACTED] optimistic: true switches: switch1: friendly_name: Printer Camera id: 1 switch2: friendly_name: Printer id: 2 switch3: friendly_name: Extractor Fan id: 3 switch4: friendly_name: Switch1 id: 4 switch5: friendly_name: Switch2 id: 5
Also, the error is not present in the system log. Just a large panel on the home screen stating:
The following components and platforms could not be set up:
Please check your config.