joeyhage / homebridge-alexa-smarthome

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

Invalid list of alexa devices #73

Closed NotifiedGaming closed 8 months ago

NotifiedGaming commented 10 months ago

Describe Your Problem: After setup, in the logs I get an error.

I want the devices to be imported into the plugin on start.

Logs:

[23/11/2023, 19:43:12] [Homebridge UI] Homebridge restart request received
[23/11/2023, 19:43:12] [Homebridge UI] UI / Bridge settings have not changed; only restarting Homebridge process
[23/11/2023, 19:43:12] [Homebridge UI] Sending SIGTERM to Homebridge
[23/11/2023, 19:43:12] Got SIGTERM, shutting down Homebridge...
[23/11/2023, 19:43:17] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null
[23/11/2023, 19:43:22] [HB Supervisor] Restarting Homebridge...
[23/11/2023, 19:43:22] [HB Supervisor] Starting Homebridge with extra flags: -I -P /var/lib/homebridge/node_modules --strict-plugin-resolution
[23/11/2023, 19:43:22] [HB Supervisor] Started Homebridge v1.7.0 with PID: 47437
[23/11/2023, 19:43:22] Loaded config.json with 0 accessories and 2 platforms.
[23/11/2023, 19:43:22] Loaded 0 cached accessories from cachedAccessories.
[23/11/2023, 19:43:22] ---
[23/11/2023, 19:43:23] Loaded plugin: homebridge-alexa-smarthome@2.0.1
[23/11/2023, 19:43:23] Registering platform 'homebridge-alexa-smarthome.HomebridgeAlexaSmartHome'
[23/11/2023, 19:43:23] ---
[23/11/2023, 19:43:23] Loading 2 platforms...
[23/11/2023, 19:43:23] [HomebridgeAlexaSmartHome] Initializing HomebridgeAlexaSmartHome platform...
Setup Payload:
X-HM://0024NYXOUZSKR
Enter this code with your HomeKit app on your iOS device to pair with Homebridge:

    ┌────────────┐     
    │ 722-**-*** │     
    └────────────┘     

[23/11/2023, 19:43:23] Homebridge v1.7.0 (HAP v0.11.1) (Homebridge 3EA9) is running on port 51967.
[23/11/2023, 19:43:33] [HomebridgeAlexaSmartHome] After initialization - InvalidResponse(Invalid list of Alexa devices found for the current Alexa account: {
  "success": true
})

Plugin Config:

"devices": [
        "Bed Light"
    ],
    "auth": {
        "refreshInterval": 4,
        "proxy": {
            "clientHost": "192.168.*.***",
            "port": 9000
        }
    },
    "amazonDomain": "amazon.co.uk",
    "language": "en-US",
    "performance": {
        "cacheTTL": 30,
        "backgroundRefresh": false
    },
    "debug": false,
    "platform": "HomebridgeAlexaSmartHome"
}

Homebridge Config:

{
    "bridge": {
        "name": "Homebridge 3EA9",
        "username": "",
        "port": 51967,
        "pin": "722-",
        "advertiser": "avahi"
    },
    "accessories": [],
    "platforms": [
        {
            "name": "Config",
            "port": 8581,
            "platform": "config"
        },
        {
            "devices": [
                "Bed Light"
            ],
            "auth": {
                "refreshInterval": 4,
                "proxy": {
                    "clientHost": "192.168.",
                    "port": 9000
                }
            },
            "amazonDomain": "amazon.co.uk",
            "language": "en-US",
            "performance": {
                "cacheTTL": 30,
                "backgroundRefresh": false
            },
            "debug": false,
            "platform": "HomebridgeAlexaSmartHome"
        }
    ]
}

Screenshots:

Environment:

joeyhage commented 10 months ago

Is it possible that “Bed Light” does not match what is in Alexa? Uppercase/lowercase matters. Also, there have been reported instances where the device name is changed and Alexa still has an old name so users have had to put the old name in the plugin settings.

You can try removing Bed Light and leaving the device list empty in the Homebridge plugin settings, enabling debug mode, and see what the plugin finds. It will be printed in the Homebridge logs.

joeyhage commented 8 months ago

Closing due to no response.