joeyhage / homebridge-alexa-smarthome

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

Unable to see any accessories from Alexa in Homebridge #63

Closed dsarlo closed 5 months ago

dsarlo commented 8 months ago

Describe Your Problem: After setting up a brand new homebridge instance, I added this plugin and this plugin alone. Configured it as described in the readme. Correctly authenticated with amazon, and I see the plugin pulling device data. However, I do see rate limits being hit potentially? I have looked at the common issues section and none of the solutions apply to my situation. None of the accessories in Alexa are being added as accessories in Homebridge. I did test a dummy plugin to make sure devices would show up in homebridge and they do so it isn't an issue with my installation.

Logs:

[10/19/2023, 11:42:39 PM] [HomebridgeAlexaSmartHome] Alexa-Remote: cookie was provided                   
[10/19/2023, 11:42:40 PM] [HomebridgeAlexaSmartHome] Alexa-Remote: Authentication checked: true
[10/19/2023, 11:42:40 PM] [HomebridgeAlexaSmartHome] Alexa-Remote: Change Base URL for API calls to na-api-alexa.amazon.com
[10/19/2023, 11:42:51 PM] [HomebridgeAlexaSmartHome] Successfully authenticated Alexa account.
[10/19/2023, 11:42:52 PM] [HomebridgeAlexaSmartHome] Found 2 devices connected to the current Alexa account.
[10/19/2023, 11:42:52 PM] [HomebridgeAlexaSmartHome] BEGIN devices connected to Alexa account
 [
  {
    "displayName": "Living Room TV",
    "deviceType": "TV"
  },
  {
    "displayName": "Bedroom Lamp",
    "deviceType": "SMARTPLUG"
  }
]

END devices connected to Alexa account
[10/19/2023, 11:42:52 PM] [HomebridgeAlexaSmartHome] Found all 2 devices in plugin settings.
[10/19/2023, 11:42:52 PM] [HomebridgeAlexaSmartHome] Updating device states
[10/19/2023, 11:42:52 PM] [HomebridgeAlexaSmartHome] Alexa-Remote: rate exceeded response ... Retrying once in 49501ms
[10/19/2023, 11:42:52 PM] [HomebridgeAlexaSmartHome] Alexa-Remote: rate exceeded response ... Retrying once in 49084ms
[10/19/2023, 11:43:36 PM] [Homebridge UI] Changes to config.json saved.
[10/19/2023, 11:43:41 PM] [HomebridgeAlexaSmartHome] After initialization - RequestUnsuccessful(Error getting smart home device state(s). Response: {
  "message": "Too many requests. Try again in some time."
})
[10/19/2023, 11:44:41 PM] [HomebridgeAlexaSmartHome] Updating device states
[10/19/2023, 11:44:41 PM] [HomebridgeAlexaSmartHome] Alexa-Remote: rate exceeded response ... Retrying once in 39127ms
[10/19/2023, 11:46:21 PM] [HomebridgeAlexaSmartHome] Updating device states
[10/19/2023, 11:46:21 PM] [HomebridgeAlexaSmartHome] Alexa-Remote: rate exceeded response ... Retrying once in 56473ms

Plugin Config:

{
    "bridge": {
        "name": "Homebridge"
    },
    "accessories": [
        {
            "name": "Test Button",
            "stateful": true,
            "dimmer": false,
            "reverse": false,
            "time": 1000,
            "random": false,
            "resettable": false,
            "brightness": 0,
            "disableLogging": false,
            "accessory": "DummySwitch"
        }
    ],
    "platforms": [
        {
            "name": "Config",
            "port": 8581,
            "platform": "config"
        },
        {
            "devices": [
                "Side Lamp"
            ],
            "auth": {
                "refreshInterval": 4,
                "proxy": {
                    "clientHost": "hello.hello",
                    "port": 9000
                }
            },
            "amazonDomain": "amazon.com",
            "language": "en-US",
            "performance": {
                "cacheTTL": 30,
                "backgroundRefresh": true
            },
            "debug": true,
            "platform": "HomebridgeAlexaSmartHome"
        }
    ]
}

Screenshots:

image

Environment:

philm commented 8 months ago

Confirming the same issue for an existing system (~40 smart devices) that was running fine until sometime within the last 24 hours started to see the "Too many requests" error.

Plugin version: v2.0.1 HomeBridge: v1.6.1 OS: MacOS Sonoma 14.0 Node: v20.8.1

jhmurphy commented 8 months ago

I am also getting the same issue. Just set up homebridge yesterday on my pi and the plugin was only working briefly until this error occurred.

Plugin version: 2.0.1 Homebridge: 1.6.1 OS: Raspbian GNU/Linux Bullseye (11) Node: 18.16.0

flemton commented 8 months ago

Same issue and this is my first time setting up Homebridge

Plugin version: 2.0.1 Homebridge: 1.6.1 OS: MacOS Sonoma 14.0 CPU: Apple Silicon M2 Node: 18.16.1 NPM: 9.5.1

ab16 commented 8 months ago

Seeing same issue as well.

OS | Raspbian GNU/Linux Bullseye (11) OS: MacOS Sonoma 14.0 v18.16.0

joeyhage commented 8 months ago

Thanks all for the reports. A number of others have reported this issue as well. Amazon has changed something on their end and I plan to investigate more as soon as I can.

there is no workaround at this time so if the error messages are annoying, my recommendation would be to disable the plugin, not uninstall. Uninstalling will remove any devices you have connected to HomeKit and would break any related automations.

Since this is a project I maintain in my free time as a hobby and not a job, please be patient and understand it could take a week or two for a resolution. I will post updates when I can.

Locking this thread for now since it is a known issue.

joeyhage commented 5 months ago

This seems to have resolved itself awhile back so I'm closing this issue.