Send Command
AI-generatedSummary
Sends a custom command array to a Tuya device using the Tuya API. Provide the device ID and a JSON array of command objects, each with a command code and value.
Inputs
- Device ID (required) — ID of the Tuya device to receive the commands.
- Commands (JSON) (required) — JSON array of commands to send, for example [{"code":"switch","value":true}]. The node parses this value as JSON and submits it to the device.
Output shape
One output item per input item, containing the Tuya API response in its json field.
Requires Tuya API credentials. Invalid command JSON or API errors fail the item; with Continue On Fail enabled, the item instead contains an error field.