{"id":13800016,"url":"https://github.com/hgross/node-red-contrib-tuya-smart","last_synced_at":"2025-05-13T08:32:32.940Z","repository":{"id":80588639,"uuid":"156126705","full_name":"hgross/node-red-contrib-tuya-smart","owner":"hgross","description":"NodeRED nodes to get data from tuya smart devices (like smart plugs, bulbs, ...).","archived":false,"fork":false,"pushed_at":"2020-09-07T09:25:21.000Z","size":1005,"stargazers_count":44,"open_issues_count":6,"forks_count":14,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-04-21T03:43:24.225Z","etag":null,"topics":["iot","node-red","node-red-contrib","smart-home","smarthome"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hgross.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-11-04T21:27:01.000Z","updated_at":"2025-01-11T06:06:40.000Z","dependencies_parsed_at":"2023-05-22T19:30:48.395Z","dependency_job_id":null,"html_url":"https://github.com/hgross/node-red-contrib-tuya-smart","commit_stats":{"total_commits":16,"total_committers":4,"mean_commits":4.0,"dds":0.1875,"last_synced_commit":"31d82cd36322f11c40a674b81712fff64377ac56"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hgross%2Fnode-red-contrib-tuya-smart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hgross%2Fnode-red-contrib-tuya-smart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hgross%2Fnode-red-contrib-tuya-smart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hgross%2Fnode-red-contrib-tuya-smart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hgross","download_url":"https://codeload.github.com/hgross/node-red-contrib-tuya-smart/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253903931,"owners_count":21981772,"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":["iot","node-red","node-red-contrib","smart-home","smarthome"],"created_at":"2024-08-04T00:01:08.299Z","updated_at":"2025-05-13T08:32:32.687Z","avatar_url":"https://github.com/hgross.png","language":"TypeScript","funding_links":[],"categories":["Nodes"],"sub_categories":["Smarthome"],"readme":"# tuya-smart\n\n[![Build Status](https://travis-ci.org/hgross/node-red-contrib-tuya-smart.svg?branch=master)](https://travis-ci.org/hgross/node-red-contrib-tuya-smart)\n[![npm version](https://badge.fury.io/js/node-red-contrib-tuya-smart.svg)](https://badge.fury.io/js/node-red-contrib-tuya-smart)\n\nInput nodes to interface with smart plugs, bulbs, ... from tuya.\nMakes use of the [tuyapi library](https://github.com/codetheweb/tuyapi \"tuyapi project site\").\nCheck out their great [guide on how to get your device id/device key out of the Tuya Smart/Smart Life app](https://github.com/codetheweb/tuyapi/blob/master/docs/SETUP.md) to get started.\nOnce you got these device credentials, you will be able to configure and use this input node for NodeRED.\nThe tuya devices are sold under different names like Gosund, BlitzWolf, Teckin, Meross, Homecube, ...\nCheck out the [general discussion](https://github.com/codetheweb/tuyapi/issues/5) regarding the tuya api and compatibility.\n\n![Connecting nodes](https://raw.githubusercontent.com/hgross/node-red-contrib-tuya-smart/master/images/connecting.png \"Connecting tuya smart devices\")\n\n![Connected nodes and output format](https://raw.githubusercontent.com/hgross/node-red-contrib-tuya-smart/master/images/output_single_plug_meter.png \"Connected tuya smart devices and data format\")\n\n![Input node with input and output format](https://raw.githubusercontent.com/hgross/node-red-contrib-tuya-smart/master/images/input-single-plug-meter.png \"Input node with input and output format\")\n\n![powerstrip input node with input and output format](https://raw.githubusercontent.com/hgross/node-red-contrib-tuya-smart/master/images/input-power-strip.png \"powerstrip input node with input and output format\")\n\n![tuya 3-socket powerstrip outputs explained](https://raw.githubusercontent.com/hgross/node-red-contrib-tuya-smart/master/images/output-power-strip.png \"tuya 3-socket powerstrip outputs explained\")\n\n## Installation\n\nYou can install the package from the public npm registry using npm or the tooling provided by the NodeRED-GUI.\nCheck out the [NodeRED guide on adding nodes](https://nodered.org/docs/getting-started/adding-nodes).\n\n## Development - how to build\n\nYou should be able to build the nodes executing\n\n```bash\nnpm install\nnpm run-script build\n```\n\nTo test them I use docker and mount the dist directory to /data/nodes like this `docker run -it --name tuya-test-container -p 1880:1880 -v $(pwd)/dist/lib:/data/nodes nodered/node-red-docker`. Be aware that by using this shortcut you have to ensure the dependencies of the nodes inside the container have to be installed manually `docker exec -it tuya-test-container bash -c 'cd /data \u0026\u0026 npm i tuyapi@3.2.3 --upgrade'`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhgross%2Fnode-red-contrib-tuya-smart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhgross%2Fnode-red-contrib-tuya-smart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhgross%2Fnode-red-contrib-tuya-smart/lists"}