[APP][Pro] Tuya Cloud - This app allows you to connect Homey to the Tuya cloud

Out of interests sake I removed the devices from SmartLife, added them to tuya app, reauthorized the Tuya IOT platform for Tuya app and am getting the same message from Homey Tuya add devices, “Please configure the app first”

OK, so current state of play. In Homey Tuya app, changed driver setting to Legacy and Official, was then able to find my devices again. Set Homey Tuya app back to official only and am back to getting the TL message about old deprecated drivers. My devices are responding to Homey with the Homey Tuya app set to Official only. The device presents differently than before, instead of 2 devices, one for each power switch, I have one device with a drop down for 2 power switches. And I can’t tell Homey what their power usage is or what is attached.
Error message when trying to execute a Tap To Run Scene
“Cannot read properties of undefined reading map”

@RonnyW, new version with updated flows is on test now

1 Like

Do you have still a depricated device, remove that one and message will be gone. Dropdown to officilal and no deprecated devices is no message.

Best is get rid of legacy devices

See couple post above for solution… Power is also coming from Tuya if supported by device ond no per device when multiple swiches/sockets!!

Don’t use the legacy scene trigger and sync on settingspage before it can used, as described in first post.

I have one Tuya device and before all this it was working fine, I started getting the TL message about deprecated API and drivers. I removed the device from Homey and went through all the above. Homey app set to official API and it cannot find my device. I removed it from Smartlife android App and installed it in Tuya android app. And repeated the processes, same result, official API cannot find the device.

Get rid of the switch? It’s maybe 2 years old, does that make it a legacy device. It is paired with Tuya IOT platform.

I’ll have a scroll up again, didn’t see that. Power was not supported by Tuya for this device, I just had to tell Homey what it was before. For previous install within Homey, Homey had both switches within the one device installed as separate devices and I was able to tell Homey what was attached, lights. Can’t anymore so Homey cannot control using zones.

I have the scenes refreshed in the Tuya Homey app, they don’t seem to appear anywhere where they can be triggered. The above error occurred when trying to use the Execute a scene card which is what I thought others were doing

Got it, using Virtual Devices. The execute a scene card is still not seeing the scenes, it’s always possible I’ve been looking at this too long but I believe I have followed the instructions, I am using the Execute Scene Card and not the Start legacy scene card

No, I’m sure he means to just delete it from Homey, and re-add it again as official API device.

I had hoped that, but the official API cannot find it, or rather has not so far

Scratch that it just has. It has not for the previous 10 hours and multiple attempts. I had left it for a couple of hours and went for a cycle to clear my head

@Philip_Montgomery: Sorry, I meant indeed delete the legacy devices in Homey with get rid of legacy devices. It was multiple interpretable which was my mistake.

1 Like

Hi @Jurgen_Heine
My Tuya Homey app seems to loose the connection to Tuya cloud. I can change the device state (on/off, temperature) in Homey. But it is not synced to the device.
When I change the settings in Tuya app (mobile), the new setting is instantly synced back to Homey.
So only Tuya=>Homey is working after a time, but Homey=>Tuya not.

In the Tuya app (mobile) all is ok. There I can control the device.

After a app restart, I can control the device from Homey again.
Do you have a idea what could cause this error?
PS: using the test version with heater device.

@RonnyW only seen this in debugging when there is a fatal error. So debug this and see if this leads to a fatal error. Just checked with lights and sockets( devices which I own myself) and there is no problem with controlling them here.

Thanks. Have installed again from CLI and will check the console output…

Don’t worry at all, the multinational nature of this will inevitably mean some miscommunications

Any thoughts on why Homey Tuya app cannot read the “undefined map” when I try to use the card Execute a scene? Currently, while my tuya device is installed in Homey now with new API I am unable to control in a flow

This is strange, I have no idea what the problem can be. Only thing I can think about is that app crashed, but you should not see the flows in that case or some data is changed( password, email,…).If you don’t change anything on settings page when pressing save, values are not changed and actualy skipped and no error message. You are saying that have the device in Homey and not be able to control it. If this is a new Device and not legacy( which I adviced to delete). You had at least once everting correct otherwise you could not add this device again. You can send me a log, but all error messages by Tuya are send to UI, so I would probably not see much more.

I had removed the device from Homey, then (after a day of errors) was able to re pair it with Homey using the Official API.
I wonder is it worth trying removing it again, uninstalling the Tuya cloud app and then reinstalling the app and re pairing the device.

I’ve got the following strange things happening. Till yesterday my devices controlled by the Tuya Cloud app worked flowlessly. Till yesterday. Out of nothing I can’t control them anymore. Homey does see them. After removing them I can install them again, all devices in the Smartlife app are seen. Switching lights on: nothing happens. I can control them normally with the Smartlife apps

What have I done:
→ checking all settings in the app:
-I use only the official API

  • username and password are okay. Otherwise I couldn’t install the devices again
  • access/secret keys/ID’s checked and re-entered
    → checked things in the Tuya development on the net. I checked if the app is connected: it is. The devices are shown In the project.
    → restarted the apps a dozen of times

I think it’s very strange that they functioned correctly. Now I see the devices in my Homey, I can control them without an error, but they don’t react. None of them. Even not after removing and re-installing.

I don’t know what to look for anymore. Anybody any thoughts, suggestions?

Sounds like my problem some posts above with invalid toke error from Tuya cloud.
@Jurgen_Heine Is the token refresh time too long in the app?

In debugging console I can see that the websocket is still working. Data from Tuya cloud are pushed to Homey. But https call to Tuya API ends with e error message “invalid token”.

1 Like

Time out is based on Tuya code. Base lib of this app is little modified one from Tuya. It’s not changed there, so I think it should be ok.

Can my problem be caused by a time out? Or what can it be? Better: what can be a solution?