added documentation and openhabitems

This commit is contained in:
K. Siedentopp
2018-06-11 10:17:20 +02:00
parent 1612b97115
commit 2b388cd212
5 changed files with 296 additions and 4 deletions

View File

@@ -1,11 +1,9 @@
/*
* Simple wrapper for tuyapi for use with openhab or command line
npm install codetheweb/tuyapi
node ohtuya.js args
arg format -ip 192.168.x.x -id 1231204564df -key dsf456sdf TOGGLE
node tuya.js args
arg format --ip=192.168.x.x --id=1231204564df --key=dsf456sdf TOGGLE
args can be, ON, OFF, or TOGGLE. No arguement returns state
@todo set up js to log properly, sending to console messes up output.
@todo limit connection frequency seem to get connection errors
*/
const TuyaDevice = require('tuyapi');