tuya / tuya-home-assistant

Home Assistant integration for controlling Powered by Tuya (PBT) devices using Tuya Open API, maintained by the Home Assistant Community and Tuya Developer Team.
MIT License
857 stars 206 forks source link

Login request gets error code 500 #618

Open paul140301 opened 2 years ago

paul140301 commented 2 years ago

Describe the bug Tuya V2 is unable to use since the login method goes in error code 500. This blocks the integration

Expected behavior Not an error, but the integration startup

Home Assistant Version 2021.10.6

LOG:

Logger: custom_components.tuya_v2 Source: custom_components/tuya_v2/init.py:153 Integration: Tuya v2 (documentation) First occurred: 11:35:06 (1 occurrences) Last logged: 11:35:06 Tuya login error response: {'code': 500, 'msg': 'system error,please contact the admin', 'success': False, 't': 1634808905647}

francecisco commented 2 years ago

Hello, test this solution . its work for me. dowgrad to v1.5 (because 1.6 don't update nice the sensor), before the tuya reconfiguration change the file const.py --> see https://github.com/tuya/tuya-home-assistant/issues/586#issuecomment-945077271 and https://github.com/tuya/tuya-home-assistant/issues/586#issuecomment-945983788

rlust commented 2 years ago

Integration is loading but no devices listed. Tried several times, Tuya cloud sees all devices

mrteausa commented 2 years ago

I got that same error with the latest core version update. The status of the On/Off also mess up on the HA.
So I see this post and downgraded to Tuya v2 version 1.5.0. After that, it works great and respond to the On/Off status also. Thanks!!