joeyhage / homebridge-alexa-smarthome

Connect Alexa devices to HomeKit
MIT License
81 stars 20 forks source link

Token Renew failure #117

Closed tradeverik closed 1 month ago

tradeverik commented 7 months ago

Describe The Bug:

When i open the URL to renew the token on the server or another computer i get the error: Proxy-Error: Error: getaddrinfo ENOTFOUND www.amazon.com

To Reproduce:

Expected behavior:

Logs:

Show the Homebridge logs here, remove any sensitive information.

Plugin Config:

{
    "bridge": {
        "name": "Homebridge E7CE",
        "username": "xxx",
        "port": 51859,
        "pin": "xxx",
        "advertiser": "avahi"
    },
    "accessories": [
        {
            "name": "Nono",
            "ip": "xxx",
            "token": "xxx",
            "serviceType": "switch",
            "waterBox": false,
            "dustBin": false,
            "dustCollection": false,
            "disableCareServices": false,
            "silent": false,
            "pause": false,
            "pauseWord": "pause",
            "findMe": false,
            "findMeWord": "where are you",
            "goTo": false,
            "goToWord": "go to coordinates",
            "goToX": 25500,
            "goToY": 25500,
            "dock": false,
            "cleanword": "cleaning",
            "roomTimeout": 0,
            "autoroom": false,
            "accessory": "XiaomiRoborockVacuum"
        }
    ],
    "platforms": [
        {
            "name": "Config",
            "port": 8581,
            "platform": "config"
        },
        {
            "name": "deCONZ",
            "platform": "deCONZ"
        },
        {
            "name": "Hue",
            "anyOn": true,
            "effects": true,
            "lights": true,
            "nativeHomeKitLights": true,
            "nativeHomeKitSensors": true,
            "resource": true,
            "sensors": true,
            "users": {
                "xxx": "xxx"
            },
            "platform": "Hue"
        },
        {
            "addresses": [

            ],
            "name": "Tapo Smart Platform",
            "email": "xxx",
            "password": "xxx",
            "platform": "HomebridgeTPLinkTapo"
        },
        {
            "name": "Alexa",
            "username": "xxx",
            "password": "xxx",
            "pin": "xxx",
            "routines": false,
            "blind": false,
            "door": false,
            "debug": false,
            "deviceListHandling": "allow",
            "platform": "Alexa"
        },
        {
            "name": "Govee",
            "username": "xxx",
            "password": "xxx",
            "switchDevices": [
                {
                    "label": "TV Bars",
                    "deviceId": "xxx"
                }
            ],
            "platform": "Govee"
        },
        {
            "refreshToken": "xxx",
            "platform": "Ring"
        },
        {
            "devices": [
                "Luft Quality Wohnzimmer"
            ],
            "excludeDevices": [],
            "auth": {
                "refreshInterval": 4,
                "proxy": {
                    "clientHost": "192.168.2.197",
                    "port": 8999
                }
            },
            "amazonDomain": "amazon.de",
            "language": "de-DE",
            "performance": {
                "cacheTTL": 300,
                "backgroundRefresh": true
            },
            "debug": false,
            "_bridge": {
                "username": "xxx",
                "port": 38876
            },
            "platform": "HomebridgeAlexaSmartHome"
        },
        {
            "name": "Tuya",
            "options": {
                "projectType": "2",
                "endpoint": "https://openapi.tuyaeu.com",
                "accessId": "xxx",
                "accessKey": "xxx",
                "countryCode": 49,
                "username": "xxx",
                "password": "xxx",
                "appSchema": "tuyaSmart",
                "deviceOverrides": [
                    {
                        "id": "xxx",
                        "schema": [
                            {
                                "code": "25"
                            }
                        ]
                    }
                ],
                "debug": false
            },
            "_bridge": {
                "username": "xxx",
                "port": 31459
            },
            "platform": "TuyaPlatform"
        }
    ],
    "disabledPlugins": [
        "homebridge-tp-link-tapo",
        "homebridge-alexa"
    ]
}.

Screenshots:

Environment:

joeyhage commented 7 months ago

Without seeing your plugin config, I am unable to help you

tradeverik commented 7 months ago

I updated it

joeyhage commented 7 months ago

So when you open the url on another computer, you go to: http://192.168.2.197:8999. Is that correct? Based on the proxy settings you have that’s what it would be.

Also, to confirm, when you go to the homebridge UI on a computer, do you go to: http://192.168.2.197:8581?

tradeverik commented 7 months ago

Yes, 8581 works, but 8999 i get the error: Proxy-Error: Error: getaddrinfo ENOTFOUND www.amazon.com

joeyhage commented 7 months ago

For some reason your device cannot access amazon.com. That is a requirement to use this plugin. You will need to do some investigating in your homebridge server to make sure DNS is configured properly.

Please confirm if your homebridge server can curl amazon.com using the terminal.

joeyhage commented 1 month ago

Closing due to no response.