Closed vfdev-5 closed 1 year ago
I solved this issue by fetching local_key
using python3 -m tinytuya wizard
and creating cloud account etc...
(I was hoping that it was not necessary)
Thanks for opening this @vfdev-5
Yes, unfortunately that is the necessary step to decrypt the payloads. Do you have any suggestions on how we could improve the README directions? We may not have made that clear.
I think the README is rather clear if I reread it right now. Maybe, at the first time of reading, I had a question about the sentence "Local_Key - The security key required to access the Tuya device." from Tuya Device Preparation section, like how can we get it. Then I saw scan and I thought that it could be enough...
Probably a nit update could be:
- Local_Key - The security key required to access the Tuya device.
+ Local_Key - The security key required to access the Tuya device. To obtain it the first time please follow the [next steps](https://github.com/jasonacox/tinytuya#setup-wizard---getting-local-keys) (there is no other way of getting it).
and
- Setup Wizard - Getting Local Keys
+ Setup Wizard - Getting Local Keys (Required)
Otherwise, reading the README carefully helps as well :)
Hi,
First of all, thanks for the project. I'm discovering it and I'm trying to connect to my smart outdoor socket (made by greensun but powered by tuya).
When I scan for devices:
python -m tinytuya scan
, I can discover the socket but "local_key" is empty:When I try to connect and get status, there is an error is reported:
Output:
Any hints how to fix this issue ? Thanks