tuya / tuya-homebridge

Homebridge custom plugin for controlling Powered by Tuya (PBT) devices in HomeKit. This plugin is officially maintained by the Tuya Developer Team.
MIT License
332 stars 168 forks source link

All devices stopped suddenly responding #299

Closed ziggitipop closed 1 year ago

ziggitipop commented 1 year ago

Several light switches suddenly stopped responding from homekit. Working fine within the tuya app but no response at all through homebridge.

github-actions[bot] commented 1 year ago

Thank you for your feedback, we will solve this issue soon

MeesMaas commented 1 year ago

I have the same.

kbyquist commented 1 year ago

I'm having the same issue. I can control through the Tuya app, but homebridge is not sending any request to Tuya when an outlet is turned on in HomeKit.

AlexKvam commented 1 year ago

I'm having the same issue here are my logs: [10/13/2022, 7:23:36 PM] Homebridge v1.4.1 (HAP v0.10.2) (Homebridge 75D7) is running on port 51635. TuyaOpenAPI response: {"code":2406,"msg":"skill id invalid","success":false,"t":1665681816231,"tid":"c524cb704b1b11edb8a1ca0f69d78a9e"} path = /v1.0/iot-01/associated-users/actions/authorized-login TypeError: Cannot destructure property 'access_token' of 'res.result' as it is undefined. at TuyaSHOpenAPI._refreshAccessTokenIfNeed (/usr/local/lib/node_modules/homebridge-tuya-platform/lib/tuyashopenapi.js:49:11) at processTicksAndRejections (node:internal/process/task_queues:96:5) at TuyaSHOpenAPI.request (/usr/local/lib/node_modules/homebridge-tuya-platform/lib/tuyashopenapi.js:145:7) at TuyaSHOpenAPI.getDevices (/usr/local/lib/node_modules/homebridge-tuya-platform/lib/tuyashopenapi.js:63:15) at TuyaPlatform.initTuyaSDK (/usr/local/lib/node_modules/homebridge-tuya-platform/index.js:91:19) Attention⚠️ ⚠️ ⚠️ ! You get an error! Failed to get device information. Please check if the config.json is correct.

RidasBuzius commented 1 year ago

Same error

Kohle81 commented 1 year ago

Same error, too.

FarisDIL commented 1 year ago

Same issue :|

cjstone commented 1 year ago

Same!! @zlinoliver, any updates?

xrust83 commented 1 year ago

The curtains stopped working, error 1114 appeared 2-3 days ago. Everything worked great

Ответ TuyaOpenAPI: {"code":1114,"msg":"ваш ip(45.151.238.199) не имеет доступа к этому API","success":false,"t":1665698870577,"tid":"7a54b4c44b4311edb8a1ca TypeError: Невозможно деструктурировать свойство 'access_token' 'res.result', так как оно не определено. на TuyaSHOpenAPI._refreshAccessTokenIfNeed (/usr/local/lib/node_modules/homebridge-tuya-platform/lib/tuyashopenapi.js:49:11) в processTicksAndRejections (узл:internal/process/task_queues:96:5) на TuyaSHOpenAPI.request (/usr/local/lib/node_modules/homebridge-tuya-platform/lib/tuyashopenapi.js:145:7) на TuyaSHOpenAPI.getDevices (/usr/local/lib/node_modules/homebridge-tuya-platform/lib/tuyashopenapi.js:63:15) на TuyaPlatform.initTuyaSDK (/usr/local/lib/node_modules/homebridge-tuya-platform/index.js:90:19) Внимание⚠️ ⚠️ ⚠️ ! Вы получаете ошибку! Не удалось получить информацию об устройстве. Пожалуйста, проверьте правильность config.json.

cjstone commented 1 year ago

@Hanh94 ?

Azukovskij commented 1 year ago

Same as https://github.com/tuya/tuya-homebridge/issues/298, I've added a workaround to resolve this for my smart home

cjstone commented 1 year ago

Thanks @Azukovskij! Works great now!

timhbf commented 1 year ago

May I know how to apply this workaround? Thanks

freemanuk commented 1 year ago

Facing the same problem.

Azukovskij commented 1 year ago

May I know how to apply this workaround? Thanks

@timhbf you need to modify file from an error ‘ /usr/local/lib/node_modules/homebridge-tuya-platform/lib/tuyashopenapi.js’ and add changes of linked commit.

mmaslen commented 1 year ago

Tuya are now asking me to extend my trial period - is that normal - i'm not even using this for development, just a home user - if they are going to make me pay for the service now i'll reconsider me using their devices, not a good look 👎

antonkrall commented 1 year ago

/usr/local/lib/node_modules/homebridge-tuya-platform/lib

Can confirm that it works!!!

antonkrall commented 1 year ago

Why wouldnt the creator of the plugin just apply this patch and push it?

freemanuk commented 1 year ago

I log in to Tuya iot platform, under Device option and switched it back to Central Europe Data Center and got back my device list. Everything works now. I don't know why is was switched to China Data Center.

Kohle81 commented 1 year ago

I don‘t know what to do?

preethaml7 commented 1 year ago

Happened to me today. All I did was unlink the app from the tuya cloud website, and re-link it again by scanning the QR code shown on tuya cloud with the tuya app. (provide read and write permission to devices in the tuya cloud prompt after scanning the QR code) Reload the integration in Homebridge and voilà, everything should be working as before. If you are still facing issues, go to home bridge settings Remove All Cached Accessories and try the above step hopefully you should get it working too.

mmaslen commented 1 year ago

Happened to me today. All I did was unlink the app from the tuya cloud website, and re-link it again by scanning the QR code shown on tuya cloud with the tuya app. (provide read and write permission to devices in the tuya cloud prompt after scanning the QR code) Reload the integration in Homebridge and voilà, everything should be working as before. If you are still facing issues, go to home bridge settings Remove All Cached Accessories and try the above step hopefully you should get it working too.

tried that, no success

PNWOregon commented 1 year ago

My devices have been unusable In HomeBridge for 2 days now. I’ve tried several of the suggested fixes except for Azukovskij‘a “work around” since I don’t understand it. Hopefully this gets resolved soon.

mmaslen commented 1 year ago

ok, it's finally working for me with the standard plug-in - I ended up changing and ensuring that the iOS app password, the IOT platform password and the plugin password were all identical

github-actions[bot] commented 1 year ago

Stale issue. we will close the issue soon. If this issue has not been resolved, please update the issue and contact us in time.

DavKirsch commented 1 year ago

I had this same issue and just solved it today. About a month ago, all my devices on the Tuya Platform bridge stopped working in Homekit. They were still working on the Smart Life app though...

After a lot of searching, I discovered the IoT Core Services on the Tuya IoT Developer Platform had been working via a free trial and that had expired. There was an orange button to request an extension of the trial (as buying the bundle was $25K+). I asked for an extension for 6 months for my Hoobs Smart Hub, which was granted by the next morning. Then, I restarted the Bridge in HOOBs and all my devices were cached again and working in Homekit!! Took me a month to solve but everything is up and running.

FYI, You will need to repeat this process every 6 months though, the only downside.

Workflow.with.Tuya.pdf

github-actions[bot] commented 1 year ago

Stale issue. we will close the issue soon. If this issue has not been resolved, please update the issue and contact us in time.