Closed ha1fdan closed 10 months ago
I can control my smart plugs via the app
@ha1fdan, you printed the local keys here. So I would say the script has worked as intended?
Yes but the keys are encrypted in some way, and homeassistant won't accept the keys as the script print them.
They look pretty similar to what I would get for my lamps (16 chars, alphanumeric with special characters) and for me it still works. Any error message or hints in the logs of home assistant?
works just fine for me
Okay, let me try again tomorrow.
Hey, you know what? It was my home assistant that was bad! Not your program, thanks so much👍
python .\print-local-keys.py Please put your Tuya/Ledvance username: xxxxxxxx@gmail.com Please put your Tuya/Ledvance password:
device name: Smart Plug 1 device id: bf94c09abf90xxxxxxx local key: hGwPLA)T_Z%F>{PL
device name: Smart Plug 2 device id: bf9772ae0daxxxxxxx local key: '!}{g82vEr^E`4&f
Press Enter to continue...