Package Information
Downloads: 0 weekly / 0 monthly
Latest Version: 2.0.0
Author: Patrik Almasi
Available Nodes
Documentation
n8n-nodes-tuya
An n8n community node for integrating with Tuya Smart Home API.
Features
- Device Control: Turn devices on/off and send commands
- Tuya Cloud API Integration: Full support for Tuya OpenAPI
- Easy Authentication: Credential management with API Key and Secret
Installation
Copy this folder into your n8n custom nodes directory:
~/.n8n/nodes/Install dependencies:
npm installBuild the package:
npm run buildRestart n8n
Setup
1. Get Tuya Credentials
- Go to Tuya IoT Platform
- Create a developer account and project
- Generate API keys (Client ID and Client Secret)
- Note your Region (e.g., "us", "eu", "cn")
2. Configure in n8n
- Create a new Tuya credential in n8n
- Enter your Client ID, Client Secret, Region, and Data Center
- Use the credential in your Tuya nodes
Usage Example
Control a Device
- Add a Tuya node
- Select "Control Device" operation
- Enter Device ID
- Select the command (On, Off, etc.)
- Execute
Send a Command
For more complex device commands:
- Add a Tuya node
- Select "Send Command" operation
- Provide Device ID and command details
- Execute
Available Operations
- Control Device: Simple on/off control
- Send Command: Send custom commands to devices
- Get Device Status: Fetch current device state
- List Devices: Get all devices in your Tuya account
API Reference
For more information about Tuya API, visit:
Support
For issues, questions, or contributions, please open an issue on GitHub.
License
Apache License 2.0