homebridge-alexa-smarthome icon indicating copy to clipboard operation
homebridge-alexa-smarthome copied to clipboard

After Initialization - Httperror

Open msavage6 opened this issue 1 year ago • 16 comments

I was able to successfully install the plugin and authenticate with Amazon, or so I thought. I am able to dictate which devices I want to add as accessories and when turning on debug logs as you can see, Homebridge notes all 8 devices are matched, however that is followed by the error: After initialization - HttpError(Error getting smart home device state. Reason: Timeout)

As a result, I can add the child bridge in HomeKit, but no accessories are available to add afterwards.

In the below debug logs I have removed the full listing of Alexa devices detected as there are 92, to reduce clutter,.

Logs:

10/10/2023, 7:37:30 PM] Homebridge v1.6.1 (HAP v0.11.1) (Homebridge 52BC) is running on port 51707.
[10/10/2023, 7:37:31 PM] [homebridge-alexa-smarthome] Launched child bridge with PID 2426
[10/10/2023, 7:37:31 PM] Registering platform 'homebridge-alexa-smarthome.HomebridgeAlexaSmartHome'
[10/10/2023, 7:37:31 PM] [homebridge-alexa-smarthome] Loaded homebridge-alexa-smarthome v2.0.0 child bridge successfully
[10/10/2023, 7:37:31 PM] Loaded 0 cached accessories from cachedAccessories.0EBE82D05A80.
[10/10/2023, 7:37:31 PM] [homebridge-alexa-smarthome] Alexa-Remote: cookie was provided
[10/10/2023, 7:37:31 PM] Homebridge v1.6.1 (HAP v0.11.1) (homebridge-alexa-smarthome) is running on port 51061.
[10/10/2023, 7:37:31 PM] [homebridge-alexa-smarthome] Alexa-Remote: Authentication checked: true
[10/10/2023, 7:37:31 PM] [Ring] Found the following locations:
[10/10/2023, 7:37:31 PM] [Ring]   locationId: b8950aeb-650d-4abc-bc6a-f4e4c8281c7d - Waterloo
[10/10/2023, 7:37:31 PM] [homebridge-alexa-smarthome] Alexa-Remote: Change Base URL for API calls to na-api-alexa.amazon.ca
[10/10/2023, 7:37:31 PM] [Ring] Configuring 3 cameras and 3 devices for location "Waterloo" - locationId: b8950aeb-650d-4abc-bc6a-f4e4c8281c7d
[10/10/2023, 7:37:31 PM] [Ring] Configured camera 58e16552-36da-40d3-9912-f39e54678fab lpd_v4 Front Door
[10/10/2023, 7:37:31 PM] [Ring] Configured camera 34643de9-5817-4985-ba47-bca1786cdfe7 cocoa_camera Driveway
[10/10/2023, 7:37:31 PM] [Ring] Configured camera 2ea0196e-a8d1-4744-bf17-c6a01e58e40f cocoa_camera Backyard
[10/10/2023, 7:37:31 PM] Front Door 02DF is running on port 51956.
[10/10/2023, 7:37:31 PM] Please add [Front Door 02DF] manually in Home app. Setup Code: 173-42-594
[10/10/2023, 7:37:31 PM] Driveway 12B8 is running on port 51957.
[10/10/2023, 7:37:31 PM] Please add [Driveway 12B8] manually in Home app. Setup Code: 173-42-594
[10/10/2023, 7:37:31 PM] Backyard 7419 is running on port 51958.
[10/10/2023, 7:37:31 PM] Please add [Backyard 7419] manually in Home app. Setup Code: 173-42-594
[10/10/2023, 7:37:32 PM] [myQ] myQ API: Switched to myQ cloud region: east.
[10/10/2023, 7:37:32 PM] [myQ] myQ API: Successfully connected to the myQ API using the east myQ cloud region.
[10/10/2023, 7:37:32 PM] [myQ] myQ API: Discovered device family garagedoor: Garage Door [Liftmaster WiFi GDO DC w/Battery Backup] (serial number: CG08602A3C79, gateway: GW0E000FAC74).
[10/10/2023, 7:37:32 PM] [myQ] myQ API: Discovered device family gateway: Garage Door (serial number: GW0E000FAC74).
[10/10/2023, 7:37:32 PM] [homebridge-alexa-smarthome] Successfully authenticated Alexa account.
[10/10/2023, 7:37:34 PM] [homebridge-alexa-smarthome] Found 92 devices connected to the current Alexa account.
[10/10/2023, 7:37:34 PM] [homebridge-alexa-smarthome] BEGIN devices connected to Alexa account

END devices connected to Alexa account
[10/10/2023, 7:37:34 PM] [homebridge-alexa-smarthome] Found all 8 devices in plugin settings.
[10/10/2023, 7:37:34 PM] [homebridge-alexa-smarthome] Updating device states
[10/10/2023, 7:37:49 PM] [homebridge-alexa-smarthome] After initialization - HttpError(Error getting smart home device state. Reason: Timeout)
[10/10/2023, 7:40:39 PM] [homebridge-alexa-smarthome] Updating device states
[10/10/2023, 7:43:29 PM] [homebridge-alexa-smarthome] Updating device states

Plugin Config:

{
    "bridge": {
        "name": "Homebridge 52BC",
        "username": "0E:38:31:A8:52:BC",
        "port": 51707,
        "pin": "173-42-594",
        "advertiser": "ciao",
        "bind": [
            "en0"
        ]
    },
    "accessories": [],
    "platforms": [
        {
            "name": "Config",
            "port": 3123,
            "auth": "form",
            "theme": "dark-mode-blue-grey",
            "tempUnits": "c",
            "lang": "auto",
            "platform": "config"
        },
        {
            "refreshToken": "----",
            "unbridgeCameras": true,
            "platform": "Ring"
        },
        {
            "email": "[email protected]",
            "password": "----",
            "name": "myQ",
            "platform": "myQ"
        },
        {
            "devices": [
                "Bedroom Speaker",
                "End Table Speaker",
                "Kitchen Display",
                "Living Room Display",
                "Office Display",
                "Backyard Plug 1",
                "Backyard Plug 2",
                "Bathroom Speaker"
            ],
            "auth": {
                "refreshInterval": 4,
                "proxy": {
                    "clientHost": "192.168.4.105",
                    "port": 9000
                }
            },
            "amazonDomain": "amazon.ca",
            "language": "en-CA",
            "performance": {
                "cacheTTL": 200,
                "backgroundRefresh": true
            },
            "debug": false,
            "_bridge": {
                "username": "0E:BE:82:D0:5A:80",
                "port": 51061
            },
            "platform": "HomebridgeAlexaSmartHome"
        }
    ]
}

Screenshots:

Environment:

  • Plugin Version: v2.0.0
  • Homebridge Version: v1.6.1
  • Node.js Version: v18.15.0
  • NPM Version: v9.6.4
  • Operating System: MacOS Ventura

msavage6 avatar Oct 11 '23 00:10 msavage6