rospogrigio / localtuya

local handling for Tuya devices
GNU General Public License v3.0
2.83k stars 545 forks source link

--not error-- Way to get keys without command line #263

Open wlatic opened 3 years ago

wlatic commented 3 years ago

This weekend I put some time into a way to grab the keys without needing to get the tuya-cli installed and configured.

https://github.com/wlatic/hassio.addons/tree/master/addon-tuyagrab ( repo https://github.com/wlatic/hassio.addons).

This is a hassos addon which, when running, will update the device list every 5 minutes and it has a link (which opens in a new tab) so you can use the list when adding to Home Assistant.

pasboz commented 3 years ago

I added the repo https://github.com/wlatic/hassio.addon to home assistant, but I only see the Hassio Custom Addon: CloudFlare Argo and the Oalpr in the add-on store. Have I forgotten something? thanks

wlatic commented 3 years ago

Ooops, added in a line to stop it running automatically, however didnt remove the automatic line :( should be working now.

pasboz commented 3 years ago

It works now. And I have managed to get all Tuya keys 👍 . thank you so much 🥇

KTibow commented 3 years ago

/local/tuyadevices.txt

This seems pretty insecure. You could at least change it to an HTML file and implement a JS simple cipher/encryption technique, that way if you accidentally leak your domain, they can't have control over your lights (at least I think these keys allow for remote control).

fickleview commented 3 years ago

I only see Cloudflare?

fickleview commented 3 years ago

Never mind, found it.