Open edwolfe3 opened 3 years ago
You are correct and it was annoying me as well. Anyway, you can now store the key.json file in the parent directory of the node_modules folder. That way it won't get deleted by npm.
So store it in the folder "scripts" if njsTuya is in scripts/node_modules/njsTuya/
I'm leaving this open until the documentation is updated to reflect the change
I updated (actually removed and installed) to version 2.3.5 of njstuya and 1.07 of cloudtuya and now I'm getting the following using the same user-id and password. Before upgrading I was just getting the can't auth twice in 60 seconds error. FYI: it would be nice if an upgrade preserved the old key.json file so that it would not need to be recreated.