This guide will help you use tuya-cli to obtain device codes for use with local-tuya.
-
Execute the following command in the same directory where your Dockerfile is located:
docker build -t tuya-cli .
-
Execute the following command to start the container:
docker run -it --name tuya-cli tuya-cli
-
Start the
tuya-cliwizard:Inside the Docker container, execute:
tuya-cli wizard
-
Go to Tuya IoT Platform to get your authorization keys or create a new API if you don't have one.
-
Follow the prompts, and you will obtain the codes.
By following these steps, you should be able to obtain the necessary device codes for local-tuya. If you encounter any issues, refer to the tuya-cli documentation or seek assistance from the community.