Tuya

Interact with Tuya Smart Home API

Control Device

AI-generated

Summary

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 switch or switch_toggle command.

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 error message in json; otherwise the operation throws the error.

Links

Discussion