Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to see any accessories from Alexa in Homebridge #63

Closed
dsarlo opened this issue Oct 20, 2023 · 6 comments
Closed

Unable to see any accessories from Alexa in Homebridge #63

dsarlo opened this issue Oct 20, 2023 · 6 comments
Assignees
Labels
question Further information is requested

Comments

@dsarlo
Copy link
Contributor

dsarlo commented Oct 20, 2023

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:

  • Plugin Version: latest
  • Homebridge Version: latest
  • Node.js Version: 20.8.1
  • NPM Version: 10.1.0
  • Operating System: macOS
@dsarlo dsarlo added the question Further information is requested label Oct 20, 2023
@philm
Copy link

philm commented Oct 20, 2023

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
Copy link

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
Copy link

flemton commented Oct 21, 2023

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
Copy link

ab16 commented Oct 21, 2023

Seeing same issue as well.

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

@joeyhage
Copy link
Owner

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 joeyhage pinned this issue Oct 21, 2023
Repository owner locked and limited conversation to collaborators Oct 21, 2023
@joeyhage
Copy link
Owner

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

@joeyhage joeyhage unpinned this issue Jan 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

6 participants