homebridge-alexa-smarthome
homebridge-alexa-smarthome copied to clipboard
Cookie not saved
Cookie is successfully created. Authentication successful, Browser: "Amazon Alexa Cookie successfully retrieved. You can close the browser." Then the birdge restarts, and after restart its again: "Failed to initialize connection to Alexa. - Please open http://192.168.....:8585/ with your browser and login to Amazon. The cookie will be output here after successfull login."
Logs:
18.6.2024, 12:46:45Alexa Bridge starting 18.6.2024, 12:46:54Alexa BridgeLoaded plugin 'homebridge-alexa-smarthome' 18.6.2024, 12:46:54Alexa BridgeLoading 2 platforms... 18.6.2024, 12:46:54Alexa BridgeHomebridgeAlexaSmartHomeLogin required because existing authentication not found 18.6.2024, 12:46:54Alexa BridgeHomebridgeAlexaSmartHomeAlexa-Remote: No cookie given, generate one 18.6.2024, 12:46:55Alexa BridgeHomebridgeAlexaSmartHomeAlexa-Remote: Error from retrieving cookies 18.6.2024, 12:46:55Alexa BridgeBridge is running on port 51846. 18.6.2024, 12:46:55Alexa BridgeHomebridgeAlexaSmartHomeFEHLERFailed to initialize connection to Alexa. - Please open http://192.168.xxx.xx:8585/ with your browser and login to Amazon. The cookie will be output here after successfull login. 18.6.2024, 12:46:55Alexa BridgeHomebridgeAlexaSmartHomeAlexa-Remote: Authentication check Error, try re-init 18.6.2024, 12:46:55Alexa BridgeHomebridgeAlexaSmartHomeAlexa-Remote: No cookie given, generate one 18.6.2024, 12:46:55Alexa BridgeHomebridgeAlexaSmartHomeAlexa-Remote: Error from retrieving cookies 18.6.2024, 12:46:55Alexa BridgeHomebridgeAlexaSmartHomeAlexa-Remote: Authentication check Error and renew unsuccessful. STOP 18.6.2024, 12:46:55Alexa BridgeHomebridgeAlexaSmartHomeFEHLERAfter initialization - HttpError(Error getting smart home devices. Reason: Cookie invalid, Renew unsuccessful) 18.6.2024, 12:47:08Alexa BridgeHomebridgeAlexaSmartHomeAlexa-Cookie: MODIFIED Response Body to rewrite URLs 18.6.2024, 12:47:15Alexa BridgeHomebridgeAlexaSmartHomeAlexa-Cookie: Handle token registration Start: {"loginCookie":"session-id=... 18.6.2024, 12:47:15Alexa BridgeHomebridgeAlexaSmartHomeAlexa-Cookie: Register App 18.6.2024, 12:47:16Alexa BridgeHomebridgeAlexaSmartHomeAlexa-Cookie: Response (200) 18.6.2024, 12:47:16Alexa BridgeHomebridgeAlexaSmartHomeAlexa-Cookie: Register App Response: {"response":{"success":{"extensions":{"device_info":{"device_name":"... Bridge","device_serial_number":"...","device_type":"..."},"customer_info":{"account_pool":"Amazon","user... 18.6.2024, 12:47:16Alexa BridgeHomebridgeAlexaSmartHomeAlexa-Cookie: Update Cookie x-main = "....?rlEATmafG" 18.6.2024, 12:47:16Alexa BridgeHomebridgeAlexaSmartHomeAlexa-Cookie: Update Cookie at-main = "Atza|....-QTTSXGB_uumY-RLiT....gmFlrBQKCJyK5gX7tkZ" 18.6.2024, 12:47:16Alexa BridgeHomebridgeAlexaSmartHomeAlexa-Cookie: Update Cookie sess-at-main = "..../7mVdnwaJcb6cMIBN4=" 18.6.2024, 12:47:16Alexa BridgeHomebridgeAlexaSmartHomeAlexa-Cookie: Register capabilities 18.6.2024, 12:47:16Alexa BridgeHomebridgeAlexaSmartHomeAlexa-Cookie: Response (204) 18.6.2024, 12:47:16Alexa BridgeHomebridgeAlexaSmartHomeAlexa-Cookie: Get User data 18.6.2024, 12:47:17Alexa BridgeHomebridgeAlexaSmartHomeAlexa-Cookie: Response (200) 18.6.2024, 12:47:17Alexa BridgeHomebridgeAlexaSmartHomeAlexa-Cookie: Get User data Response: {"countryOfResidence":"DE","effectiveMarketPlaceId":"....","email":"[email protected]","eulaAcceptance":true,"features":["ALEXA_HANDS_FREE_FEATURE_GATING_OCTO8_TMO","ALEXA_AUTO_ANDROID_STANDALONE_MODE_ENABLED","ALEX... 18.6.2024, 12:47:17Alexa BridgeHomebridgeAlexaSmartHomeAlexa-Cookie: Add Cookie csrf = 109139941 18.6.2024, 12:47:17Alexa BridgeHomebridgeAlexaSmartHomeAlexa-Cookie: Exchange tokens for amazon.de 18.6.2024, 12:47:17Alexa BridgeHomebridgeAlexaSmartHomeAlexa-Cookie: Response (200) 18.6.2024, 12:47:17Alexa BridgeHomebridgeAlexaSmartHomeAlexa-Cookie: Exchange Token Response: {"response":{"tokens":{"cookies":{".amazon.de":[{"Path":"/","Secure":true,"Value":"....-3738614-.....","Expires":"13 Jun 2044 10:47:17 GMT","HttpOnly":false,"Name":"session-id"},{"Path":"/","Secure":true,"Value":"257-6539020... 18.6.2024, 12:47:17Alexa BridgeHomebridgeAlexaSmartHomeAlexa-Cookie: Add Cookie session-id = 259-4230241-2085638 18.6.2024, 12:47:17Alexa BridgeHomebridgeAlexaSmartHomeAlexa-Cookie: Add Cookie session-id-time = 2349427637l 18.6.2024, 12:47:17Alexa BridgeHomebridgeAlexaSmartHomeAlexa-Cookie: Update Cookie session-id = 257-3738614-3153841 18.6.2024, 12:47:17Alexa BridgeHomebridgeAlexaSmartHomeAlexa-Cookie: Add Cookie ubid-acbde = 257-6539020-1256743 18.6.2024, 12:47:17Alexa BridgeHomebridgeAlexaSmartHomeAlexa-Cookie: Add Cookie x-acbde = "....@fSGA8fwMlmML" 18.6.2024, 12:47:17Alexa BridgeHomebridgeAlexaSmartHomeAlexa-Cookie: Add Cookie at-acbde = ".....ZUaYxL0Ep1f6V" 18.6.2024, 12:47:17Alexa BridgeHomebridgeAlexaSmartHomeAlexa-Cookie: Add Cookie sess-at-acbde = ".....=" 18.6.2024, 12:47:17Alexa BridgeHomebridgeAlexaSmartHomeAlexa-Cookie: Step 4: get CSRF via /api/language 18.6.2024, 12:47:17Alexa BridgeHomebridgeAlexaSmartHomeAlexa-Cookie: Response (200) 18.6.2024, 12:47:17Alexa BridgeHomebridgeAlexaSmartHomeAlexa-Cookie: Add Cookie csrf = 34310470 18.6.2024, 12:47:17Alexa BridgeHomebridgeAlexaSmartHomeAlexa-Cookie: Result: csrf=34310470, Cookie=session-id=...-....-....; session-id-time=2349427637l; ubid-acbde=257-6539020-1256743; x-acbde=....; sess-at-acbde=.....=; csrf=34310470 18.6.2024, 12:47:17Alexa BridgeHomebridgeAlexaSmartHomeAlexa login cookie updated. Storing cookie in file: /var/lib/hoobs/alexabridge/persist/.homebridge-alexa-smarthome 18.6.2024, 12:47:28Alexa Bridge starting 18.6.2024, 12:47:35Alexa BridgeLoaded plugin 'homebridge-alexa-smarthome' 18.6.2024, 12:47:35Alexa BridgeLoading 2 platforms... 18.6.2024, 12:47:36Alexa BridgeHomebridgeAlexaSmartHomeLogin required because existing authentication not found 18.6.2024, 12:47:36Alexa BridgeHomebridgeAlexaSmartHomeAlexa-Remote: No cookie given, generate one 18.6.2024, 12:47:37Alexa BridgeHomebridgeAlexaSmartHomeAlexa-Remote: Error from retrieving cookies 18.6.2024, 12:47:37Alexa BridgeBridge is running on port 51846. 18.6.2024, 12:47:37Alexa BridgeHomebridgeAlexaSmartHomeFEHLERFailed to initialize connection to Alexa. - Please open http://192.168.192.69:8585/ with your browser and login to Amazon. The cookie will be output here after successfull login. 18.6.2024, 12:47:37Alexa BridgeHomebridgeAlexaSmartHomeAlexa-Remote: Authentication check Error, try re-init 18.6.2024, 12:47:37Alexa BridgeHomebridgeAlexaSmartHomeAlexa-Remote: No cookie given, generate one 18.6.2024, 12:47:37Alexa BridgeHomebridgeAlexaSmartHomeAlexa-Remote: Error from retrieving cookies 18.6.2024, 12:47:37Alexa BridgeHomebridgeAlexaSmartHomeAlexa-Remote: Authentication check Error and renew unsuccessful. STOP 18.6.2024, 12:47:37Alexa BridgeHomebridgeAlexaSmartHomeFEHLERAfter initialization - HttpError(Error getting smart home devices. Reason: Cookie invalid, Renew unsuccessful)
Plugin Config:
{ "accessories": [], "platforms": [ { "platform": "Alexa", "name": "Alexa", "routines": false, "door": false, "blind": false }, { "platform": "HomebridgeAlexaSmartHome", "amazonDomain": "amazon.de", "auth": { "refreshInterval": 4, "proxy": { "clientHost": "192.168.xxx.xx", "port": 8585 } }, "language": "en-US", "debug": true } ] }
Screenshots:
Environment:
- Plugin Version: 2.1.5
- Homebridge Version: 1.7.0
- Node.js Version: 18.20.3
- NPM Version: 10.7.0
- Operating System: Raspbian Pi OS 10