joeyhage / homebridge-alexa-smarthome

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

Issue with HomeBridge.local:9000 #105

Closed davewehr closed 1 month ago

davewehr commented 8 months ago

Describe Your Problem:

when I go to homebridge.local:9000 I land on an Alexa page but then when I click the link it takes me to the App Store listing for the Alexa app. It’s already installed so I click the open button; the app opens but without any context of what I was trying to do. I do have my Amazon account set up with google authenticator .

Logs:

It’s just the standard logs you see during initial setup. 

Plugin Config:

Attached 

Screenshots:

Environment:

joeyhage commented 7 months ago

@davewehr can you try a different browser or, better yet, use a computer to visit homebridge.local:9000? Let me know if using a computer helps.

joeyhage commented 7 months ago

Accidentally closed - apologies

joeyhage commented 7 months ago

If that doesn’t work, the next option is listed here under the section called Alexa login errors or Failed to initialize connection to Alexa. Please try the step using an incognito window with JavaScript disabled.

joeyhage commented 7 months ago

One more thought, you have Homebridge.local with a capital H as the client host. I have seen issues where this needs to exactly match the url and capital letters can cause issues.

davewehr commented 7 months ago

I did try using both my iPad and my MacBook.

I do see that you made another suggestion in a subsequent email, so I’ll try that and respond to that message with the outcome.

Thanks!

On Feb 7, 2024, at 9:14 AM, Joey Hage @.***> wrote:

@davewehr https://github.com/davewehr can you try a different browser or, better yet, use a computer to visit homebridge.local:9000? Let me know if using a computer helps.

davewehr commented 7 months ago

I used Chrome Incognito mode and made sure Javascript was disabled. When I went to home bridge.local:7000 (that’s the current proxy setting on the plugin) it says

“You need to enable JavaScrib to run this app.”

Also as you can see in the screenshot, I have tried using a lowercase “h” after confirming that’s what appears in my address bar when I am on the home bridge web UI.

Please advise, and thank you in advance for your help.

On Feb 7, 2024, at 9:18 AM, Joey Hage @.***> wrote:

If that doesn’t work, the next option is listed here https://github.com/joeyhage/homebridge-alexa-smarthome?tab=readme-ov-file#common-issues under the section called Alexa login errors or Failed to initialize connection to Alexa. Please try the step using an incognito window with JavaScript disabled.

gtalusan commented 7 months ago

FYI make sure homebridge.local is resolvable by a DNS lookup. Otherwise use the IP in both the plugin configuration AND in your browser.

davewehr commented 7 months ago

Thank you for your help, I was able to get it to authenticate using the IP addresses instead of the hostname.

Now I have a new problem, where it finds the devices and they all show up on the accessories tab, but I am not able to turn things on or off.

I confirmed that I am able to control the devices in the Alexa app.

Any ideas on where to start troubleshooting this new problem?

On Feb 11, 2024, at 12:20 PM, George Talusan @.***> wrote:

FYI make sure homebridge.local is resolvable by a DNS lookup. Otherwise use the IP in both the plugin configuration AND in your browser.

— Reply to this email directly, view it on GitHub https://github.com/joeyhage/homebridge-alexa-smarthome/issues/105#issuecomment-1937814534, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO5VAKWKLHGZFIDLUYO2YFLYTD4XVAVCNFSM6AAAAABCJ5B2CKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZXHAYTINJTGQ. You are receiving this because you were mentioned.

tradeverik commented 7 months ago

Everything worked fine, but after a restart the cookie renew doesnt work anymore. I get the error Proxy-Error: Error: getaddrinfo ENOTFOUND www.amazon.com

davewehr commented 7 months ago

I’m not sure how to interpret that as a next step for resolving my problem. Please advise.

On Feb 14, 2024, at 1:59 PM, tradeverik @.***> wrote:

Everything worked fine, but after a restart the cookie renew doesnt work anymore. I get the error Proxy-Error: Error: getaddrinfo ENOTFOUND www.amazon.com http://www.amazon.com/ — Reply to this email directly, view it on GitHub https://github.com/joeyhage/homebridge-alexa-smarthome/issues/105#issuecomment-1944419109, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO5VAKSCQNW2LX7BLDKK36DYTUCR7AVCNFSM6AAAAABCJ5B2CKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBUGQYTSMJQHE. You are receiving this because you were mentioned.

joeyhage commented 7 months ago

