When adding the device doesn’t work, try this neat section of the app.
Howto:
-With the flow below, you’ll “listen” to event messages of your devices;
In this example a message of the ‘text’ type, which will return text, numeric and yes/no values.
This way, when you trigger the device you want to control from the Tuya Smart mobile app (Google store / Apple store),
or when you just activate a sensor, you’ll catch the device ID, function name and function value events, which you’ll need to trigger flows, or control Tuya devices.
Result of this flow:
the values received from a motion sensor (a.k.a. PIR):
How start a flow by an event of a Tuya device
Just by receiving and filtering on it’s exact event message, in this case a PIR sensor:
Note
You only need the WHEN Number event received / Boolean event received cards, when you want/need to have a numeric or boolean (Yes/No) tag, for a truly numeric or boolean received raw command.
Example: a thermostat sends a room temperature update, which is a numeric value, and you want to use a ‘higher than’ / ‘less than’ trigger f.i.
Or you want to monitor / trigger a flow when a light went on or off;
this is a boolean event.
In Homey Yes/No, True/False and On/Off are the same.
How to control a Tuya device, with Homey
With the Tuya Smart mobile app, I turned the light I want to control, on and off.
This is the raw command info I received with Homey:

Now, we can turn that light on and off with this flow:
Well, when this all doesn’t make much sense to you, please try the alternative:
tap-to-run scene method !