{"id":16560632,"url":"https://github.com/mathieu2301/tuya-cloud-api","last_synced_at":"2025-10-28T21:30:35.943Z","repository":{"id":57382429,"uuid":"339720920","full_name":"Mathieu2301/Tuya-Cloud-API","owner":"Mathieu2301","description":"API For Tuya Cloud","archived":false,"fork":false,"pushed_at":"2021-04-08T07:57:21.000Z","size":10,"stargazers_count":4,"open_issues_count":2,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-01T18:39:09.700Z","etag":null,"topics":["tuya","tuya-api","tuya-cloud"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Mathieu2301.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-02-17T12:44:40.000Z","updated_at":"2023-09-14T19:57:25.000Z","dependencies_parsed_at":"2022-09-26T16:50:21.314Z","dependency_job_id":null,"html_url":"https://github.com/Mathieu2301/Tuya-Cloud-API","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mathieu2301%2FTuya-Cloud-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mathieu2301%2FTuya-Cloud-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mathieu2301%2FTuya-Cloud-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mathieu2301%2FTuya-Cloud-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mathieu2301","download_url":"https://codeload.github.com/Mathieu2301/Tuya-Cloud-API/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238720445,"owners_count":19519352,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["tuya","tuya-api","tuya-cloud"],"created_at":"2024-10-11T20:29:39.034Z","updated_at":"2025-10-28T21:30:35.585Z","avatar_url":"https://github.com/Mathieu2301.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tuya Cloud API\n API for Tuya Cloud\n\n No dependencies 💪\n\n___\n## Installation\n\n```\nnpm i tuya-cloud\n```\n\n## Example (test.js)\n\n```javascript\nconst tuyaCloud = require('tuya-cloud');\n\ntuyaCloud.connect({\n  region: 'eu', // eu (Default) / us / cn / in\n  clientID: 'xxxxxxxxxxxxxxxxxxxx',\n  secret: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',\n}).then(async (tuya) =\u003e {\n  console.log('Logged !')\n\n  const tempSensor = tuya.device('xxxxxxxxxxxxxxxxxxxxxx');\n\n  setInterval(async () =\u003e {\n    console.log(await tempSensor.getInfos());\n    console.log(await tempSensor.getStatus());\n  }, 10000);\n\n  const light = tuya.device('xxxxxxxxxxxxxxxxxxxxxx');\n\n  console.log(await light.getFunctions());\n  console.log(await light.getStatus());\n\n  light.sendCommands([\n    {\n      code: 'colour_data',\n      value: {\n        h: 120, // Green\n        s: 1000,\n        v: 1000,\n      },\n    },\n  ]);\n\n}).catch((error) =\u003e {\n  console.error(error.message);\n});\n\n```\n\n___\n## Problems\n\n If you have errors in console or unwanted behavior, just reload the page.\n If the problem persists, please create an issue [here](https://github.com/Mathieu2301/Tuya-Cloud-API/issues).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathieu2301%2Ftuya-cloud-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmathieu2301%2Ftuya-cloud-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathieu2301%2Ftuya-cloud-api/lists"}