FlagX / ha-ledvance-tuya-resync-localkey

pyscript for homeassistant to resync local keys from private tuya api
MIT License
121 stars 18 forks source link

Script does no longer work #19

Closed ha1fdan closed 10 months ago

ha1fdan commented 10 months ago

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...

ha1fdan commented 10 months ago

I can control my smart plugs via the app

FlagX commented 10 months ago

@ha1fdan, you printed the local keys here. So I would say the script has worked as intended?

ha1fdan commented 10 months ago

Yes but the keys are encrypted in some way, and homeassistant won't accept the keys as the script print them.

FlagX commented 10 months ago

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?

mafen commented 10 months ago

works just fine for me

ha1fdan commented 10 months ago

Okay, let me try again tomorrow.

ha1fdan commented 10 months ago

Hey, you know what? It was my home assistant that was bad! Not your program, thanks so much👍