Closed mobamoba closed 4 years ago
@mobamoba,
Thanks for letting me know the template is missing, Template is upload.
Thanks Thiru
{"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_switchch3"} , **{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
@mobamoba, Please let me know if you need any help .. ?
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.
@mobamoba , Thanks for the confirmation, Will add CLI and Mqtt option to added / manage device .
Great thanks.
@mobamoba, CLI option is added follow the steps,
Check and let me know
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.
@mobamoba, issue fixed check now
Yes that worked. Is there a way to use the CLI to manipulate the device (like toggling it on or off)? Thanks
I am not getting it. can you give me example of what you are looking for. You can use mqtt command to achieve it
Yes I realized that like 2 minutes after I typed my question - ignore :), thanks!
Sorry I'm new to this. I followed your setup instructions but it's not working. I notice a reference to "Tuya-Api-Tasmota.rs" and "tuya-api-template.js" but I don't actually see either of those. Was there something additional I was supposed to install? Thanks.