joeyhage / homebridge-alexa-smarthome

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

Plugin configuration/initialization errors on HOOBS 4 #44

Closed jourdannorman closed 11 months ago

jourdannorman commented 1 year ago

Describe Your Problem: I'm experiencing configuration errors when I try to set up this plugin on HOOBS. Everything appeared fine - I was able to authenticate w/ Amazon in the browser and successfully retrieve the cookie, however the HOOBS log indicated the failure to initialize and invalid cookie (renew unsuccessful).

Logs:

9/27/2023, 10:09:51 PMAlexa Smarthome BridgeLoaded plugin 'homebridge-alexa-smarthome'
9/27/2023, 10:09:51 PMAlexa Smarthome BridgeLoading 1 platforms...
9/27/2023, 10:09:51 PMAlexa Smarthome BridgeHomebridgeAlexaSmartHomeLogin required because existing authentication not found
9/27/2023, 10:09:53 PMAlexa Smarthome BridgeBridge is running on port XXXXXXX.
9/27/2023, 10:09:53 PMAlexa Smarthome BridgeHomebridgeAlexaSmartHomeERRORFailed to initialize connection to Alexa. - You can try to get the cookie manually by opening http://XXXXXXX/ with your browser.
9/27/2023, 10:09:53 PMAlexa Smarthome BridgeHomebridgeAlexaSmartHomeERRORAfter initialization - HttpError(Error getting smart home devices. Reason: Cookie invalid, Renew unsuccessful)

Plugin Config:

{
    "platform": "HomebridgeAlexaSmartHome",
    "auth": {
        "refreshInterval": 4,
        "proxy": {
            "clientHost": "XXX.XXX.XX.XX",
            "port": XXXX
        }
    },
    "language": "en-US",
    "debug": true
}

Screenshots:

image

Environment:

joeyhage commented 1 year ago

It seems like HOOBS is not saving the cookie to the device like Homebridge does. I have not used HOOBS nor am I aware if this plugin is compatible

domgroleau commented 1 year ago

I’m having this exact issues, but on raspberry Pi platform. Please help.

joeyhage commented 1 year ago

@jourdannorman can you share what the logs show after you login successfully? The last two lines in your screenshot are normal and happen before you login the first time.

joeyhage commented 11 months ago

Closing due to inactivity