1.2.0 • Published 5 years ago

node-red-contrib-tuya-smart v1.2.0

Weekly downloads
116
License
MIT
Repository
github
Last release
5 years ago

tuya-smart

Build Status npm version

Input nodes to interface with smart plugs, bulbs, ... from tuya. Makes use of the tuyapi library. Check out their great guide on how to get your device id/device key out of the Tuya Smart/Smart Life app to get started. Once you got these device credentials, you will be able to configure and use this input node for NodeRED. The tuya devices are sold under different names like Gosund, BlitzWolf, Teckin, Meross, Homecube, ... Check out the general discussion regarding the tuya api and compatibility.

Connecting nodes

Connected nodes and output format

Input node with input and output format

powerstrip input node with input and output format

tuya 3-socket powerstrip outputs explained

Installation

You can install the package from the public npm registry using npm or the tooling provided by the NodeRED-GUI. Check out the NodeRED guide on adding nodes.

Development - how to build

You should be able to build the nodes executing

npm install
npm run-script build

To 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 && npm i tuyapi@3.2.3 --upgrade'.

1.2.0

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.0

5 years ago