iRayanKhan / homebridge-tuya

A Homebridge plugin to control Tuya devices locally.
MIT License
403 stars 167 forks source link

Tuya local keys no longer work and have changed format? #410

Closed badbubblegum closed 10 months ago

badbubblegum commented 1 year ago

Checklist

Describe the bug A clear and concise description of what the bug is.

Extracted local keys from Tuya IOT platform no longer work, are case sensitive and include characters resulting in "[homebridge-tuya] **, key for Den Fan (xxxxxxxxxxxxxxxxxxxxxxxx), is not a valid key." error.

To Reproduce Steps to reproduce the behavior: Reset a connected cloud device and retrieve local key. Local key entry in config.js will not be accepted.

Expected behavior A clear and concise description of what you expected to happen.

Devices to function locally in HomeKit.

Screenshots If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

Additional context Add any other context about the problem here.

I had a Tuya switch drop off my network and had to reset, when retrieving new local keys I noticed they had changed format and no longer work in my integration.

dibsies commented 1 year ago

@badbubblegum please see this thread for a workaround: https://github.com/iRayanKhan/homebridge-tuya/issues/409#issuecomment-1545078314