Control Device
AI-generatedSummary
Send an on, off, or toggle command to a Tuya device by posting the corresponding switch command to Tuya’s API. The node authenticates with the configured Tuya credentials before processing input items.
Inputs
- Device ID (required) — The ID of the Tuya device to control.
- Command (required) — Choose On, Off, or Toggle. The node sends the corresponding
switchorswitch_togglecommand.
Output shape
One output item per input item, each containing the Tuya API response in json.
If continue-on-fail is enabled, a failed item contains an
errormessage injson; otherwise the operation throws the error.