Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tuya integration worked after 2021.11 and then stopped after removing scenes #59061

Closed
menocode opened this issue Nov 4, 2021 · 37 comments
Closed

Comments

@menocode
Copy link

menocode commented Nov 4, 2021

The problem

Originally ran Tuya 2.0. Connected to my Tuya thermometer. When I moved to 2021.10, the device disappeared. I updated to 2021.11 yesterday and the thermometer reappeared and worked fine.
Today I removed several scenes from the Tuya application as they were not working with HA. These scenes were attached to devices that HA sees but list as unsupported (an alarm clock)
After removing the scenes, reloading the integration and restarting HA, the integration did not load. Following errors in log (see below).

What version of Home Assistant Core has the issue?

2021.11.0

What was the last working version of Home Assistant Core?

2021.11.0

What type of installation are you running?

Home Assistant OS

Integration causing the issue

tuya

Link to integration documentation on our website

https://www.home-assistant.io/integrations/tuya/

Example YAML snippet

none

Anything in the logs that might be useful for us?

Logger: homeassistant.components.tuya
Source: components/tuya/__init__.py:99 
Integration: Tuya (documentation, issues) 
First occurred: 1:34:17 PM (1 occurrences) 
Last logged: 1:34:17 PM

Tuya login error response: {'code': 1106, 'msg': 'permission deny', 'success': False, 't': 1636025657568}

Logger: homeassistant.config_entries
Source: components/tuya/init.py:66
First occurred: 1:34:17 PM (1 occurrences)
Last logged: 1:34:17 PM

Error setting up entry yosef@friedfamily.com for tuya
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 304, in async_setup
result = await component.async_setup_entry(hass, self) # type: ignore
File "/usr/src/homeassistant/homeassistant/components/tuya/init.py", line 66, in async_setup_entry
hass.data[DOMAIN].pop(entry.entry_id)
KeyError: 'aa386d2d9b031f08deb78773d1cf38fd'

Additional information

image

@probot-home-assistant
Copy link

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)


tuya documentation
tuya source
(message by IssueLinks)

@mrwhite31
Copy link
Contributor

I had the same error today. I've then removed the integration and tried to re-setup. Now I can't even add it anymore, I get the following error:

" (1109): param is illegal ,please check it"

@groenmarsmannetje
Copy link

Multiple people are reporting access issues with the Tuya integration from start of today.

@kthhrv
Copy link

kthhrv commented Nov 4, 2021

it appeared to start throwing "Login error (1106): permission deny" for me this morning after I upgrade to core-2021.11.0

@BanbaZA
Copy link

BanbaZA commented Nov 4, 2021

it appeared to start throwing "Login error (1106): permission deny" for me this morning after I upgrade to core-2021.11.0

I am receiving the same error.

Was able to upgrade to 2021.11.0 with no issue. Tuya intergration was working fine after install. Re-started HA, and now receiving the above error...

@j4m35
Copy link

j4m35 commented Nov 4, 2021

I just upgraded to core-2021.11.0 and Tuya is throwing "Login error (1106): permission deny". I first tried deleting the integration and adding it back but kept getting the same error.

I then tried downgrading to 2021.10.7 / 2021.10.6 (where it was working before) and the same error is shown when trying to add the integration.

Therefore, there's a possibility the error is on Tuya's side?

@landaisbenj
Copy link
Contributor

Same for me. New install, new Tuya IoT Platform project created, and Login error when i add integration

@ghost
Copy link

ghost commented Nov 4, 2021

Confirming. Absolutely the same situation here.

@dieugab
Copy link

dieugab commented Nov 4, 2021

Same here, stopped working this morning on latest HA

@guidohaesen
Copy link

Same here, stopped working this morning on latest HA

+1

@sheldonp0pe
Copy link

Same here, I tried to restore mine back to 2021.10.6 but didn't do me any good. Changed the password twice and I can still log into the app on my phone but the intergration just says "Login error (1106): permission deny" ....

@csmit86
Copy link

