I thought it was working. Looks like its not. One powerboard works the the other does not. Have the same issue as you. I set the switch to off in HA and it just goes straight back to on again and doesn’t change the switch.
If I change the state in the Tuya app it updates the state in HA, but not the other way around. Then if I change one of the switches in HA, it changes another in the Tuya app. But if I operate a switch in the Tuya app the right one is updated in Home Assistant.
Can’t quite figure this out. If I hit, say switch 4, from within the Tuya app, the right switch status is updated in home assistant, but on the Tuya debug platform the wrong switch status is updated. When I activate in Home Assistant the wrong one is triggered. If I active the switch on the Tuya iot site the right one is. Really weird.
If you’re referring to the Device Status Notification service in the Service API page, yes I have done that. One power board works fine, the other does not. On the other powerboard (different kind) the status change from the Tuya App to home assistant works as expected, but if I change the state in home assistant the wrong switch is updated / changed.
Not sure how I go about fixing this. If I could re-flash the thing I’d go tasmota / esphome, but I can’t.
I had the exact same issues with this… Spent hours with Tuya support and they said they found some issue with their integration which caused issues with these particular power boards and were going to fix it - but now Frenck has taken over the integration from Tuya so who knows what’s going on now.
I got around it by using the Tuya Local integration. Highly recommend it, and because you’ve already done all the hard work already in setting up the Tuya Dev platform, it only takes about 30 seconds to get it working with Tuya Local…it’s actually a much better end result, it’s so much more responsive, it’s instantaneous.
Well, there are reasons why not to use local tuya for some devices.
For air purifier it can support only 3 speeds of fan while I have 6. Not a big deal, but…
Bigger problem is when I connected heat pump to local tuya.
I was able to turn it on and off, but… only once. Then internal firmware got totally crazy and nothing worked. And not from HA, but in total - somehow temperature limits went crazy to some -140C which is of course impossble. Nothing in internet, nothing in manual, nothing from main distributor for country…
I was lucky and was pressing randomly buttons for longer and made some reset, but… never more.
And yes, I have still this issue and waiting for some fix…
Is there any tricks I am not doing - toggle on a switch can only be triggered at 6-10sec interval - otherwise it gets ignored. I’m calling the service from dev tools. Turn on/off works instantly though. This, of course, after I migrated to the new tuya… ?
It seems specifically the “Toggle” function and updating of the state isn’t working.
I’ve managed to fix this buy not using the toggle switch, but by adding a button which sends an “ON” or “OFF” command
This is done by
Entity
Call Service
Turn light ON
and another button for Off.
You can add existing groups of lights so you don’t need to make a button for each light.
I’ve only just started using the system so I came accross this while setting up Tuya for the first time.
Implemented a work arround since Tuya will solve the problem. Generated an automatization every 5 minutes to reload tuya integration, and after that devices status is updated.
This is not the best solution, but no other solutions I can imagine now.