I also am getting some very weird behaviour from this new Tuya addon. I’ve done some extensive testing and this is what I’ve figured out after a great deal of head scratching.
Firstly, let me say I’ve got everything set up in their IoT Platform and my device - a 4 Plug Power Board/Strip - is available in Home Assistant. This device was working without issue with the previous Tuya cloud integration.
Since upgrading to the new Tuya integration
When turning ON the plugs using Home Assistant, as you would expect
Switch 1 turns on Plug 1
Switch 2 turns on Plug 2
Switch 3 turns on Plug 3
Switch 4 turns on Plug 4
However, when I turn the devices OFF using Home Assistant
Switch 1 turns off Switch 4
Switch 2 turns off Switch 1
Switch 3 turns off Switch 2
Switch 3 turns off Switch 4
As you can imagine, this eventually puts the 4 entities into states where they’re literally unusable because the status of the plugs gets out of sync pretty quick.
Looking at the debug page in the Tuya IoT Platform site, I noticed this difference in the order of their ‘Standard Instruction Set’ and ‘Standard Status Set’
Might be a coincidence - but pretty strange that it aligns with the mixed ordering of the plugs when I’m turning the devices on and off.