tinytuya icon indicating copy to clipboard operation
tinytuya copied to clipboard

Tuya Third-patry authorization management

Open Xenomes opened this issue 1 year ago • 4 comments

Hi jasonacox, I noticed that Home Assistant has a 'Third-party authorization management' feature with a user code that is provided in the Tuya-based app. Do you think this could be possible for your project to bypass the 6-month renewal? afbeelding

Xenomes avatar Feb 21 '24 20:02 Xenomes

Is that for cloud access? I suspect it is and wouldn't help with those wanting local access. But may be worth exploring.

What is the HA plugin called?

jasonacox avatar Feb 22 '24 09:02 jasonacox

Yes is for cloud access at HA, If users add a new device after 6 months of the last dump of the json they need to extend the subscription to get the 'key' of the new device. Here is the location https://github.com/home-assistant/core/tree/dev/homeassistant/components/tuya

Xenomes avatar Feb 22 '24 09:02 Xenomes

It looks to have been added in https://github.com/home-assistant/core/pull/104767 and is using https://github.com/tuya/tuya-device-sharing-sdk to implement. Unfortunately the issue asking about the client_id is unanswered https://github.com/tuya/tuya-device-sharing-sdk/issues/4

uzlonewolf avatar Feb 22 '24 20:02 uzlonewolf

I hope they answer, but I am afraid not.

Xenomes avatar Feb 23 '24 19:02 Xenomes