homeassistant-goldair-climate
homeassistant-goldair-climate copied to clipboard
Easier access to device id & key
Hi As a newbie I wasnt so sure about your instructions to get the device links by re-adding the device etc as I operate a mesh router and it was very difficult to get them connected in the first place. I did a bit of digging and found this link which helped me find the information quite easily on the IoT Tuya platform, so thought it might be good to put it on here for others.
https://linkdhome.com/articles/local-tuya-device-control-in-homekit
I did find that the data has been changed about a bit and after going into the API explorer I had to go to Smart Home Device System, then Device Management and get Device details to get the Local key for the devices. But once I had them I loaded it into this integration and it found them right away
Does this work with the Goldair branded app? Or do you need to install one of the Tuya branded apps (I have heard plain "Tuya" and "Smart Life" apps also work with this method)?
I had the Smartlife app installed. The Goldair app just seems to be a rebrand of the Tuya app anyway
-------- Original message -------- From: Jason Rumney @.> Date: 30/10/22 3:12 pm (GMT+12:00) To: nicole-ashley/homeassistant-goldair-climate @.> Cc: jonathang56 @.>, Author @.> Subject: Re: [nicole-ashley/homeassistant-goldair-climate] Easier access to device id & key (Issue #52)
Does this work with the Goldair branded app? Or do you need to install one of the Tuya branded apps (I have heard plain "Tuya" and "Smart Life" apps also work with this method)?
— Reply to this email directly, view it on GitHubhttps://github.com/nicole-ashley/homeassistant-goldair-climate/issues/52#issuecomment-1296065233, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AL2WG7AS2KH7Z3LZGEGL4OLWFXKQVANCNFSM6AAAAAARR7WMDM. You are receiving this because you authored the thread.Message ID: @.***>
Its a rebrand, but I think it also has its own device registration space separate from other apps. So linking with the developer portal does not work.
Hi - I also just struggled with finding the local key via the instructions, but ultimately found that if you setup the IOT account and add your device e.g. via linking the Tuya Smart app, this API debug page can be used to get the device details which includes the localKey value.
From the Tuya Developer account:
- Load the API Explorer (Cloud -> API Explorer)
- Select "IoT Core" from the first dropdown menu
- Navigate to Get device details (Smart Home Device System > Device Management > Get device details)
- Finally, enter your device ID obtained from any of the previous methods and submit the form.
- A JSON response should be displayed that contains all the device details, including the key local_key which is the value needed.
Screenshot attached showing an example of the above page, since it's still a bit tricky to find when you're not used to their platform.

Its a rebrand, but I think it also has its own device registration space separate from other apps. So linking with the developer portal does not work.
I can confirm this too - tested by linking an empty tuya app and it worked right away - but goldair app just doesnt.
Did you ever find a workaround?
The only workaround to get local keys from the Goldair branded app is to have a rooted device, and find them on the filesystem yourself.
The only workaround to get local keys from the Goldair branded app is to have a rooted device, and find them on the filesystem yourself.
Great. Ill give that a go - might try the old method of doing the traffic capture and see if that still works.
Thanks for the reply.