- Login error (2406): skill id invalid #582
- Comments
- Code 2406 skill id invalid #14
- Comments
- New Tuya Integration «Login error (2406): skill id invalid» #57945
- Comments
- The problem
- What is version of Home Assistant Core has the issue?
- What was the last working version of Home Assistant Core?
- What type of installation are you running?
- Integration causing the issue
- Link to integration documentation on our website
- Example YAML snippet
- Anything in the logs that might be useful for us?
- Additional information
- Footer
- 2406 skill id invalid #613
- Comments
Login error (2406): skill id invalid #582
Comments
I was using the old integration, updated HASSIO and can’t set up the new Tuya integration.
After I tried to use the same Account ID and password from the dev platform, I checked the https://www.home-assistant.io/integrations/tuya/ website and saw this: «Make sure that your cloud project on the Tuya IoT Platform should be created after May 25, 2021. Otherwise, you need to create a new project or migrate data to a new project. For more information, see Operation on the Tuya IoT Platform.»
Ok, since I had my project set before may, I created a new project, deleted the old integration, unlinked my devices from my old project and linked with the new one. Same error.
After that, I created a new dev account and tried from scratch, same error.
I was using local tuya, but can’t find any relation since I am using a brand new account for this setup and my old account don’t have any link with my smart tuya account (the one used in the app)
Home Assistant Version
Home Assistant OS 6.5
core-2021.10.4
supervisor-2021.10.0
The text was updated successfully, but these errors were encountered:
@Marcos-kp also having the issues as you here. Few of us have been discussing possible causes/solutions in a reddit thread , but so far no luck. Hopefully something comes up with this
Also having the same issue. Cannot setup the integration in new Home Assistant 2021.10.5 (implemented natively, without need for HACS install)
same problem here:
2021-10-16 14:52:54 ERROR (MainThread) [custom_components.tuya_v2.config_flow] Login failed:
using HA Tuya default integration works
I have exactly the same. Created a whole new developer account to no avail.
Solution was found by @Marcos-kp , so credit goes to them, but sharing here as well for all to see. This is from the reddit thread i shared previously;
Apparently, when seting up your Link Tuya App Account in the Devices tab under My Cloud Projects, there is a dropdown in the top right of the page that is the region your device will be connected.
You need to use the correct one (and the only this one for this to work).
So, before everything, go to all your accounts and projects and make sure to unlink your app account and make sure to unlink from all regions. You can edit your project, add all regions and unlink it.
After you done this, go on and try linking your app account (with the QR code) region by region and checking if the All Devices tab show your devices. When it does, make sure to unlink from all other regions.
After that is done, I was able to connect with HASSIO and get my devices working!
I’m still struggling to get a result here. I had no previous developer account but did have tuya integration for a long time in HA. Have one lone Wifi Brilliant Smart lamp. I’m based in Australia
I have created a new developer account and was able to connect the tuya app and the lamp shows up in the All Devices list. All appears fine. I had to set my server to Central Europe to get it to appear.
In HA I removed all reference to Tuya in the configuration and rebooted.
When attempting to set up the integration in HA I stll get this login error (2406): skill id invalid.
Is it necessary to create a whole new login for the app? It seems that you cannot effectively delete the current user for at least 7 days.
What am I missing here?
Similar boat to pgv123.
Have created two new projects today and still have the same login error. Am connecting to Australia. Have confirmed that my project is on the Central Europe server. Have linked my tuya smart app to the project and can see the devices in the project. Entering correct information into Tuya integration in home assistant, choosing Australia, entered the access ID and secret. Used same username and password for the tuya smart app.
Still same issue.
I’m still struggling to get a result here. I had no previous developer account but did have tuya integration for a long time in HA. Have one lone Wifi Brilliant Smart lamp. I’m based in Australia I have created a new developer account and was able to connect the tuya app and the lamp shows up in the All Devices list. All appears fine. I had to set my server to Central Europe to get it to appear. In HA I removed all reference to Tuya in the configuration and rebooted. When attempting to set up the integration in HA I stll get this login error (2406): skill id invalid. Is it necessary to create a whole new login for the app? It seems that you cannot effectively delete the current user for at least 7 days. What am I missing here?
Hey pgv I found in an reddit post changing from Australia to Sweden works. And it does. I suspect there is something in the Tuya backend servers that is blocking the Australia portion for some reason..
I’m still struggling to get a result here. I had no previous developer account but did have tuya integration for a long time in HA. Have one lone Wifi Brilliant Smart lamp. I’m based in Australia I have created a new developer account and was able to connect the tuya app and the lamp shows up in the All Devices list. All appears fine. I had to set my server to Central Europe to get it to appear. In HA I removed all reference to Tuya in the configuration and rebooted. When attempting to set up the integration in HA I stll get this login error (2406): skill id invalid. Is it necessary to create a whole new login for the app? It seems that you cannot effectively delete the current user for at least 7 days. What am I missing here?
Hey pgv I found in an reddit post changing from Australia to Sweden works. And it does. I suspect there is something in the Tuya backend servers that is blocking the Australia portion for some reason..
Spot on! Works perfectly.
I’m still struggling to get a result here. I had no previous developer account but did have tuya integration for a long time in HA. Have one lone Wifi Brilliant Smart lamp. I’m based in Australia I have created a new developer account and was able to connect the tuya app and the lamp shows up in the All Devices list. All appears fine. I had to set my server to Central Europe to get it to appear. In HA I removed all reference to Tuya in the configuration and rebooted. When attempting to set up the integration in HA I stll get this login error (2406): skill id invalid. Is it necessary to create a whole new login for the app? It seems that you cannot effectively delete the current user for at least 7 days. What am I missing here?
Hey pgv I found in an reddit post changing from Australia to Sweden works. And it does. I suspect there is something in the Tuya backend servers that is blocking the Australia portion for some reason..
Another Australian user, can confirm that changing to sweeden on the home assistant tuya login works! Along with the central europe server
Hello, I try 2 times (two cloud projects) with Smart Life app and today I remove and unlink it. I install Tuya app, start new cloud project and link to my app. I have European data center and app working in Poland. I try country code: pl, eu, de but nothing works.
Regards.
Code 2406 skill id invalid #14
Comments
TuyaOpenAPI response: <"code":2406,"msg":"skill id invalid","success":false,"t":1622204992541>path = /v1.0/iot-01/associated-users/actions/authorized-login
(node:28565) UnhandledPromiseRejectionWarning: 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:45:10)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at TuyaSHOpenAPI.request (/usr/local/lib/node_modules/homebridge-tuya-platform/lib/tuyashopenapi.js:128:5)
at TuyaSHOpenAPI.getDevices (/usr/local/lib/node_modules/homebridge-tuya-platform/lib/tuyashopenapi.js:58:15)
at TuyaPlatform.initTuyaSDK (/usr/local/lib/node_modules/homebridge-tuya-platform/index.js:76:17)
(Use node —trace-warnings . to show where the warning was created)
(node:28565) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag —unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:28565) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
The text was updated successfully, but these errors were encountered:
New Tuya Integration «Login error (2406): skill id invalid» #57945
Comments
The problem
After completing the steps for the new Tuya Integration, it fails during the authentication/setup in Home Assistants integrations page. Following error: «Login error (2406): skill id invalid»
According to the docs this error means that the cloud project on the Tuya IoT Platform should be created after May 25. Well I just created my cloud project for the first time two days ago.
What is version of Home Assistant Core has the issue?
What was the last working version of Home Assistant Core?
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Link to integration documentation on our website
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
The text was updated successfully, but these errors were encountered:
Hey there @tuya, @zlinoliver, @METISU, @frenck, mind taking a look at this issue as it has been labeled with an integration ( tuya ) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
I confirm the same problem. I created the project half an hour ago and I have the same issue. The device I’m adding has been set up in the Smart Life app since 2019 — I don’t know if that’s relevant here? But I see the device in the Tuya IoT Platform, so the linking between the apps have at least succeeded.
I’m having same issue, signed up 30 mins ago
When I submit the integration I get ‘Unknown Error’. The Tuya credentials are all correct
Same to me. Login error (2406): skill id invalid.
Recreate project two times.
Never find «Smart Home Devices Management» API service.
I had project before 22-09-2020. Subscribe to everything that can find related.
I think this is that moment when we have to move to ESPHome!
Change Location to UK in HA integration solved the issue for me.
Facing the same issue, just created new account.
Having the same issue right now. Trying it since
3 hours with various fixed and styles of data but didn’t get it to work.
I have the same issue. Here are more details: The mobile app is in Brazil, on the Tuya IoT project I’m using Western America Data Center. When adding the credentials on the HA integration, if I use Brazil as country, it gives the ‘skill id invalid’ error. If I use United States, it works, but no device is added.
Just create this PR to fix the issue, it’s related to the relationship between account country region and data center endpoint: #58411
Just create this PR to fix the issue, it’s related to the relationship between account country region and data center endpoint: #58411
FYI, you’d get this also if your Tuya IoT project was created earlier than May 25th 2021, so create a new one in case (and unlink and re-link your device to that)
FYI, you’d get this also if your Tuya IoT project was created earlier than May 25th 2021, so create a new one in case (and unlink and re-link your device to that)
We all know this. I even stated so in the OP and it is clearly mentioned in the HA Docs. This is not the case for this issue though.
Agreed. I am in Aus and my account is apparently in the Western Europe data centre. That enabled me to get the IOT project to see my devices. But I cant connect through HA like everyone else here. Very annoying since the previous integration worked and this does not.
Is the bugfix mentioned in #58411 shipped in docker images already? I’m facing the same issue on a fresh docker install on latest stable (homeassistant/raspberrypi4-64-homeassistant:2021.11.4) and on latest. My country is Poland and I’ve selected Central Europe. Setting country in HA to Germany, UK or Sweden does not help also. My project and Tuya account were created today.
EDIT: I didn’t RTFM good enough. I forgot to add my app account in devices tab as described in https://www.home-assistant.io/integrations/tuya/.
There hasn’t been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
Footer
© 2023 GitHub, Inc.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
2406 skill id invalid #613
Comments
Hello!
Following the instructions, I created a new account and a new project. When I try to log in, I get an error: Invalid authentication.
In logs: 2021-10-21 10:33:31 ERROR (MainThread) [custom_components.tuya_v2.config_flow] Login failed: <'code': 2406, 'msg': 'skill id invalid', 'success': False, 't': 1634801611400>.
The SmartLife account is linked, the devices on the Tuya website are visible.
«Central Europe Data Center» is selected in the project settings, country code for authorization is 7.
The text was updated successfully, but these errors were encountered:
Same error here. Also on Central Europa Data Center. Country code 31.
Same to me. Login error (2406): skill id invalid.
Recreate project two times.
Never find «Smart Home Devices Management» API service.
I had project before 22-09-2020. Subscribe to everything that can find related.
I think this is that moment when we have to move to ESPHome!
Yeah same here. no luck. neither the support could help. time to move to a better ecosystem.
Hi @mifrith , the Tuya developer team really appreciates your contributions and efforts to this Tuya v2 integration project. As we stop maintaining it now, please help to recreate your issue in the Home Assistant Core repository: https://github.com/home-assistant/core/tree/dev/homeassistant/components/tuya
the problem is that the official integration doesn’t support yet the same sensors that tuya v2
@zlinoliver then please mark this integration as broken because it does not even support the basic functionalities and make the repo achieved. there is no sense to leave it around because it is broken if it can’t even support proper authentication and configuration.
Hi @mifrith @Hennie59 @mazzy89 , this error is caused by the cross-region API calls prohibition. The Tuya v2 has bug in the config_flow.py file, the TUYA_ENDPOINT_OTHER uses «https://openapi.tuyaus.com» for any country outside China, which is unreasonable. It causes the authentication error.
This issue is fixed in the Tuya HA Core version, please try it and see if it can resolve your issue.
We have already remove the Tuya v2 code from the master branch for this repo, you can still find the code in tuya-v2-backup branch.
Hi,
I dont know if it helps anyone, but the only way i managed to get it to work is by selecting UK as my country (dispite the fact that on Tuya developer site this is not my selection).
I don’t know why, but it worked and the integration didnt show the 2406 error anymore
That’s really weird that it works because as stated above the URL of the API is set for the US DC so unless you selected shouldn’t work.
This issue is fixed in the Tuya HA Core version, please try it and see if it can resolve your issue.
I’m on Home Assistant 2021.10.4, and I am using the built-in Tuya integration, and encountering the exact same issue.
Having the issue on Core 2021.10.6 — been looking at videos and following this thread.
When using UK as the country — it works as well even though I only see two devices when I have 5 detected in tuya iot platform.
Climate temperature is way off.
I’m guessing it’s because it is not yet supported — devices are smart lock — bluetooth pin — mesh gateway for the smart lock.
That’s really weird that it works because as stated above the URL of the API is set for the US DC so unless you selected shouldn’t work.
Hi,
Some additional information.
The original country i have selected was Israel that should be apart of the central Europe datacenter. when i tried to authenticate again i got the 2406 error.
on the 2nd attemped i selected a diffrent country which belongs to Central Europe (France) and the authentication worked correctly and the devices apeared.
Confirmed, when I set the correct endpoint for Australia in const.py and rebuilt the Docker image, I was able to successfully link my account.
bonjour j’ai réussi a contournez l’erreur .j’ai mis comme pays Spain a la place de switzerland. et cela a fonctionnez
This has to be the worse integration I have ever seen, it should be pulled instantly.
Yeah, this is super weird. Although my (original) app was set to mainland china (years ago) after trial and error I found my data in the USA. Im in Australia. They are really trying hard to make this overcomplicated. I just added ALL the data centres and kept selecting until it worked. Probably not the integration authors fault, just a crap implementation by Tuya. That said, smartthings isnt much better.
Still having the issue on the latest docker version
same here, still broken
You need to have a device in IoT platform.
What helped for me was:
Under «Devices» linked my Smartlife app to Tuya IoT platform, then under «all devces» added my Smartlife account and got my device listed.
After this, i got rid of the error and my devices popped up
I can confirm. My issue was the location of the devices of my linked Smart Life.
I changed the datacenter (in the device section) and linked my account again.
Now the devices are presents and the integration works.
I didn’t get any devices until I first set the correct datacenter under the owerview of the Tuya IoT platform. For me, it wasn’t the obvious one from my geographical location — I needed to look-up the appropriate one here. I then linked my SmartLife account to the Tuya IoT platform via Devices > Link Tuya App Account. With the wrong datacenter selected, the SmartLife account would still link, but it wouldn’t pick up any devices, and the HASS integration would throw this error.
So crazy! In case some gets here having the same problem I had:
- If you get the skill id invalid is totally related to geographical mismatch. I’m in Spain, so I picked Central Europe in the Tuya Iot Platform project. In HA, I had to pick my country, Spain. Once that done, the skill id invalid error went away, but the permission deny appeared.
- The permission deny problem was solved as soon as I used the username/email and password I used in my phone’s Smart Life app. I was using the credentials created for the Tuya IoT Platform. Once I entered the credentials in the mobile app everything worked out!
I had this error also.
- For the second set of credentials, its the Tuya Life app username and password.
- Just to reiterate the geographical mismatch, check your location is correct with the URL below. I thought I was Western Europe, turns out I needed to set to Central Europe 🤦♂️ I updated the Cloud Tuya Dev project data centre to match my Tuya Life app location and it worked.
I might have found a «workaround» for this.
I am in Eastern Canada/US and ran today into this same exact «2406 skill id invalid» issue.
First, I followed the instructions here. Installed Tuya Smart, created a tuya.com account created to add a Tuya Cloud Project (per instructions). Since I’m on East coast, I picked Eastern America Data Center»
Then I tried to configure Tuya in hass and kept getting the «2406» error. I scramble and went on a trial / error. Then I stumble on this Tuya document that shows some data centers are available only from specific regions. and I noticed «Eastern America DC» isn’t even part of the list.
I went on tuya.com and added «Western America DC» to the Cloud Project. BINGO, my devices finally showed up on tuya.com IoT portal!
Bottom line, if you’re trying to use Eastern America Data Center, try to use the Western one.