joeyhage / homebridge-alexa-smarthome

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

Alexa devices aren't being added to Homebridge #80

Closed kylejg1 closed 9 months ago

kylejg1 commented 9 months ago

I am getting the error "After initialization - HttpError(Error getting smart home device state. Reason: Timeout)" and none of the alexa devices are being added to homebridge.

I thought it was a cookie issue and so I did this: Instructions:

  1. Open your homebridge server configuration site in your browser
  2. Open the terminal (Three dots next to power button
  3. Execute the following command: rm persist/.homebridge-alexa-smarthome
  4. Restart homebridge.

I was able to get the "Amazon Alexa Cookie successfully retrieved. You can close the browser.

However I did not see the homebridge log show the "[HomebridgeAlexaSmartHome] Successfully authenticated Alexa account" message.

Logs:

[12/13/2023, 6:16:42 PM] [HomebridgeAlexaSmartHome] 0 devices provided in settings but 50 matching Alexa smart home devices were discovered. [12/13/2023, 6:16:57 PM] [HomebridgeAlexaSmartHome] After initialization - HttpError(Error getting smart home device state. Reason: Timeout)

Plugin Config:

"amazonDomain": "amazon.com", "language": "en-US", "performance": { "cacheTTL": 30, "backgroundRefresh": false }, "debug": false, "platform": "HomebridgeAlexaSmartHome"

Screenshots:

Environment:

Windows 10

kylejg1 commented 9 months ago

since the error was 0 devices provided in settings but 50 matching Alexa smart home devices were discovered, I decided to try to add them one by one in the settings of the plugin. Most of these 50 Alexa devices are homekit compatible, I only have 6 or 7 that are Alexa only that I need homebridge to add them to homekit. Adding them by device name through the settings on the plugin worked for what I needed. It was just odd that this was working a few weeks ago, and then I couldn't get it to work.