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
871 stars 206 forks source link

Cannot connect from UK the integration european data centre HA on Synology running VM - all latest rev ! #558

Open neilcw303 opened 2 years ago

neilcw303 commented 2 years ago

Describe the bug When I try to connect from the UK I get the blue spinning wheel that after a few mins times out . with 'Unknown Error' I have tried all sorts of things - even now whitelisting from the tuya side my IP address .

It has in the past intermittently connected to tuya - but rarely and with a very poor performance

Expected behavior connect and show the devices

Screenshots If applicable, add screenshots to help explain your problem.

Home Assistant Version

System Health

version core-2021.10.2
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.9.7
os_name Linux
os_version 5.10.62
arch x86_64
timezone Europe/London
Home Assistant Community Store GitHub API | ok -- | -- Github API Calls Remaining | 4888 Installed Version | 1.15.2 Stage | running Available Repositories | 939 Installed Repositories | 17
Home Assistant Cloud logged_in | true -- | -- subscription_expiration | 12 October 2021, 01:00 relayer_connected | true remote_enabled | true remote_connected | true alexa_enabled | false google_enabled | true remote_server | eu-west-2-1.ui.nabu.casa can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | ok
Home Assistant Supervisor host_os | Home Assistant OS 6.4 -- | -- update_channel | stable supervisor_version | supervisor-2021.10.0 docker_version | 20.10.7 disk_total | 62.3 GB disk_used | 5.1 GB healthy | true supported | true board | ova supervisor_api | ok version_api | ok installed_addons | AirCast (2.4.1), File editor (5.3.3), Terminal & SSH (8.10.0), Log Viewer (0.9.1), Node-RED (10.0.1), Google Assistant SDK (2.5.0), Visual Studio Code (2.9.1), motionEye (0.10.2), CEC Scanner (2.4), Mosquitto broker (6.0.1), Samba share (9.5.1), Home Panel (2.3.0)
Lovelace dashboards | 5 -- | -- resources | 6 views | 14 mode | storage

image

Device info (please complete the following information, which can be found in log): like this:

Device specifications (please complete the following information, which can be found in log): 2021-10-11 08:27:54 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration meross_lan which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2021-10-11 08:27:54 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration auto_backup which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2021-10-11 08:27:54 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration govee which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2021-10-11 08:27:54 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration saver which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2021-10-11 08:27:54 WARNING (SyncWorker_3) [homeassistant.loader] We found a custom integration var which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2021-10-11 08:27:54 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration scheduler which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2021-10-11 08:27:54 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration media_player_template which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2021-10-11 08:27:54 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2021-10-11 08:27:54 WARNING (SyncWorker_3) [homeassistant.loader] We found a custom integration nodered which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2021-10-11 08:27:54 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration reversotts which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2021-10-11 08:27:54 WARNING (MainThread) [homeassistant.core] Invalid internal_url set. It's not allowed to have a path Same device's id, like this: [2021-07-01 10:18:01,351] [tuya-openapi] Request: method = GET, url = https://openapi.tuyacn.com/v1.0/devices/aaaaaaaaaaa/specifications, params = None, body = None, headers = {'client_id': 'xxxxxxxxxxxx', 'sign': 'xxxxxxxxxxxx', 'sign_method': 'HMAC-SHA256', 'access_token': 'xxxxxxxxxxxxxxxx', 't': '1625105881351', 'lang': 'en'}

Additional context I had the exact same issue with all versions of Tuya integration so suspect it is an issue at my end and probably not specific to the new V2 version . could it be a clash with another customer integration . could it be a password issue - using special characters - I use a $

Why would it work on the very odd occasion and then not ?

martin3000 commented 2 years ago

do you see all devices at https://iot.tuya.com/cloud/basic?toptab=project