KrOnAsK
(Kr On As K)
April 22, 2021, 8:15pm
1
Local Tuya finds other device IDs than the ones reported by the app or the Tuya API and I also always get the same local key for all my devices, can someone help me ?
KTibow
(Kendell R)
April 22, 2021, 11:03pm
2
Please elaborate and add screenshots.
KrOnAsK
(Kr On As K)
April 23, 2021, 8:14am
3
These are my Devices with ID´s and HA is not detecting them correctly
KTibow
(Kendell R)
April 23, 2021, 1:39pm
5
What do you mean
And I don’t understand
Where are you getting the local keys?
KrOnAsK
(Kr On As K)
April 23, 2021, 1:43pm
6
I am getting them from the https://iot.tuya.com/ website like it is described in all the guides and youtube videos, I get a response from the API but its always the same local key for all my different devices.
HomeAssistant can auto discover the devices on my home network right ? like it does for everyone else apparently and for me it discovers devices too but they have different IDS so idk why it is doing that and how to fix it.
KTibow
(Kendell R)
April 23, 2021, 1:45pm
7
How?
I have a feeling that you’re misinterpreting this.
Did you expect all of the devices to have the same ID?
KrOnAsK:
how to fix it
I don’t think it’s a problem. Screenshot of this “incorrect” behavior?
KrOnAsK
(Kr On As K)
April 23, 2021, 2:23pm
8
If you compare the device IDs in the pictures I posted I have 3 devices as shown in the screenshot from tuya but the one with the dropdown menu is from HA from LocalTuya and it shows different IDs, and no the devices have all unique ids and should have unique local keys too.
I am getting my keys from the API on the developer account on tuya.
KTibow
(Kendell R)
April 23, 2021, 2:26pm
9
In all of the tutorials I’ve seen, none of them say to go to the Tuya Cloud’s registered devices to find the IDs and keys. Did you try looking at
**YMMV**: Tuya likes to change their website frequently and the below instructions may be slightly out of date. If something looks wrong, please open a new issue.
All methods below require you to install the CLI tool before proceeding.
Install it by running `npm i @tuyapi/cli -g`. If it returns an error, you may need to prefix the command with `sudo`. (Tip: using `sudo` to install global packages is not considered best practice. See [this NPM article](https://docs.npmjs.com/getting-started/fixing-npm-permissions) for some help.)
## Listing Tuya devices from the **Tuya Smart** or **Smart Life** apps
**Note**: Tuya no longer supports this for accounts created after March 24, 2021. If you created your cloud account after that date, this method will not work.
This method is fast and easy. If you're having trouble manually linking your device with the below method, we recommend you try this. All devices that you want to use **must** be registered in either the Tuya Smart app or the Smart Life app.
1. Follow steps 1 through 5 from the "Linking a Tuya device with Smart Link" method below.
2. Go to Cloud -> Project and click the project you created earlier. Then click "Link Device". Click the "Link Devices by App Account" tab.
3. Click "Add App Account" and scan the QR code from your smart phone/tablet app by going to the 'Me' tab in the app, and tapping a QR code / Scan button in the upper right. Your account will now be linked.
4. On the command line, run `tuya-cli wizard`. It will prompt you for required information, and will then list out all your device names, IDs, and keys for use with TuyAPI. Copy and save this information to a safe place for later reference.
## Linking a Tuya device with Smart Link
This method requires you to create a developer account on [iot.tuya.com](https://iot.tuya.com). It doesn't matter if the device(s) are currently registered in the Tuya Smart app or Smart Life app or not.
This file has been truncated. show original
yet?
KrOnAsK
(Kr On As K)
April 23, 2021, 2:41pm
10
Yes I tried that method too, gave me the same local key for everything again.
KTibow
(Kendell R)
April 23, 2021, 7:02pm
11
And you get an error when you configure it with those IDs and keys, right? What is it?
KrOnAsK
(Kr On As K)
April 23, 2021, 7:46pm
12
Yes I get an error even though its the Device ID and local key from the CLI interface (which is the same as when I get the local keys through the Tuya Website)
this is the error.
KTibow
(Kendell R)
April 23, 2021, 7:47pm
13
You also need to use the right host.
KrOnAsK
(Kr On As K)
April 23, 2021, 8:24pm
14
I am the 192.168.10.62 is my zigbee gateway’s Ip
KTibow
(Kendell R)
April 24, 2021, 1:43am
15
Why are you using the id for the temperature and humidity sensor with the zigbee hub’s IP?
KrOnAsK
(Kr On As K)
April 24, 2021, 7:01am
16
Cause it doesnt have its owns since its zigbee, and I also tried using my homeassistant IP as the host IP but that still doesn’t work
KTibow
(Kendell R)
April 24, 2021, 2:42pm
17
You should try raising an issue at localtuya. Also, what happens if you directly set up the zigbee gateway instead of another device?
KrOnAsK
(Kr On As K)
April 25, 2021, 5:33pm
18
I tried that too but it doesnt work either. I think ill have to do that yeah.
Augspurger
(M.Augspurger)
November 12, 2021, 9:48am
19
Hello Everybody out there,
same Problem here I tried several ways to get the ID´s.
From iot Tuya Cloud Service and with Bluestacks and Tweaker and MArk Watt Tech Tool.
Has the Problem been solved ??
Best wishes
Marc
1 Like