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

Invalid Authentiication #28

Open DK-MGO opened 6 months ago

DK-MGO commented 6 months ago

Hello,

This looks very promising, and I can see this working on youtube how-to's ;o)

However, regardless if I try to access Tuya or Ledvance I always get "invalid authentication". I know that my Tuya trial account has expired. Might that be the reason for both failing? Any ideas for how to investigate, what to check or what to do? - Any additional settings to do in iot.tuya or Ledvance?

Thank you!

FlagX commented 6 months ago

It only works with your Ledance account.

Maybe this is a similar issue to this and you have to create a new account: https://github.com/FlagX/ha-ledvance-tuya-resync-localkey/issues/24

DK-MGO commented 6 months ago

No luck after having created two new accounts.

Does it matter that the Ledvance "Time Zone" is set to "Europe/Copenhagen"? - At least for Tuya the region in the app and in the developer portal needs to be the same, not sure if it has an impact here...

FlagX commented 6 months ago

You can try to adjust the country code in the const.py file.

https://github.com/FlagX/ha-ledvance-tuya-resync-localkey/blob/main/pyscript_modules/tuya/const.py