milo526 / homebridge-tuya-web

Hoobs and Homebridge plugin for Tuya devices using Home Assistant Tuya Web Api
MIT License
217 stars 93 forks source link

connect EHOSTUNREACH #598

Open mrwhiteman opened 3 months ago

mrwhiteman commented 3 months ago

I get this error message in the plugin log: [3/28/2024, 5:18:32 PM] [TuyaWebPlatform] connect EHOSTUNREACH 3.127.225.168:443

It doesn't seem to log in with my credentials. They're 100% correct, though.

Plugin version: v1.1.5

JSON:

{
    "name": "TuyaWebPlatform",
    "options": {
        "username": "xxx",
        "password": "xxx",
        "countryCode": "xx",
        "platform": "smart_life"
    },
    "defaults": [
        {
            "device_type": "form"
        }
    ],
    "scenes": false,
    "platform": "TuyaWebPlatform"
}

Device Config:

Getting credentials
Got credentials
{   'access_token': 'xxx',
    'expires_in': 864000,
    'refresh_token': 'xxx',
    'token_type': 'bearer'}
Getting devices
Got devices
{   'header': {'code': 'SUCCESS', 'payloadVersion': 1},
    'payload': {   'devices': [   {   'data': {'online': False, 'state': False},
                                      'dev_type': 'switch',
                                      'ha_type': 'switch',
                                      'icon': 'https://images.tuyaeu.com/smart/icon/ay15422864509092y6k8/1622259081104c41dc2b7.png',
                                      'id': 'bf79bb94ba4f259a46tuob',
                                      'name': 'WiFi Plug - Living Room'},
                                  {   'data': {'online': False, 'state': True},
                                      'dev_type': 'switch',
                                      'ha_type': 'switch',
                                      'icon': 'https://images.tuyaeu.com/smart/icon/001460162698766TR4v1/1571295242db8f709b6dc.png',
                                      'id': 'bf3cf8647a6ec9f964lata',
                                      'name': 'WiFi Plug - Garden'},
                                  {   'data': {'online': True, 'state': False},
                                      'dev_type': 'switch',
                                      'ha_type': 'switch',
                                      'icon': 'https://images.tuyaeu.com/smart/icon/ay15422864509092y6k8/1622259081104c41dc2b7.png',
                                      'id': 'bf969f4527982679ceujol',
                                      'name': 'WiFi Plug - Office'}],
                   'scenes': []}}
!!! NOW REMOVE THIS FILE, SO YOUR CREDENTIALS (username, password) WON'T LEAK !!!
milo526 commented 3 months ago

Hey; can you tell me if this keeps happening? It seems like Tuya switched some server IP address

mrwhiteman commented 3 months ago

Yeah still the same error. But different ip address. Looks like the ip changes every time the service starts.

[3/30/2024, 4:09:03 PM] [TuyaWebPlatform] connect EHOSTUNREACH 18.156.68.22:443

github-actions[bot] commented 2 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

mrwhiteman commented 2 months ago

It's still not fixed