TuyaSmartNodejs 2.0 based on Tuyapi ( https://codetheweb.github.io/tuyapi/index.html )
Refactor of the tuyaSmartNodejs repository from express to nestjs for future implementations
The project born to create a http server for manage the home automation sockets compatible with the Tuya and Smart Life apps. Currently, single sockets and multiple sockets are managed and recently compatibility with Nooie bulbs and Lifx white bulb has also been implemented.
Just clone repository, run npm install
run npm run build
- Bulb and Socker compatible with Tuya and SmartLife app
- Nooie Bulb
- Lifx Bulb (no color version)
In order to work, you need both the id and the key of the device.
- Turn On multiple socket
http://127.0.0.1:8081/tuya/multiple?id=<id_device>&key=<key_device>&use=accendi&subdevice=<id_sub_socket>
- Turn On single socket
http://127.0.0.1:8081/tuya/single?id=<id_device>&key=<key_device>&use=accendi
- Turn On nooie bulb
http://127.0.0.1:8081/nooie/bulb?id=<id_device>&key=<key_device>&use=accendi
- Turn On lifx bulb
http://127.0.0.1:8081/lifx/bulb?light=<id_light>&state=ON
For each call, there are many options (especially for nooie bulbs).
The system exposes its api and all the options provided through the url http://127.0.0.1:8081/swagger
which is available after the project has been started.
You can find project documentation schema here: https://marcopollacci.github.io/tuyaSmartNodejs-2.0/
Use Pm2 with ecosystem.config.js file include in this project!
You can find Docker package here https://hub.docker.com/repository/docker/marcopollacci/tuya-smart-nodejs-2.0
- Implement service to control and learn with BroadlinkIR