Everything worked fine, but after a restart the cookie renew doesnt work anymore. I get the error Proxy-Error: Error: getaddrinfo ENOTFOUND www.amazon.com

That error means your homebridge server cannot connect to Amazon.com. You need to troubleshoot your internet access or DNS settings.

joeyhage commented 7 months ago

I’m not sure how to interpret that as a next step for resolving my problem. Please advise. On Feb 14, 2024, at 1:59 PM, tradeverik @.***> wrote: Everything worked fine, but after a restart the cookie renew doesnt work anymore. I get the error Proxy-Error: Error: getaddrinfo ENOTFOUND www.amazon.com http://www.amazon.com/ — Reply to this email directly, view it on GitHub <#105 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO5VAKSCQNW2LX7BLDKK36DYTUCR7AVCNFSM6AAAAABCJ5B2CKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBUGQYTSMJQHE. You are receiving this because you were mentioned.

@davewehr could you please enable debug logging for the plugin in the plugin settings and restart homebridge? You should see more information and hopefully some error messages. That will help me pinpoint the issue.

davewehr commented 7 months ago

I got it to work, thank you for your help!

On Feb 15, 2024, at 1:20 PM, Joey Hage @.***> wrote:

I’m not sure how to interpret that as a next step for resolving my problem. Please advise. … <x-msg://4/#> On Feb 14, 2024, at 1:59 PM, tradeverik @.***> wrote: Everything worked fine, but after a restart the cookie renew doesnt work anymore. I get the error Proxy-Error: Error: getaddrinfo ENOTFOUND www.amazon.com http://www.amazon.com/ http://www.amazon.com/ — Reply to this email directly, view it on GitHub <#105 (comment) https://github.com/joeyhage/homebridge-alexa-smarthome/issues/105#issuecomment-1944419109>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO5VAKSCQNW2LX7BLDKK36DYTUCR7AVCNFSM6AAAAABCJ5B2CKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBUGQYTSMJQHE. You are receiving this because you were mentioned.

@davewehr https://github.com/davewehr could you please enable debug logging for the plugin in the plugin settings and restart homebridge? You should see more information and hopefully some error messages. That will help me pinpoint the issue.

— Reply to this email directly, view it on GitHub https://github.com/joeyhage/homebridge-alexa-smarthome/issues/105#issuecomment-1946850741, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO5VAKWFKMI3O3VZAFXW6OLYTZGVTAVCNFSM6AAAAABCJ5B2CKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBWHA2TANZUGE. You are receiving this because you were mentioned.

davewehr commented 7 months ago

I’m not sure if this is a plugin issue, but I have a set of 4 lamps that keep changing their brightness to 3%.

I can update the brightness in the Alexa app, and it’ll revert. I can update the brightness in Google Home app, and it’ll revert. I can update the brightness in Apple Home, and it’ll revert.

If I disable the plugin and adjust the brightness, it will NOT revert.

Any ideas?

On Feb 15, 2024, at 2:35 PM, Dave Wehr @.***> wrote:

I got it to work, thank you for your help!

On Feb 15, 2024, at 1:20 PM, Joey Hage @.***> wrote:

I’m not sure how to interpret that as a next step for resolving my problem. Please advise. … <x-msg://4/#> On Feb 14, 2024, at 1:59 PM, tradeverik @.***> wrote: Everything worked fine, but after a restart the cookie renew doesnt work anymore. I get the error Proxy-Error: Error: getaddrinfo ENOTFOUND www.amazon.com http://www.amazon.com/ http://www.amazon.com/ — Reply to this email directly, view it on GitHub <#105 (comment) https://github.com/joeyhage/homebridge-alexa-smarthome/issues/105#issuecomment-1944419109>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO5VAKSCQNW2LX7BLDKK36DYTUCR7AVCNFSM6AAAAABCJ5B2CKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBUGQYTSMJQHE. You are receiving this because you were mentioned.

@davewehr https://github.com/davewehr could you please enable debug logging for the plugin in the plugin settings and restart homebridge? You should see more information and hopefully some error messages. That will help me pinpoint the issue.

— Reply to this email directly, view it on GitHub https://github.com/joeyhage/homebridge-alexa-smarthome/issues/105#issuecomment-1946850741, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO5VAKWFKMI3O3VZAFXW6OLYTZGVTAVCNFSM6AAAAABCJ5B2CKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBWHA2TANZUGE. You are receiving this because you were mentioned.

joeyhage commented 1 month ago

This should be resolved as of v2.2.0