Comments (12)
Thanks for letting me know the template is missing, Template is upload.
- Use the template to add new devices ( JSon array format) update the deviceId, local key , friendly name , topic
or - In the home page click on the [+] icon to add new device
Thanks
Thiru
from virtual-tasmota-for-tuya-api-devices.
tuya-api-template.js
{"tam_app_001":{"deviceConfig":[{"topic":"nodeId","devId":"xxxxxxxxxxxxx","key":"xxxxxxxxxxxxx","friendlyName":"xxxxxxxxxxxxxx","nodeId":"xxxxxxxxxxxxxxx","name":"Tuya Swtich 3 CH","id":"tuya_switch_ch3","template":"shd_s3c_template.htm","isDimmer":false,"powers":[1,2,3],"dimmerId":0,"rangeFactor":-1,"minDimValue":1,"telePeriod":{"time":"15","factor":"s"},"pulsePeriod":{"1":{"time":-1,"factor":"n"},"2":{"time":-1,"factor":"n"},"3":{"time":-1,"factor":"n"},"4":{"time":-1,"factor":"n"}},"deviceType":"tuya_switch_ch3"} , {repeat for second device } .... ]
}}
Update and save it as "Tuya-Api-Tasmota.rs"
if you are not comfortable using json template use the [+] icon from the home page http://127.0.0.1:8082 to add new devices
Thanks
Thiru
from virtual-tasmota-for-tuya-api-devices.
@mobamoba,
Please let me know if you need any help .. ?
from virtual-tasmota-for-tuya-api-devices.
Thanks that solved it. I have a question though (sorry for the noobiness :)): is there a way to use a command line with the app rather than the gui? Thanks.
from virtual-tasmota-for-tuya-api-devices.
@mobamoba , Thanks for the confirmation, Will add CLI and Mqtt option to added / manage device .
from virtual-tasmota-for-tuya-api-devices.
Great thanks.
from virtual-tasmota-for-tuya-api-devices.
@mobamoba,
CLI option is added follow the steps,
- Get latest code from the github
- Navigate to the code path and run "npm install"
- Run the Main with nodemon and run the CLI in separate instance "node tuya_api_mqtt_cli.js"
- New device will be added and will start sending mqtt
from virtual-tasmota-for-tuya-api-devices.
npm install is throwing this error:
npm ERR! file C:\npmnodes\Virtual-Tasmota-for-Tuya-api-devices\package.json
npm ERR! code EJSONPARSE
npm ERR! JSON.parse Failed to parse json
npm ERR! JSON.parse Unexpected number in JSON at position 331 while parsing '{
npm ERR! JSON.parse "name": "tuya-api-mqtt",
npm ERR! JSON.parse "descri'
npm ERR! JSON.parse Failed to parse package.json data.
npm ERR! JSON.parse package.json must be actual JSON, not just JavaScript.
from virtual-tasmota-for-tuya-api-devices.
@mobamoba, issue fixed check now
from virtual-tasmota-for-tuya-api-devices.
Yes that worked. Is there a way to use the CLI to manipulate the device (like toggling it on or off)? Thanks
from virtual-tasmota-for-tuya-api-devices.
I am not getting it. can you give me example of what you are looking for.
You can use mqtt command to achieve it
from virtual-tasmota-for-tuya-api-devices.
Yes I realized that like 2 minutes after I typed my question - ignore :), thanks!
from virtual-tasmota-for-tuya-api-devices.
Related Issues (8)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from virtual-tasmota-for-tuya-api-devices.