Cloud > Development.Create Cloud Project.Create Cloud Project dialog box, configure Project Name, Description, Industry, adn Data Center. For the Development Method field, select Smart Home from the dropdown list. For the Data Center field, select the zone your are located in. Refer to country/data center mapping list here

Create to continue with the project configuration.Device Status Notification API. The list of API should look like this:

Authorize.Devices tab.Link Tuya App Account > Add App Account.

Tuya Smart app or Smart Life app.

Confirm in the app.All Devices tab. Here you should be able to find the devices from the app.

Click the created project to enter the Project Overview page and get the Authorization Key. You will need these for setting up the integration. in the next step.

The Tuya IoT Core trial expires roughly every six months, and while it is lapsed the cloud API rejects every call. To keep the extension usable, commands fall back to Tuya's local network protocol.
How it works:
Limitations, which are worth knowing before relying on it:
The Control Device command takes arguments, so it can be opened as a deeplink from Apple Shortcuts, and through Shortcuts from Siri:
raycast://extensions/andresmorelos/tuya-smart/control-device?arguments={"query":"turn on kitchen lamp"}
Add an Open URLs action in Shortcuts with that URL, name the shortcut, and it becomes a Siri phrase. Percent encoding the argument JSON is more reliable in some Shortcuts versions, and both forms work.
The action can be written into the phrase or passed separately, whichever suits the shortcut:
?arguments={"query":"turn on kitchen lamp"}
?arguments={"query":"kitchen lamp","action":"on"}
?arguments={"query":"living room curtain","action":"open"}
query is the device name, optionally with the action in front of or behind it. A name
matches loosely, so "kitchen lamp" finds "Kitchen Lamp".action accepts on, off, stop and toggle, along with the words people actually say:
open, close, enable, disable, start, shut, pause, flip.switchName picks a gang on a multi-switch device, by its name or its data point code.A device name that could mean several devices is refused rather than guessed at, and the
HUD says which ones matched. The same goes for a multi-gang device with no switchName:
switching the wrong relay unattended is worse than doing nothing. Curtains need an
explicit action, since there is no sensible opposite of a curtain's current position.
Commands sent this way use the same cloud path as the rest of the extension, including the local network fallback described above.
First, make sure the devices show up in Tuya’s cloud portal under the devices tab.
In the Tuya IoT configuration cloud portal, you must NOT link your non-developer account under the “Users” tab. Doing so will work, and you can even still add the devices under the devices tab, but the API will send 0 devices down to Home Assistant. You must only link the account under the Devices->“Link Tuya App Account”. If it shows up on the users tab, be sure to delete it.
Your region may not be correctly set.
Make sure your cloud plan does not need to be renewed (see error #28841002 on this page).
Incorrect Access ID or Access Secret. Please refer to the Configuration part above.
IoT Core subscription expired: the trial has to be extended roughly every six months on the Tuya IoT Platform under Cloud > Cloud Services > IoT Core > My Subscriptions. The extension reports this explicitly when it happens.
App account not linked with cloud project: On the Tuya IoT Platform, you have linked devices by using Tuya Smart or Smart Life app in your cloud project. For more information, see Link devices by app account.
Incorrect username or password: Enter the correct account and password of the Tuya Smart or Smart Life app in the Account and Password fields (social login, which the Tuya Smart app allows, may not work, and thus should be avoided for use with the Home Assistant integration). Note that the app account depends on which app (Tuya Smart or Smart Life) you used to link devices on the Tuya IoT Platform.
Incorrect country. You must select the region of your account of the Tuya Smart app or Smart Life app.
Empty parameter of username or app. Please fill the parameters refer to the Configuration part above.
Some APIs are not authorized, please Subscribe then Authorize. The following APIs must be subscribed for this tutorial:
Your subscription to Tuya cloud development IoT Core Service resources has expired, please extend it in Cloud > Cloud Services > IoT Core > My Subscriptions tab > Subscribed Resources > IoT Core > Extend Trial Period.