csmit86 commented Nov 4, 2021

Yep, its on Tuya's side. Exactly what I was afraid of when adding cloud integrations to HA.

@zuzuman
Copy link

zuzuman commented Nov 4, 2021

Same here

@zlinoliver
Copy link
Contributor

Sorry for the inconvenience, we have found the cause of the 1106 error, it's related to the Tuya Smart/ Smart Life account password validation, not related to the 2021.11 HA version. We will fix it ASAP.

@joaomfernandes
Copy link

Is there an ETA for this?

@ghost
Copy link

ghost commented Nov 4, 2021

Just got fixed.
I reset my password in the Tuya App. Then reinstalled the integration and everything's back to normal (as normal as it was).

@jad889nb
Copy link

jad889nb commented Nov 4, 2021

Still having the same "Login error (1106): permission deny"

@bellini666
Copy link

Waiting for a fix on this too.
Btw, will this be solved automatically or will it require an update on HA? Based on @zlinoliver 's reply I think it should be automatic, right?

@craigccfl
Copy link

Same issue as the other after upgrading to v11. Deleted the Tuya integration, changed Tuya password via the android app, reinstall the Tuya integration, now it is working again.

@Shandowww
Copy link

Works for me as well, changed the app password just in case, not sure if it is necessary.
I can add new devices as well, Thanks!

@landaisbenj
Copy link
Contributor

Ok, work for me now. Like other, change password, et readd integration

@bellini666
Copy link

Hey guys. So, I need to change my password and reintegrate again?

Like, is there a way to not do that? I don't want to have to setup my integrations again in case some device names change...

If there's no option then ok, but I would really like to not have to do that =P

@apomper
Copy link

apomper commented Nov 4, 2021

@bellini666 you can try resetting you password, then resetting it again back to the original password. Once done, restart HA. It has worked for some.

@stamandr
Copy link

stamandr commented Nov 4, 2021

Didn't work for me.....

@dieugab
Copy link

dieugab commented Nov 4, 2021

Worked for me by changing my password and retrying. Just reinstalling without changing my password didn’t work

@eboettn
Copy link

eboettn commented Nov 4, 2021

Worked for me! had to reset password on the app, setup a new one. Reset it again, set it up with the original password. reboot HA, and it worked.

@adam-cobb
Copy link

Same, was able to make it work by changing password then changing back and restarting

@bellini666
Copy link

Did the same, just reset my password on my smartlife app to something else, then changed it again to my previous password, restarted HA and everything is working again!

@j4m35
Copy link

j4m35 commented Nov 5, 2021

I am able to login via the Tuya integration now. Had to do some reconfiguration with the new entity names but everything is working again.

@menocode
Copy link
Author

menocode commented Nov 5, 2021

Just restarted HA and Tuya is back to working

@teijiIshida
Copy link

I just cleared Smart Life app cache, upgraded HA to 11.1.11 and restarted HA. And Tuya is working again. I didn't change any password.

@jjwork
Copy link

jjwork commented Nov 5, 2021

I was able to get back and running by doing the validate app/ device step again in the Tuya portal

@joaomfernandes
Copy link

Mine is also working but cover state is wrong. It reports closed when it's open.

@landaisbenj
Copy link
Contributor

Mine is also working but cover state is wrong. It reports closed when it's open.

Mine cover state don’t work too. No update. Maybe need another issue (maybe already open?)?

@Mocheto
Copy link

Mocheto commented Nov 8, 2021

didn't work for me... I'm waiting for a solution. my thermometer and IR controllers are down in my HA. With official tuya integration appears as unsupported device, but with tuya v2 integration did worked fine, but now I cannot start tuya v2..

@martijn1247812
Copy link

Hi I have the same problem with my tuya devices. After a while the integration seems to stop working. Reloading the integration seems to work for a while, but after a while it stops again. I'm running 2021.11.5

@github-actions
Copy link

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.

@github-actions github-actions bot added the stale label Mar 19, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Apr 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests