alandtse / alexa_media_player

This is a custom component to allow control of Amazon Alexa devices in Home Assistant using the unofficial Alexa API.
Apache License 2.0
1.53k stars 290 forks source link

Constant 'aiohttp.streams.EofStream' in log #579

Closed frlarsendeloitte closed 4 years ago

frlarsendeloitte commented 4 years ago

Everything is working as expected, but my HA logfile is showing 'aiohttp.streams.EofStream' twice every minute. Like these: 2020-03-03 14:04:56 ERROR (MainThread) [alexapy.alexawebsocket] WebSocket Error: <class 'aiohttp.streams.EofStream'> 2020-03-03 14:05:06 ERROR (MainThread) [alexapy.alexawebsocket] WebSocket Error: <class 'aiohttp.streams.EofStream'> 2020-03-03 14:05:27 ERROR (MainThread) [alexapy.alexawebsocket] WebSocket Error: <class 'aiohttp.streams.EofStream'> 2020-03-03 14:06:07 ERROR (MainThread) [alexapy.alexawebsocket] WebSocket Error: <class 'aiohttp.streams.EofStream'> 2020-03-03 14:06:08 ERROR (MainThread) [alexapy.alexawebsocket] WebSocket Error: <class 'aiohttp.streams.EofStream'>

To Reproduce With or without using the Alexa Media Player, the logfile shows the error around two times per minute.

Expected behavior Is this normal or not? :)

System details

Logs

``` 2020-03-03 14:15:47 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant. 2020-03-03 14:15:47 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for alexa_media which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant. 2020-03-03 14:15:51 DEBUG (MainThread) [custom_components.alexa_media.helpers] alexa_media.async_setup_entry: Trying with limit 5 delay 5 catch_exceptions True 2020-03-03 14:15:51 INFO (MainThread) [custom_components.alexa_media] ------------------------------------------------------------------- alexa_media Version: 2.5.6 This is a custom component If you have any issues with this you need to open an issue here: https://github.com/custom-components/alexa_media_player/issues ------------------------------------------------------------------- 2020-03-03 14:15:51 INFO (MainThread) [custom_components.alexa_media] Loaded alexapy==1.5.1 2020-03-03 14:15:51 DEBUG (MainThread) [alexapy.alexalogin] Trying to load pickled cookie from file /config/alexa_media.@gmail.com.pickle 2020-03-03 14:15:52 DEBUG (MainThread) [alexapy.alexalogin] cookie loaded: defaultdict(, {'amazon.com': }) 2020-03-03 14:15:52 DEBUG (MainThread) [alexapy.alexalogin] Trying to load aiohttpCookieJar to session 2020-03-03 14:15:52 DEBUG (MainThread) [alexapy.alexalogin] Updating self._cookies with amazon.com session cookies: amazon.com: expires:Fri, 24-Feb-2040 17:45:37 GMT max-age: session-id=137-4104098-5510033 amazon.com: expires:Fri, 24-Feb-2040 17:45:37 GMT max-age: session-id-time=2213718337l amazon.com: expires:Fri, 24-Feb-2040 17:45:37 GMT max-age: ubid-main=131-1488076-9651502 amazon.com: expires:Fri, 24-Feb-2040 17:45:37 GMT max-age:630720000 session-token=nKB90uVVnHIQRnHhQS2uQkR2A3wRajq51MQ+WCqm8kWIxfxFpOMQl4SEPIRwiz5R8vtIbiyE8bLHDZQzDKQDBqMe0xzaXPbZKJ+TXLxa/SyiCQCZcJO0wyVQtXcsEQJa/kt6eS1przxf6Sf518sLou3+1zTC+VvqeqFeBvwmd3M2QPH8EAm9I2vnZvsD5ylU4gis6GXTjo7NGcJPQvznTDLu4RWYHiOrVZhi4E0hMAM= amazon.com: expires:Fri, 24-Feb-2040 17:45:37 GMT max-age:630720000 x-main=izrB8xeVkrz9r7b6pdCdl2@2b@DiBAdQqwBvH?RkeOoCsSRYdA5nrhjCVufwMiXu amazon.com: expires:Fri, 24-Feb-2040 17:45:37 GMT max-age: at-main=Atza|IwEBIMlWphT1FziftaDL2oW1YY6COQI1rx1RKG83TFKnurkkR6EvIvBSPNcSAcwOfWc0vdCtUxuyz2jmfTVmGruzVyoeNHaslZtVMP6MjKCmiVIF-woseNpGJE0TsBgDWRjTAE0j1Qe8sd5YXZ55xKMJrdF93jVzMPG4mj2I0X1z7GtZgmvQVFjl24IVTBDmIE-BHDcdc61Q5vZb_8fYMuEN0XERFlurww-0szsBcjZ7hMrGmbVd7q1il89R8jwDG5QtlpI75SeKfI-s5DPiObaAsuroD2vCTMiMHZfaVlNg89zHMZ6GR1w8Cu1KJJu-r1mG51xmFzOtBYAeVsJiF6F9f3VRs_XV0hs6LwS2qmASVDRVAEbKU-t74B9g4TaDsp1nOjq2CAX6uFLm1e-QA-I4pZfw amazon.com: expires:Fri, 24-Feb-2040 17:45:37 GMT max-age:630720000 sess-at-main=u5Vv5dhunqT7LldvUN6iu0eqWaBsvp1pQaWD7QUOY+Y= amazon.com: expires:Wed, 30-Jan-2030 08:10:48 GMT max-age: csrf=-718429675 2020-03-03 14:15:52 DEBUG (MainThread) [alexapy.alexalogin] Loaded 8 cookies 2020-03-03 14:15:54 DEBUG (MainThread) [alexapy.alexalogin] GET: https://alexa.amazon.com/api/bootstrap with returned 200:OK with response 2020-03-03 14:15:54 DEBUG (MainThread) [alexapy.alexalogin] Logged in as @gmail.com 2020-03-03 14:15:54 DEBUG (MainThread) [alexapy.alexalogin] Using cookies to log in 2020-03-03 14:15:54 DEBUG (MainThread) [alexapy.alexalogin] Log in successful with cookies 2020-03-03 14:15:54 DEBUG (MainThread) [alexapy.alexalogin] Updating self._cookies with amazon.com session cookies: amazon.com: expires:Fri, 24-Feb-2040 17:45:37 GMT max-age: session-id=137-4104098-5510033 amazon.com: expires:Fri, 24-Feb-2040 17:45:37 GMT max-age: session-id-time=2213718337l amazon.com: expires:Fri, 24-Feb-2040 17:45:37 GMT max-age: ubid-main=131-1488076-9651502 amazon.com: expires:Fri, 24-Feb-2040 17:45:37 GMT max-age:630720000 session-token=nKB90uVVnHIQRnHhQS2uQkR2A3wRajq51MQ+WCqm8kWIxfxFpOMQl4SEPIRwiz5R8vtIbiyE8bLHDZQzDKQDBqMe0xzaXPbZKJ+TXLxa/SyiCQCZcJO0wyVQtXcsEQJa/kt6eS1przxf6Sf518sLou3+1zTC+VvqeqFeBvwmd3M2QPH8EAm9I2vnZvsD5ylU4gis6GXTjo7NGcJPQvznTDLu4RWYHiOrVZhi4E0hMAM= amazon.com: expires:Fri, 24-Feb-2040 17:45:37 GMT max-age:630720000 x-main=izrB8xeVkrz9r7b6pdCdl2@2b@DiBAdQqwBvH?RkeOoCsSRYdA5nrhjCVufwMiXu amazon.com: expires:Fri, 24-Feb-2040 17:45:37 GMT max-age: at-main=Atza|IwEBIMlWphT1FziftaDL2oW1YY6COQI1rx1RKG83TFKnurkkR6EvIvBSPNcSAcwOfWc0vdCtUxuyz2jmfTVmGruzVyoeNHaslZtVMP6MjKCmiVIF-woseNpGJE0TsBgDWRjTAE0j1Qe8sd5YXZ55xKMJrdF93jVzMPG4mj2I0X1z7GtZgmvQVFjl24IVTBDmIE-BHDcdc61Q5vZb_8fYMuEN0XERFlurww-0szsBcjZ7hMrGmbVd7q1il89R8jwDG5QtlpI75SeKfI-s5DPiObaAsuroD2vCTMiMHZfaVlNg89zHMZ6GR1w8Cu1KJJu-r1mG51xmFzOtBYAeVsJiF6F9f3VRs_XV0hs6LwS2qmASVDRVAEbKU-t74B9g4TaDsp1nOjq2CAX6uFLm1e-QA-I4pZfw amazon.com: expires:Fri, 24-Feb-2040 17:45:37 GMT max-age:630720000 sess-at-main=u5Vv5dhunqT7LldvUN6iu0eqWaBsvp1pQaWD7QUOY+Y= amazon.com: expires:Wed, 30-Jan-2030 08:10:48 GMT max-age: csrf=-718429675 2020-03-03 14:15:54 DEBUG (MainThread) [custom_components.alexa_media] Testing login status: {'login_successful': True} 2020-03-03 14:15:54 DEBUG (MainThread) [custom_components.alexa_media] Setting up Alexa devices for f***************n@g*******m 2020-03-03 14:15:54 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket created: 2020-03-03 14:15:54 DEBUG (MainThread) [alexapy.alexawebsocket] Connecting to wss://dp-gw-na-js.amazon.com/?x-amz-device-type=ALEGCNGL9K0HM&x-amz-device-serial=131-1488076-9651502-1583241354000 with {'User-Agent': 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36', 'Accept': 'text/html,application/xhtml+xml, application/xml;q=0.9,*/*;q=0.8', 'Accept-Language': '*', 'Referer': 'https://alexa.amazon.com/api/bootstrap', 'Cookie': 'session-id=137-4104098-5510033; session-id-time=2213718337l; ubid-main=131-1488076-9651502; session-token=nKB90uVVnHIQRnHhQS2uQkR2A3wRajq51MQ+WCqm8kWIxfxFpOMQl4SEPIRwiz5R8vtIbiyE8bLHDZQzDKQDBqMe0xzaXPbZKJ+TXLxa/SyiCQCZcJO0wyVQtXcsEQJa/kt6eS1przxf6Sf518sLou3+1zTC+VvqeqFeBvwmd3M2QPH8EAm9I2vnZvsD5ylU4gis6GXTjo7NGcJPQvznTDLu4RWYHiOrVZhi4E0hMAM=; x-main=izrB8xeVkrz9r7b6pdCdl2@2b@DiBAdQqwBvH?RkeOoCsSRYdA5nrhjCVufwMiXu; at-main=Atza|IwEBIMlWphT1FziftaDL2oW1YY6COQI1rx1RKG83TFKnurkkR6EvIvBSPNcSAcwOfWc0vdCtUxuyz2jmfTVmGruzVyoeNHaslZtVMP6MjKCmiVIF-woseNpGJE0TsBgDWRjTAE0j1Qe8sd5YXZ55xKMJrdF93jVzMPG4mj2I0X1z7GtZgmvQVFjl24IVTBDmIE-BHDcdc61Q5vZb_8fYMuEN0XERFlurww-0szsBcjZ7hMrGmbVd7q1il89R8jwDG5QtlpI75SeKfI-s5DPiObaAsuroD2vCTMiMHZfaVlNg89zHMZ6GR1w8Cu1KJJu-r1mG51xmFzOtBYAeVsJiF6F9f3VRs_XV0hs6LwS2qmASVDRVAEbKU-t74B9g4TaDsp1nOjq2CAX6uFLm1e-QA-I4pZfw; sess-at-main=u5Vv5dhunqT7LldvUN6iu0eqWaBsvp1pQaWD7QUOY+Y=; csrf=-718429675; ', 'Origin': 'https://alexa.amazon.com'} 2020-03-03 14:15:54 DEBUG (MainThread) [alexapy.alexawebsocket] Initating Async Handshake. 2020-03-03 14:15:54 DEBUG (MainThread) [alexapy.alexawebsocket] Starting message parsing loop. 2020-03-03 14:15:55 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding WebSocket Handshake MSG. 2020-03-03 14:15:55 DEBUG (MainThread) [alexapy.alexawebsocket] Received WebSocket: 0xbafef3f3 0x000000cd {"protocolName":"A:H","parameters":{"AlphaProtocolHandler.supportedEncodings":"GZIP","AlphaProtocolHandler.maxFragmentSize":"16000","AlphaProtocolHandler.receiveWindowSize":"16"}}TUNE 2020-03-03 14:15:55 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding Gateway Handshake MSG. 2020-03-03 14:15:55 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding Gateway Register MSG. 2020-03-03 14:15:55 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket succesfully connected 2020-03-03 14:15:55 DEBUG (MainThread) [alexapy.alexawebsocket] Received WebSocket: MSG 0x00000361 0x41351126 f 0x00000001 0xcf52b24f 0x000000b9 ACK 0x00000003 1.0 0x00000024 01e09e62-f504-476c-85c8-9c97c8da26ed 0x00000064 0x0000016978ff598c 0x00000170a089f503 END FABE 2020-03-03 14:15:55 DEBUG (MainThread) [alexapy.alexawebsocket] Received ACK MSG for Registration. 2020-03-03 14:15:55 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/bootstrap returned 200:OK:application/json 2020-03-03 14:15:55 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/devices-v2/device returned 200:OK:application/json 2020-03-03 14:15:56 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/bluetooth?cached=false returned 200:OK:application/json 2020-03-03 14:15:56 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/device-preferences returned 200:OK:application/json 2020-03-03 14:15:56 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/dnd/device-status-list returned 200:OK:application/json 2020-03-03 14:15:57 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/notifications returned 200:OK:application/json 2020-03-03 14:15:57 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Found 7 devices, 7 bluetooth 2020-03-03 14:15:57 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/notifications returned 200:OK:application/json 2020-03-03 14:15:57 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Updated 0 notifications for 1 devices at 2020-03-03 14:15:57.553036+01:00 2020-03-03 14:15:58 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/activities?startTime=&size=10&offset=1 returned 200:OK:application/json 2020-03-03 14:15:58 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Updated last_called: {'serialNumber': 'G************H3S', 'timestamp': 1583217507466} 2020-03-03 14:15:58 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: last_called changed: to {'serialNumber': 'G************H3S', 'timestamp': 1583217507466} 2020-03-03 14:15:58 DEBUG (MainThread) [custom_components.alexa_media] TV: Locale en-us timezone None 2020-03-03 14:15:58 DEBUG (MainThread) [custom_components.alexa_media] TV: DND False 2020-03-03 14:15:58 DEBUG (MainThread) [custom_components.alexa_media] Bathroom: Locale en-us timezone None 2020-03-03 14:15:58 DEBUG (MainThread) [custom_components.alexa_media] Bathroom: DND False 2020-03-03 14:15:58 DEBUG (MainThread) [custom_components.alexa_media] Kitchen: Locale en-us timezone None 2020-03-03 14:15:58 DEBUG (MainThread) [custom_components.alexa_media] Kitchen: DND False 2020-03-03 14:15:58 DEBUG (MainThread) [custom_components.alexa_media] Livingroom: Locale en-us timezone None 2020-03-03 14:15:58 DEBUG (MainThread) [custom_components.alexa_media] Livingroom: DND False 2020-03-03 14:15:58 DEBUG (MainThread) [custom_components.alexa_media] Frank's Echo Dot: Locale en-us timezone Europe/Copenhagen 2020-03-03 14:15:58 DEBUG (MainThread) [custom_components.alexa_media] Frank's Echo Dot: DND False 2020-03-03 14:15:58 DEBUG (MainThread) [custom_components.alexa_media] This Device: Locale en-gb timezone Europe/Copenhagen 2020-03-03 14:15:58 DEBUG (MainThread) [custom_components.alexa_media] This Device: DND False 2020-03-03 14:15:58 DEBUG (MainThread) [custom_components.alexa_media] Frank's Alexa Apps: Locale en-us timezone None 2020-03-03 14:15:58 DEBUG (MainThread) [custom_components.alexa_media] Frank's Alexa Apps: DND False 2020-03-03 14:15:58 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Existing: [] New: ['TV', 'Bathroom', 'Kitchen', 'Livingroom', "Frank's Echo Dot", 'This Device', "Frank's Alexa Apps"]; Filtered out by not being in include: [] or in exclude: [] 2020-03-03 14:15:58 DEBUG (MainThread) [custom_components.alexa_media.helpers] alexa_media.async_setup_entry: Try: 1/5 after waiting 0 seconds result: True 2020-03-03 14:15:58 DEBUG (MainThread) [custom_components.alexa_media.helpers] alexa_media.notify.async_get_service: Trying with limit 5 delay 2 catch_exceptions True 2020-03-03 14:15:58 DEBUG (MainThread) [custom_components.alexa_media.notify] f***************n@g*******m: Media player 8****************************0ee not loaded yet; delaying load 2020-03-03 14:15:58 DEBUG (MainThread) [custom_components.alexa_media.helpers] alexa_media.notify.async_get_service: Try: 1/5 after waiting 0 seconds result: False 2020-03-03 14:15:58 DEBUG (MainThread) [custom_components.alexa_media.helpers] alexa_media.media_player.async_setup_platform: Trying with limit 5 delay 2 catch_exceptions True 2020-03-03 14:15:58 DEBUG (MainThread) [custom_components.alexa_media.media_player] f***************n@g*******m: Refreshing TV 2020-03-03 14:15:58 DEBUG (MainThread) [custom_components.alexa_media.media_player] TV: Last_called check: self: 8****************************0ee reported: 2020-03-03 14:15:58 DEBUG (MainThread) [custom_components.alexa_media.helpers] alexa_media.switch.async_setup_platform: Trying with limit 5 delay 5 catch_exceptions True 2020-03-03 14:15:58 DEBUG (MainThread) [custom_components.alexa_media.switch] f***************n@g*******m: Loading switches 2020-03-03 14:15:58 DEBUG (MainThread) [custom_components.alexa_media.switch] f***************n@g*******m: Media player 8****************************0ee not loaded yet; delaying load 2020-03-03 14:15:58 DEBUG (MainThread) [custom_components.alexa_media.helpers] alexa_media.switch.async_setup_platform: Try: 1/5 after waiting 0 seconds result: False 2020-03-03 14:15:58 DEBUG (MainThread) [custom_components.alexa_media.helpers] alexa_media.sensor.async_setup_platform: Trying with limit 5 delay 5 catch_exceptions False 2020-03-03 14:15:58 DEBUG (MainThread) [custom_components.alexa_media.sensor] f***************n@g*******m: Loading sensors 2020-03-03 14:15:58 DEBUG (MainThread) [custom_components.alexa_media.sensor] f***************n@g*******m: Media player 8****************************0ee not loaded yet; delaying load 2020-03-03 14:15:58 DEBUG (MainThread) [custom_components.alexa_media.helpers] alexa_media.sensor.async_setup_platform: Try: 1/5 after waiting 0 seconds result: False 2020-03-03 14:15:58 DEBUG (MainThread) [custom_components.alexa_media.helpers] alexa_media.alarm_control_panel.async_setup_platform: Trying with limit 5 delay 2 catch_exceptions True 2020-03-03 14:15:58 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/phoenix returned 200:OK:application/json 2020-03-03 14:15:58 DEBUG (MainThread) [custom_components.alexa_media.alarm_control_panel] f***************n@g*******m: No Alexa Guard entity found 2020-03-03 14:15:58 DEBUG (MainThread) [custom_components.alexa_media.alarm_control_panel] f***************n@g*******m: Skipping creation of uninitialized device: 2020-03-03 14:15:58 DEBUG (MainThread) [custom_components.alexa_media.helpers] alexa_media.alarm_control_panel.async_setup_platform: Try: 1/5 after waiting 0 seconds result: True 2020-03-03 14:15:58 DEBUG (MainThread) [alexapy.alexaapi] GET: https://alexa.amazon.com/api/np/player?deviceSerialNumber=8568e94c4c2d4b368050874cbdfa60ee&deviceType=A15ERDAKK5HQQG&screenWidth=2560 returned 200:OK:application/json 2020-03-03 14:15:58 DEBUG (MainThread) [custom_components.alexa_media.media_player] f***************n@g*******m: Refreshing Bathroom 2020-03-03 14:15:58 DEBUG (MainThread) [custom_components.alexa_media.media_player] Bathroom: Last_called check: self: 4****************************c9a reported: 2020-03-03 14:15:59 DEBUG (MainThread) [alexapy.alexaapi] GET: https://alexa.amazon.com/api/np/player?deviceSerialNumber=42582ebcf85049958344fa3a79633c9a&deviceType=A15ERDAKK5HQQG&screenWidth=2560 returned 200:OK:application/json 2020-03-03 14:15:59 DEBUG (MainThread) [custom_components.alexa_media.media_player] f***************n@g*******m: Refreshing Kitchen 2020-03-03 14:15:59 DEBUG (MainThread) [custom_components.alexa_media.media_player] Kitchen: Last_called check: self: d****************************a3b reported: 2020-03-03 14:15:59 DEBUG (MainThread) [alexapy.alexaapi] GET: https://alexa.amazon.com/api/np/player?deviceSerialNumber=d1a961664d244db9ac94f58cc1767a3b&deviceType=A15ERDAKK5HQQG&screenWidth=2560 returned 200:OK:application/json 2020-03-03 14:15:59 DEBUG (MainThread) [custom_components.alexa_media.media_player] f***************n@g*******m: Refreshing Livingroom 2020-03-03 14:15:59 DEBUG (MainThread) [custom_components.alexa_media.media_player] Livingroom: Last_called check: self: d****************************78e reported: 2020-03-03 14:16:00 DEBUG (MainThread) [alexapy.alexaapi] GET: https://alexa.amazon.com/api/np/player?deviceSerialNumber=da749204b4b64af3a8cab3f1a3bd478e&deviceType=A15ERDAKK5HQQG&screenWidth=2560 returned 200:OK:application/json 2020-03-03 14:16:00 DEBUG (MainThread) [custom_components.alexa_media.media_player] f***************n@g*******m: Refreshing Frank's Echo Dot 2020-03-03 14:16:00 DEBUG (MainThread) [custom_components.alexa_media.media_player] Frank's Echo Dot: Last_called check: self: G************H3S reported: 2020-03-03 14:16:00 DEBUG (MainThread) [alexapy.alexaapi] GET: https://alexa.amazon.com/api/np/player?deviceSerialNumber=G090L91175030H3S&deviceType=A3S5BH2HU6VAYF&screenWidth=2560 returned 200:OK:application/json 2020-03-03 14:16:00 DEBUG (MainThread) [custom_components.alexa_media.media_player] f***************n@g*******m: Refreshing This Device 2020-03-03 14:16:00 DEBUG (MainThread) [custom_components.alexa_media.media_player] This Device: Last_called check: self: 9****************************7DA reported: 2020-03-03 14:16:00 DEBUG (MainThread) [custom_components.alexa_media.helpers] f***************n@g*******m: Adding [, , , , , , ] 2020-03-03 14:16:00 DEBUG (MainThread) [custom_components.alexa_media.helpers] alexa_media.media_player.async_setup_platform: Try: 1/5 after waiting 0 seconds result: True 2020-03-03 14:16:02 DEBUG (MainThread) [custom_components.alexa_media.helpers] alexa_media.notify.async_get_service: Try: 2/5 after waiting 4 seconds result: 2020-03-03 14:16:08 DEBUG (MainThread) [custom_components.alexa_media.switch] f***************n@g*******m: Loading switches 2020-03-03 14:16:08 DEBUG (MainThread) [custom_components.alexa_media.switch] f***************n@g*******m: Found 8****************************0ee dnd switch with status: False 2020-03-03 14:16:08 DEBUG (MainThread) [custom_components.alexa_media.switch] f***************n@g*******m: Found 8****************************0ee shuffle switch with status: False 2020-03-03 14:16:08 DEBUG (MainThread) [custom_components.alexa_media.switch] f***************n@g*******m: Found 8****************************0ee repeat switch with status: False 2020-03-03 14:16:08 DEBUG (MainThread) [custom_components.alexa_media.switch] f***************n@g*******m: Found 4****************************c9a dnd switch with status: False 2020-03-03 14:16:08 DEBUG (MainThread) [custom_components.alexa_media.switch] f***************n@g*******m: Found 4****************************c9a shuffle switch with status: True 2020-03-03 14:16:08 DEBUG (MainThread) [custom_components.alexa_media.switch] f***************n@g*******m: Found 4****************************c9a repeat switch with status: False 2020-03-03 14:16:08 DEBUG (MainThread) [custom_components.alexa_media.switch] f***************n@g*******m: Found d****************************a3b dnd switch with status: False 2020-03-03 14:16:08 DEBUG (MainThread) [custom_components.alexa_media.switch] f***************n@g*******m: Found d****************************a3b shuffle switch with status: False 2020-03-03 14:16:08 DEBUG (MainThread) [custom_components.alexa_media.switch] f***************n@g*******m: Found d****************************a3b repeat switch with status: False 2020-03-03 14:16:08 DEBUG (MainThread) [custom_components.alexa_media.switch] f***************n@g*******m: Found d****************************78e dnd switch with status: False 2020-03-03 14:16:08 DEBUG (MainThread) [custom_components.alexa_media.switch] f***************n@g*******m: Found d****************************78e shuffle switch with status: False 2020-03-03 14:16:08 DEBUG (MainThread) [custom_components.alexa_media.switch] f***************n@g*******m: Found d****************************78e repeat switch with status: False 2020-03-03 14:16:08 DEBUG (MainThread) [custom_components.alexa_media.switch] f***************n@g*******m: Found G************H3S dnd switch with status: False 2020-03-03 14:16:08 DEBUG (MainThread) [custom_components.alexa_media.switch] f***************n@g*******m: Found G************H3S shuffle switch with status: False 2020-03-03 14:16:08 DEBUG (MainThread) [custom_components.alexa_media.switch] f***************n@g*******m: Found G************H3S repeat switch with status: False 2020-03-03 14:16:08 DEBUG (MainThread) [custom_components.alexa_media.switch] f***************n@g*******m: Found 9****************************7DA dnd switch with status: False 2020-03-03 14:16:08 DEBUG (MainThread) [custom_components.alexa_media.switch] f***************n@g*******m: Skipping shuffle for 9****************************7DA 2020-03-03 14:16:08 DEBUG (MainThread) [custom_components.alexa_media.switch] f***************n@g*******m: Skipping repeat for 9****************************7DA 2020-03-03 14:16:08 DEBUG (MainThread) [custom_components.alexa_media.switch] f***************n@g*******m: Found B****************************37C dnd switch with status: False 2020-03-03 14:16:08 DEBUG (MainThread) [custom_components.alexa_media.switch] f***************n@g*******m: Skipping shuffle for B****************************37C 2020-03-03 14:16:08 DEBUG (MainThread) [custom_components.alexa_media.switch] f***************n@g*******m: Skipping repeat for B****************************37C 2020-03-03 14:16:08 DEBUG (MainThread) [custom_components.alexa_media.helpers] f***************n@g*******m: Adding [, , , , , , , , , , , , , , , , ] 2020-03-03 14:16:08 DEBUG (MainThread) [custom_components.alexa_media.helpers] alexa_media.switch.async_setup_platform: Try: 2/5 after waiting 10 seconds result: True 2020-03-03 14:16:08 DEBUG (MainThread) [custom_components.alexa_media.sensor] f***************n@g*******m: Loading sensors 2020-03-03 14:16:08 DEBUG (MainThread) [custom_components.alexa_media.sensor] f***************n@g*******m: Found 8****************************0ee Reminder sensor (0) with next: unavailable 2020-03-03 14:16:08 DEBUG (MainThread) [custom_components.alexa_media.sensor] f***************n@g*******m: Found 4****************************c9a Reminder sensor (0) with next: unavailable 2020-03-03 14:16:08 DEBUG (MainThread) [custom_components.alexa_media.sensor] f***************n@g*******m: Found d****************************a3b Reminder sensor (0) with next: unavailable 2020-03-03 14:16:08 DEBUG (MainThread) [custom_components.alexa_media.sensor] f***************n@g*******m: Found d****************************78e Reminder sensor (0) with next: unavailable 2020-03-03 14:16:08 DEBUG (MainThread) [custom_components.alexa_media.sensor] f***************n@g*******m: Found G************H3S Alarm sensor (0) with next: unavailable 2020-03-03 14:16:08 DEBUG (MainThread) [custom_components.alexa_media.sensor] f***************n@g*******m: Found G************H3S Timer sensor (0) with next: unavailable 2020-03-03 14:16:08 DEBUG (MainThread) [custom_components.alexa_media.sensor] f***************n@g*******m: Found G************H3S Reminder sensor (0) with next: unavailable 2020-03-03 14:16:08 DEBUG (MainThread) [custom_components.alexa_media.sensor] f***************n@g*******m: Found 9****************************7DA Alarm sensor (0) with next: unavailable 2020-03-03 14:16:08 DEBUG (MainThread) [custom_components.alexa_media.sensor] f***************n@g*******m: Found 9****************************7DA Timer sensor (0) with next: unavailable 2020-03-03 14:16:08 DEBUG (MainThread) [custom_components.alexa_media.sensor] f***************n@g*******m: Found 9****************************7DA Reminder sensor (0) with next: unavailable 2020-03-03 14:16:08 DEBUG (MainThread) [custom_components.alexa_media.helpers] f***************n@g*******m: Adding [, , , , , , , , , ] 2020-03-03 14:16:08 DEBUG (MainThread) [custom_components.alexa_media.helpers] alexa_media.sensor.async_setup_platform: Try: 2/5 after waiting 10 seconds result: True 2020-03-03 14:16:11 DEBUG (MainThread) [custom_components.alexa_media.media_player] f***************n@g*******m: Refreshing Frank's Echo Dot 2020-03-03 14:16:11 DEBUG (MainThread) [custom_components.alexa_media.media_player] Frank's Echo Dot: Last_called check: self: G************H3S reported: G************H3S 2020-03-03 14:16:11 DEBUG (MainThread) [alexapy.alexaapi] GET: https://alexa.amazon.com/api/np/player?deviceSerialNumber=G090L91175030H3S&deviceType=A3S5BH2HU6VAYF&screenWidth=2560 returned 200:OK:application/json 2020-03-03 14:16:11 DEBUG (MainThread) [custom_components.alexa_media.media_player] Disabling polling for Frank's Echo Dot 2020-03-03 14:16:55 ERROR (MainThread) [alexapy.alexawebsocket] WebSocket Error: 2020-03-03 14:16:55 DEBUG (MainThread) [alexapy.alexawebsocket] WebSocket Connection Closed. result=None> 2020-03-03 14:16:55 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Received websocket error #0 2020-03-03 14:16:55 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket closed; reconnect #1 in 10s 2020-03-03 14:17:05 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket created: 2020-03-03 14:17:05 DEBUG (MainThread) [alexapy.alexawebsocket] Connecting to wss://dp-gw-na-js.amazon.com/?x-amz-device-type=ALEGCNGL9K0HM&x-amz-device-serial=131-1488076-9651502-1583241425000 with {'User-Agent': 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36', 'Accept': 'text/html,application/xhtml+xml, application/xml;q=0.9,*/*;q=0.8', 'Accept-Language': '*', 'Referer': 'https://alexa.amazon.com/spa/index.html', 'Cookie': 'session-id=137-4104098-5510033; session-id-time=2213718337l; ubid-main=131-1488076-9651502; session-token=nKB90uVVnHIQRnHhQS2uQkR2A3wRajq51MQ+WCqm8kWIxfxFpOMQl4SEPIRwiz5R8vtIbiyE8bLHDZQzDKQDBqMe0xzaXPbZKJ+TXLxa/SyiCQCZcJO0wyVQtXcsEQJa/kt6eS1przxf6Sf518sLou3+1zTC+VvqeqFeBvwmd3M2QPH8EAm9I2vnZvsD5ylU4gis6GXTjo7NGcJPQvznTDLu4RWYHiOrVZhi4E0hMAM=; x-main=izrB8xeVkrz9r7b6pdCdl2@2b@DiBAdQqwBvH?RkeOoCsSRYdA5nrhjCVufwMiXu; at-main=Atza|IwEBIMlWphT1FziftaDL2oW1YY6COQI1rx1RKG83TFKnurkkR6EvIvBSPNcSAcwOfWc0vdCtUxuyz2jmfTVmGruzVyoeNHaslZtVMP6MjKCmiVIF-woseNpGJE0TsBgDWRjTAE0j1Qe8sd5YXZ55xKMJrdF93jVzMPG4mj2I0X1z7GtZgmvQVFjl24IVTBDmIE-BHDcdc61Q5vZb_8fYMuEN0XERFlurww-0szsBcjZ7hMrGmbVd7q1il89R8jwDG5QtlpI75SeKfI-s5DPiObaAsuroD2vCTMiMHZfaVlNg89zHMZ6GR1w8Cu1KJJu-r1mG51xmFzOtBYAeVsJiF6F9f3VRs_XV0hs6LwS2qmASVDRVAEbKU-t74B9g4TaDsp1nOjq2CAX6uFLm1e-QA-I4pZfw; sess-at-main=u5Vv5dhunqT7LldvUN6iu0eqWaBsvp1pQaWD7QUOY+Y=; csrf=-718429675; ', 'Origin': 'https://alexa.amazon.com', 'csrf': '-718429675'} 2020-03-03 14:17:05 DEBUG (MainThread) [alexapy.alexawebsocket] Initating Async Handshake. 2020-03-03 14:17:05 DEBUG (MainThread) [alexapy.alexawebsocket] Starting message parsing loop. 2020-03-03 14:17:05 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding WebSocket Handshake MSG. 2020-03-03 14:17:05 DEBUG (MainThread) [alexapy.alexawebsocket] Received WebSocket: 0xbafef3f3 0x000000cd {"protocolName":"A:H","parameters":{"AlphaProtocolHandler.supportedEncodings":"GZIP","AlphaProtocolHandler.maxFragmentSize":"16000","AlphaProtocolHandler.receiveWindowSize":"16"}}TUNE 2020-03-03 14:17:05 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding Gateway Handshake MSG. 2020-03-03 14:17:06 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding Gateway Register MSG. 2020-03-03 14:17:06 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket succesfully connected 2020-03-03 14:17:06 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket closed; retries exceeded; polling 2020-03-03 14:17:06 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket closed; reconnect #2 in 20s 2020-03-03 14:17:06 DEBUG (MainThread) [alexapy.alexawebsocket] Received WebSocket: MSG 0x00000361 0x3bb72745 f 0x00000001 0x9a56f2a9 0x000000b9 ACK 0x00000003 1.0 0x00000024 01e09e62-f504-476c-85c8-9c97c8da26ed 0x00000064 0x0000016978ff598c 0x00000170a08b0993 END FABE 2020-03-03 14:17:06 DEBUG (MainThread) [alexapy.alexawebsocket] Received ACK MSG for Registration. 2020-03-03 14:17:26 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket created: 2020-03-03 14:17:26 DEBUG (MainThread) [alexapy.alexawebsocket] Connecting to wss://dp-gw-na-js.amazon.com/?x-amz-device-type=ALEGCNGL9K0HM&x-amz-device-serial=131-1488076-9651502-1583241446000 with {'User-Agent': 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36', 'Accept': 'text/html,application/xhtml+xml, application/xml;q=0.9,*/*;q=0.8', 'Accept-Language': '*', 'Referer': 'https://alexa.amazon.com/spa/index.html', 'Cookie': 'session-id=137-4104098-5510033; session-id-time=2213718337l; ubid-main=131-1488076-9651502; session-token=nKB90uVVnHIQRnHhQS2uQkR2A3wRajq51MQ+WCqm8kWIxfxFpOMQl4SEPIRwiz5R8vtIbiyE8bLHDZQzDKQDBqMe0xzaXPbZKJ+TXLxa/SyiCQCZcJO0wyVQtXcsEQJa/kt6eS1przxf6Sf518sLou3+1zTC+VvqeqFeBvwmd3M2QPH8EAm9I2vnZvsD5ylU4gis6GXTjo7NGcJPQvznTDLu4RWYHiOrVZhi4E0hMAM=; x-main=izrB8xeVkrz9r7b6pdCdl2@2b@DiBAdQqwBvH?RkeOoCsSRYdA5nrhjCVufwMiXu; at-main=Atza|IwEBIMlWphT1FziftaDL2oW1YY6COQI1rx1RKG83TFKnurkkR6EvIvBSPNcSAcwOfWc0vdCtUxuyz2jmfTVmGruzVyoeNHaslZtVMP6MjKCmiVIF-woseNpGJE0TsBgDWRjTAE0j1Qe8sd5YXZ55xKMJrdF93jVzMPG4mj2I0X1z7GtZgmvQVFjl24IVTBDmIE-BHDcdc61Q5vZb_8fYMuEN0XERFlurww-0szsBcjZ7hMrGmbVd7q1il89R8jwDG5QtlpI75SeKfI-s5DPiObaAsuroD2vCTMiMHZfaVlNg89zHMZ6GR1w8Cu1KJJu-r1mG51xmFzOtBYAeVsJiF6F9f3VRs_XV0hs6LwS2qmASVDRVAEbKU-t74B9g4TaDsp1nOjq2CAX6uFLm1e-QA-I4pZfw; sess-at-main=u5Vv5dhunqT7LldvUN6iu0eqWaBsvp1pQaWD7QUOY+Y=; csrf=-718429675; ', 'Origin': 'https://alexa.amazon.com', 'csrf': '-718429675'} 2020-03-03 14:17:26 DEBUG (MainThread) [alexapy.alexawebsocket] Initating Async Handshake. 2020-03-03 14:17:26 DEBUG (MainThread) [alexapy.alexawebsocket] Starting message parsing loop. 2020-03-03 14:17:26 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding WebSocket Handshake MSG. 2020-03-03 14:17:26 DEBUG (MainThread) [alexapy.alexawebsocket] Received WebSocket: 0xbafef3f3 0x000000cd {"protocolName":"A:H","parameters":{"AlphaProtocolHandler.supportedEncodings":"GZIP","AlphaProtocolHandler.maxFragmentSize":"16000","AlphaProtocolHandler.receiveWindowSize":"16"}}TUNE 2020-03-03 14:17:26 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding Gateway Handshake MSG. 2020-03-03 14:17:26 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding Gateway Register MSG. 2020-03-03 14:17:26 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket succesfully connected 2020-03-03 14:17:26 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket closed; retries exceeded; polling 2020-03-03 14:17:26 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket closed; reconnect #3 in 40s 2020-03-03 14:17:26 DEBUG (MainThread) [alexapy.alexawebsocket] Received WebSocket: MSG 0x00000361 0x2e070cfb f 0x00000001 0xcc7c21d8 0x000000b9 ACK 0x00000003 1.0 0x00000024 01e09e62-f504-476c-85c8-9c97c8da26ed 0x00000064 0x0000016978ff598c 0x00000170a08b5a9b END FABE 2020-03-03 14:17:26 DEBUG (MainThread) [alexapy.alexawebsocket] Received ACK MSG for Registration. 2020-03-03 14:18:06 ERROR (MainThread) [alexapy.alexawebsocket] WebSocket Error: 2020-03-03 14:18:06 DEBUG (MainThread) [alexapy.alexawebsocket] WebSocket Connection Closed. result=None> 2020-03-03 14:18:06 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Received websocket error #0 2020-03-03 14:18:06 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket closed; reconnect #1 in 10s 2020-03-03 14:18:06 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket created: 2020-03-03 14:18:06 DEBUG (MainThread) [alexapy.alexawebsocket] Connecting to wss://dp-gw-na-js.amazon.com/?x-amz-device-type=ALEGCNGL9K0HM&x-amz-device-serial=131-1488076-9651502-1583241486000 with {'User-Agent': 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36', 'Accept': 'text/html,application/xhtml+xml, application/xml;q=0.9,*/*;q=0.8', 'Accept-Language': '*', 'Referer': 'https://alexa.amazon.com/spa/index.html', 'Cookie': 'session-id=137-4104098-5510033; session-id-time=2213718337l; ubid-main=131-1488076-9651502; session-token=nKB90uVVnHIQRnHhQS2uQkR2A3wRajq51MQ+WCqm8kWIxfxFpOMQl4SEPIRwiz5R8vtIbiyE8bLHDZQzDKQDBqMe0xzaXPbZKJ+TXLxa/SyiCQCZcJO0wyVQtXcsEQJa/kt6eS1przxf6Sf518sLou3+1zTC+VvqeqFeBvwmd3M2QPH8EAm9I2vnZvsD5ylU4gis6GXTjo7NGcJPQvznTDLu4RWYHiOrVZhi4E0hMAM=; x-main=izrB8xeVkrz9r7b6pdCdl2@2b@DiBAdQqwBvH?RkeOoCsSRYdA5nrhjCVufwMiXu; at-main=Atza|IwEBIMlWphT1FziftaDL2oW1YY6COQI1rx1RKG83TFKnurkkR6EvIvBSPNcSAcwOfWc0vdCtUxuyz2jmfTVmGruzVyoeNHaslZtVMP6MjKCmiVIF-woseNpGJE0TsBgDWRjTAE0j1Qe8sd5YXZ55xKMJrdF93jVzMPG4mj2I0X1z7GtZgmvQVFjl24IVTBDmIE-BHDcdc61Q5vZb_8fYMuEN0XERFlurww-0szsBcjZ7hMrGmbVd7q1il89R8jwDG5QtlpI75SeKfI-s5DPiObaAsuroD2vCTMiMHZfaVlNg89zHMZ6GR1w8Cu1KJJu-r1mG51xmFzOtBYAeVsJiF6F9f3VRs_XV0hs6LwS2qmASVDRVAEbKU-t74B9g4TaDsp1nOjq2CAX6uFLm1e-QA-I4pZfw; sess-at-main=u5Vv5dhunqT7LldvUN6iu0eqWaBsvp1pQaWD7QUOY+Y=; csrf=-718429675; ', 'Origin': 'https://alexa.amazon.com', 'csrf': '-718429675'} 2020-03-03 14:18:07 DEBUG (MainThread) [alexapy.alexawebsocket] Initating Async Handshake. 2020-03-03 14:18:07 DEBUG (MainThread) [alexapy.alexawebsocket] Starting message parsing loop. 2020-03-03 14:18:07 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding WebSocket Handshake MSG. 2020-03-03 14:18:07 DEBUG (MainThread) [alexapy.alexawebsocket] Received WebSocket: 0xbafef3f3 0x000000cd {"protocolName":"A:H","parameters":{"AlphaProtocolHandler.supportedEncodings":"GZIP","AlphaProtocolHandler.maxFragmentSize":"16000","AlphaProtocolHandler.receiveWindowSize":"16"}}TUNE 2020-03-03 14:18:07 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding Gateway Handshake MSG. 2020-03-03 14:18:07 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding Gateway Register MSG. 2020-03-03 14:18:07 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket succesfully connected 2020-03-03 14:18:07 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket closed; retries exceeded; polling 2020-03-03 14:18:07 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket closed; reconnect #4 in 80s 2020-03-03 14:18:07 DEBUG (MainThread) [alexapy.alexawebsocket] Received WebSocket: MSG 0x00000361 0x102f4b3e f 0x00000001 0x2f5716ab 0x000000b9 ACK 0x00000003 1.0 0x00000024 01e09e62-f504-476c-85c8-9c97c8da26ed 0x00000064 0x0000016978ff598c 0x00000170a08bf9de END FABE 2020-03-03 14:18:07 DEBUG (MainThread) [alexapy.alexawebsocket] Received ACK MSG for Registration. 2020-03-03 14:18:16 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket created: 2020-03-03 14:18:16 DEBUG (MainThread) [alexapy.alexawebsocket] Connecting to wss://dp-gw-na-js.amazon.com/?x-amz-device-type=ALEGCNGL9K0HM&x-amz-device-serial=131-1488076-9651502-1583241496000 with {'User-Agent': 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36', 'Accept': 'text/html,application/xhtml+xml, application/xml;q=0.9,*/*;q=0.8', 'Accept-Language': '*', 'Referer': 'https://alexa.amazon.com/spa/index.html', 'Cookie': 'session-id=137-4104098-5510033; session-id-time=2213718337l; ubid-main=131-1488076-9651502; session-token=nKB90uVVnHIQRnHhQS2uQkR2A3wRajq51MQ+WCqm8kWIxfxFpOMQl4SEPIRwiz5R8vtIbiyE8bLHDZQzDKQDBqMe0xzaXPbZKJ+TXLxa/SyiCQCZcJO0wyVQtXcsEQJa/kt6eS1przxf6Sf518sLou3+1zTC+VvqeqFeBvwmd3M2QPH8EAm9I2vnZvsD5ylU4gis6GXTjo7NGcJPQvznTDLu4RWYHiOrVZhi4E0hMAM=; x-main=izrB8xeVkrz9r7b6pdCdl2@2b@DiBAdQqwBvH?RkeOoCsSRYdA5nrhjCVufwMiXu; at-main=Atza|IwEBIMlWphT1FziftaDL2oW1YY6COQI1rx1RKG83TFKnurkkR6EvIvBSPNcSAcwOfWc0vdCtUxuyz2jmfTVmGruzVyoeNHaslZtVMP6MjKCmiVIF-woseNpGJE0TsBgDWRjTAE0j1Qe8sd5YXZ55xKMJrdF93jVzMPG4mj2I0X1z7GtZgmvQVFjl24IVTBDmIE-BHDcdc61Q5vZb_8fYMuEN0XERFlurww-0szsBcjZ7hMrGmbVd7q1il89R8jwDG5QtlpI75SeKfI-s5DPiObaAsuroD2vCTMiMHZfaVlNg89zHMZ6GR1w8Cu1KJJu-r1mG51xmFzOtBYAeVsJiF6F9f3VRs_XV0hs6LwS2qmASVDRVAEbKU-t74B9g4TaDsp1nOjq2CAX6uFLm1e-QA-I4pZfw; sess-at-main=u5Vv5dhunqT7LldvUN6iu0eqWaBsvp1pQaWD7QUOY+Y=; csrf=-718429675; ', 'Origin': 'https://alexa.amazon.com', 'csrf': '-718429675'} 2020-03-03 14:18:16 DEBUG (MainThread) [alexapy.alexawebsocket] Initating Async Handshake. 2020-03-03 14:18:16 DEBUG (MainThread) [alexapy.alexawebsocket] Starting message parsing loop. 2020-03-03 14:18:16 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding WebSocket Handshake MSG. 2020-03-03 14:18:16 DEBUG (MainThread) [alexapy.alexawebsocket] Received WebSocket: 0xbafef3f3 0x000000cd {"protocolName":"A:H","parameters":{"AlphaProtocolHandler.supportedEncodings":"GZIP","AlphaProtocolHandler.maxFragmentSize":"16000","AlphaProtocolHandler.receiveWindowSize":"16"}}TUNE 2020-03-03 14:18:16 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding Gateway Handshake MSG. 2020-03-03 14:18:16 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding Gateway Register MSG. 2020-03-03 14:18:16 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket succesfully connected 2020-03-03 14:18:16 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket closed; retries exceeded; polling 2020-03-03 14:18:16 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket closed; reconnect #2 in 20s 2020-03-03 14:18:16 DEBUG (MainThread) [alexapy.alexawebsocket] Received WebSocket: MSG 0x00000361 0x23f0bcaf f 0x00000001 0xc5b11d0d 0x000000b9 ACK 0x00000003 1.0 0x00000024 01e09e62-f504-476c-85c8-9c97c8da26ed 0x00000064 0x0000016978ff598c 0x00000170a08c1dfe END FABE 2020-03-03 14:18:16 DEBUG (MainThread) [alexapy.alexawebsocket] Received ACK MSG for Registration. 2020-03-03 14:18:26 ERROR (MainThread) [alexapy.alexawebsocket] WebSocket Error: 2020-03-03 14:18:26 DEBUG (MainThread) [alexapy.alexawebsocket] WebSocket Connection Closed. result=None> 2020-03-03 14:18:26 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Received websocket error #0 2020-03-03 14:18:26 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket closed; reconnect #1 in 10s 2020-03-03 14:18:36 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket created: 2020-03-03 14:18:36 DEBUG (MainThread) [alexapy.alexawebsocket] Connecting to wss://dp-gw-na-js.amazon.com/?x-amz-device-type=ALEGCNGL9K0HM&x-amz-device-serial=131-1488076-9651502-1583241516000 with {'User-Agent': 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36', 'Accept': 'text/html,application/xhtml+xml, application/xml;q=0.9,*/*;q=0.8', 'Accept-Language': '*', 'Referer': 'https://alexa.amazon.com/spa/index.html', 'Cookie': 'session-id=137-4104098-5510033; session-id-time=2213718337l; ubid-main=131-1488076-9651502; session-token=nKB90uVVnHIQRnHhQS2uQkR2A3wRajq51MQ+WCqm8kWIxfxFpOMQl4SEPIRwiz5R8vtIbiyE8bLHDZQzDKQDBqMe0xzaXPbZKJ+TXLxa/SyiCQCZcJO0wyVQtXcsEQJa/kt6eS1przxf6Sf518sLou3+1zTC+VvqeqFeBvwmd3M2QPH8EAm9I2vnZvsD5ylU4gis6GXTjo7NGcJPQvznTDLu4RWYHiOrVZhi4E0hMAM=; x-main=izrB8xeVkrz9r7b6pdCdl2@2b@DiBAdQqwBvH?RkeOoCsSRYdA5nrhjCVufwMiXu; at-main=Atza|IwEBIMlWphT1FziftaDL2oW1YY6COQI1rx1RKG83TFKnurkkR6EvIvBSPNcSAcwOfWc0vdCtUxuyz2jmfTVmGruzVyoeNHaslZtVMP6MjKCmiVIF-woseNpGJE0TsBgDWRjTAE0j1Qe8sd5YXZ55xKMJrdF93jVzMPG4mj2I0X1z7GtZgmvQVFjl24IVTBDmIE-BHDcdc61Q5vZb_8fYMuEN0XERFlurww-0szsBcjZ7hMrGmbVd7q1il89R8jwDG5QtlpI75SeKfI-s5DPiObaAsuroD2vCTMiMHZfaVlNg89zHMZ6GR1w8Cu1KJJu-r1mG51xmFzOtBYAeVsJiF6F9f3VRs_XV0hs6LwS2qmASVDRVAEbKU-t74B9g4TaDsp1nOjq2CAX6uFLm1e-QA-I4pZfw; sess-at-main=u5Vv5dhunqT7LldvUN6iu0eqWaBsvp1pQaWD7QUOY+Y=; csrf=-718429675; ', 'Origin': 'https://alexa.amazon.com', 'csrf': '-718429675'} 2020-03-03 14:18:36 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket created: 2020-03-03 14:18:36 DEBUG (MainThread) [alexapy.alexawebsocket] Connecting to wss://dp-gw-na-js.amazon.com/?x-amz-device-type=ALEGCNGL9K0HM&x-amz-device-serial=131-1488076-9651502-1583241516000 with {'User-Agent': 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36', 'Accept': 'text/html,application/xhtml+xml, application/xml;q=0.9,*/*;q=0.8', 'Accept-Language': '*', 'Referer': 'https://alexa.amazon.com/spa/index.html', 'Cookie': 'session-id=137-4104098-5510033; session-id-time=2213718337l; ubid-main=131-1488076-9651502; session-token=nKB90uVVnHIQRnHhQS2uQkR2A3wRajq51MQ+WCqm8kWIxfxFpOMQl4SEPIRwiz5R8vtIbiyE8bLHDZQzDKQDBqMe0xzaXPbZKJ+TXLxa/SyiCQCZcJO0wyVQtXcsEQJa/kt6eS1przxf6Sf518sLou3+1zTC+VvqeqFeBvwmd3M2QPH8EAm9I2vnZvsD5ylU4gis6GXTjo7NGcJPQvznTDLu4RWYHiOrVZhi4E0hMAM=; x-main=izrB8xeVkrz9r7b6pdCdl2@2b@DiBAdQqwBvH?RkeOoCsSRYdA5nrhjCVufwMiXu; at-main=Atza|IwEBIMlWphT1FziftaDL2oW1YY6COQI1rx1RKG83TFKnurkkR6EvIvBSPNcSAcwOfWc0vdCtUxuyz2jmfTVmGruzVyoeNHaslZtVMP6MjKCmiVIF-woseNpGJE0TsBgDWRjTAE0j1Qe8sd5YXZ55xKMJrdF93jVzMPG4mj2I0X1z7GtZgmvQVFjl24IVTBDmIE-BHDcdc61Q5vZb_8fYMuEN0XERFlurww-0szsBcjZ7hMrGmbVd7q1il89R8jwDG5QtlpI75SeKfI-s5DPiObaAsuroD2vCTMiMHZfaVlNg89zHMZ6GR1w8Cu1KJJu-r1mG51xmFzOtBYAeVsJiF6F9f3VRs_XV0hs6LwS2qmASVDRVAEbKU-t74B9g4TaDsp1nOjq2CAX6uFLm1e-QA-I4pZfw; sess-at-main=u5Vv5dhunqT7LldvUN6iu0eqWaBsvp1pQaWD7QUOY+Y=; csrf=-718429675; ', 'Origin': 'https://alexa.amazon.com', 'csrf': '-718429675'} 2020-03-03 14:18:37 DEBUG (MainThread) [alexapy.alexawebsocket] Initating Async Handshake. 2020-03-03 14:18:37 DEBUG (MainThread) [alexapy.alexawebsocket] Starting message parsing loop. 2020-03-03 14:18:37 DEBUG (MainThread) [alexapy.alexawebsocket] Initating Async Handshake. 2020-03-03 14:18:37 DEBUG (MainThread) [alexapy.alexawebsocket] Starting message parsing loop. 2020-03-03 14:18:37 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding WebSocket Handshake MSG. 2020-03-03 14:18:37 DEBUG (MainThread) [alexapy.alexawebsocket] Received WebSocket: 0xbafef3f3 0x000000cd {"protocolName":"A:H","parameters":{"AlphaProtocolHandler.supportedEncodings":"GZIP","AlphaProtocolHandler.maxFragmentSize":"16000","AlphaProtocolHandler.receiveWindowSize":"16"}}TUNE 2020-03-03 14:18:37 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding WebSocket Handshake MSG. 2020-03-03 14:18:37 DEBUG (MainThread) [alexapy.alexawebsocket] Received WebSocket: 0xbafef3f3 0x000000cd {"protocolName":"A:H","parameters":{"AlphaProtocolHandler.supportedEncodings":"GZIP","AlphaProtocolHandler.maxFragmentSize":"16000","AlphaProtocolHandler.receiveWindowSize":"16"}}TUNE 2020-03-03 14:18:37 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding Gateway Handshake MSG. 2020-03-03 14:18:37 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding Gateway Handshake MSG. 2020-03-03 14:18:37 DEBUG (MainThread) [alexapy.alexawebsocket] WebSocket Connection Closed. result=None> 2020-03-03 14:18:37 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding Gateway Register MSG. 2020-03-03 14:18:37 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket closed; retries exceeded; polling 2020-03-03 14:18:37 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket closed; reconnect #3 in 40s 2020-03-03 14:18:37 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding Gateway Register MSG. 2020-03-03 14:18:37 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket succesfully connected 2020-03-03 14:18:37 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket closed; retries exceeded; polling 2020-03-03 14:18:37 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket closed; reconnect #2 in 20s 2020-03-03 14:18:37 DEBUG (MainThread) [alexapy.alexawebsocket] Received WebSocket: MSG 0x00000361 0x427dfd18 f 0x00000001 0xd0b8e6ab 0x000000b9 ACK 0x00000003 1.0 0x00000024 01e09e62-f504-476c-85c8-9c97c8da26ed 0x00000064 0x0000016978ff598c 0x00000170a08c6f0b END FABE 2020-03-03 14:18:37 DEBUG (MainThread) [alexapy.alexawebsocket] Received ACK MSG for Registration. 2020-03-03 14:18:57 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket created: 2020-03-03 14:18:57 DEBUG (MainThread) [alexapy.alexawebsocket] Connecting to wss://dp-gw-na-js.amazon.com/?x-amz-device-type=ALEGCNGL9K0HM&x-amz-device-serial=131-1488076-9651502-1583241537000 with {'User-Agent': 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36', 'Accept': 'text/html,application/xhtml+xml, application/xml;q=0.9,*/*;q=0.8', 'Accept-Language': '*', 'Referer': 'https://alexa.amazon.com/spa/index.html', 'Cookie': 'session-id=137-4104098-5510033; session-id-time=2213718337l; ubid-main=131-1488076-9651502; session-token=nKB90uVVnHIQRnHhQS2uQkR2A3wRajq51MQ+WCqm8kWIxfxFpOMQl4SEPIRwiz5R8vtIbiyE8bLHDZQzDKQDBqMe0xzaXPbZKJ+TXLxa/SyiCQCZcJO0wyVQtXcsEQJa/kt6eS1przxf6Sf518sLou3+1zTC+VvqeqFeBvwmd3M2QPH8EAm9I2vnZvsD5ylU4gis6GXTjo7NGcJPQvznTDLu4RWYHiOrVZhi4E0hMAM=; x-main=izrB8xeVkrz9r7b6pdCdl2@2b@DiBAdQqwBvH?RkeOoCsSRYdA5nrhjCVufwMiXu; at-main=Atza|IwEBIMlWphT1FziftaDL2oW1YY6COQI1rx1RKG83TFKnurkkR6EvIvBSPNcSAcwOfWc0vdCtUxuyz2jmfTVmGruzVyoeNHaslZtVMP6MjKCmiVIF-woseNpGJE0TsBgDWRjTAE0j1Qe8sd5YXZ55xKMJrdF93jVzMPG4mj2I0X1z7GtZgmvQVFjl24IVTBDmIE-BHDcdc61Q5vZb_8fYMuEN0XERFlurww-0szsBcjZ7hMrGmbVd7q1il89R8jwDG5QtlpI75SeKfI-s5DPiObaAsuroD2vCTMiMHZfaVlNg89zHMZ6GR1w8Cu1KJJu-r1mG51xmFzOtBYAeVsJiF6F9f3VRs_XV0hs6LwS2qmASVDRVAEbKU-t74B9g4TaDsp1nOjq2CAX6uFLm1e-QA-I4pZfw; sess-at-main=u5Vv5dhunqT7LldvUN6iu0eqWaBsvp1pQaWD7QUOY+Y=; csrf=-718429675; ', 'Origin': 'https://alexa.amazon.com', 'csrf': '-718429675'} 2020-03-03 14:18:57 DEBUG (MainThread) [alexapy.alexawebsocket] Initating Async Handshake. 2020-03-03 14:18:57 DEBUG (MainThread) [alexapy.alexawebsocket] Starting message parsing loop. 2020-03-03 14:18:58 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding WebSocket Handshake MSG. 2020-03-03 14:18:58 DEBUG (MainThread) [alexapy.alexawebsocket] Received WebSocket: 0xbafef3f3 0x000000cd {"protocolName":"A:H","parameters":{"AlphaProtocolHandler.supportedEncodings":"GZIP","AlphaProtocolHandler.maxFragmentSize":"16000","AlphaProtocolHandler.receiveWindowSize":"16"}}TUNE 2020-03-03 14:18:58 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding Gateway Handshake MSG. 2020-03-03 14:18:58 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding Gateway Register MSG. 2020-03-03 14:18:58 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket succesfully connected 2020-03-03 14:18:58 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket closed; retries exceeded; polling 2020-03-03 14:18:58 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket closed; reconnect #3 in 40s 2020-03-03 14:18:58 DEBUG (MainThread) [alexapy.alexawebsocket] Received WebSocket: MSG 0x00000361 0x28bb309c f 0x00000001 0x264dbbe1 0x000000b9 ACK 0x00000003 1.0 0x00000024 01e09e62-f504-476c-85c8-9c97c8da26ed 0x00000064 0x0000016978ff598c 0x00000170a08cc03d END FABE 2020-03-03 14:18:58 DEBUG (MainThread) [alexapy.alexawebsocket] Received ACK MSG for Registration. 2020-03-03 14:19:07 ERROR (MainThread) [alexapy.alexawebsocket] WebSocket Error: 2020-03-03 14:19:07 DEBUG (MainThread) [alexapy.alexawebsocket] WebSocket Connection Closed. result=None> 2020-03-03 14:19:07 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Received websocket error #0 2020-03-03 14:19:16 ERROR (MainThread) [alexapy.alexawebsocket] WebSocket Error: 2020-03-03 14:19:16 DEBUG (MainThread) [alexapy.alexawebsocket] WebSocket Connection Closed. result=None> 2020-03-03 14:19:16 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Received websocket error #1 2020-03-03 14:19:17 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket created: 2020-03-03 14:19:17 DEBUG (MainThread) [alexapy.alexawebsocket] Connecting to wss://dp-gw-na-js.amazon.com/?x-amz-device-type=ALEGCNGL9K0HM&x-amz-device-serial=131-1488076-9651502-1583241557000 with {'User-Agent': 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36', 'Accept': 'text/html,application/xhtml+xml, application/xml;q=0.9,*/*;q=0.8', 'Accept-Language': '*', 'Referer': 'https://alexa.amazon.com/spa/index.html', 'Cookie': 'session-id=137-4104098-5510033; session-id-time=2213718337l; ubid-main=131-1488076-9651502; session-token=nKB90uVVnHIQRnHhQS2uQkR2A3wRajq51MQ+WCqm8kWIxfxFpOMQl4SEPIRwiz5R8vtIbiyE8bLHDZQzDKQDBqMe0xzaXPbZKJ+TXLxa/SyiCQCZcJO0wyVQtXcsEQJa/kt6eS1przxf6Sf518sLou3+1zTC+VvqeqFeBvwmd3M2QPH8EAm9I2vnZvsD5ylU4gis6GXTjo7NGcJPQvznTDLu4RWYHiOrVZhi4E0hMAM=; x-main=izrB8xeVkrz9r7b6pdCdl2@2b@DiBAdQqwBvH?RkeOoCsSRYdA5nrhjCVufwMiXu; at-main=Atza|IwEBIMlWphT1FziftaDL2oW1YY6COQI1rx1RKG83TFKnurkkR6EvIvBSPNcSAcwOfWc0vdCtUxuyz2jmfTVmGruzVyoeNHaslZtVMP6MjKCmiVIF-woseNpGJE0TsBgDWRjTAE0j1Qe8sd5YXZ55xKMJrdF93jVzMPG4mj2I0X1z7GtZgmvQVFjl24IVTBDmIE-BHDcdc61Q5vZb_8fYMuEN0XERFlurww-0szsBcjZ7hMrGmbVd7q1il89R8jwDG5QtlpI75SeKfI-s5DPiObaAsuroD2vCTMiMHZfaVlNg89zHMZ6GR1w8Cu1KJJu-r1mG51xmFzOtBYAeVsJiF6F9f3VRs_XV0hs6LwS2qmASVDRVAEbKU-t74B9g4TaDsp1nOjq2CAX6uFLm1e-QA-I4pZfw; sess-at-main=u5Vv5dhunqT7LldvUN6iu0eqWaBsvp1pQaWD7QUOY+Y=; csrf=-718429675; ', 'Origin': 'https://alexa.amazon.com', 'csrf': '-718429675'} 2020-03-03 14:19:17 DEBUG (MainThread) [alexapy.alexawebsocket] Initating Async Handshake. 2020-03-03 14:19:17 DEBUG (MainThread) [alexapy.alexawebsocket] Starting message parsing loop. 2020-03-03 14:19:18 DEBUG (MainThread) [alexapy.alexawebsocket] Received WebSocket: 0xbafef3f3 0x000000cd {"protocolName":"A:H","parameters":{"AlphaProtocolHandler.supportedEncodings":"GZIP","AlphaProtocolHandler.maxFragmentSize":"16000","AlphaProtocolHandler.receiveWindowSize":"16"}}TUNE 2020-03-03 14:19:18 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding WebSocket Handshake MSG. 2020-03-03 14:19:18 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding Gateway Handshake MSG. 2020-03-03 14:19:18 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding Gateway Register MSG. 2020-03-03 14:19:18 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket succesfully connected 2020-03-03 14:19:18 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket closed; retries exceeded; polling 2020-03-03 14:19:18 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket closed; reconnect #4 in 80s 2020-03-03 14:19:18 DEBUG (MainThread) [alexapy.alexawebsocket] Received WebSocket: MSG 0x00000361 0x3b3934cd f 0x00000001 0xcb83e8a9 0x000000b9 ACK 0x00000003 1.0 0x00000024 01e09e62-f504-476c-85c8-9c97c8da26ed 0x00000064 0x0000016978ff598c 0x00000170a08d0e21 END FABE 2020-03-03 14:19:18 DEBUG (MainThread) [alexapy.alexawebsocket] Received ACK MSG for Registration. 2020-03-03 14:19:27 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket created: 2020-03-03 14:19:27 DEBUG (MainThread) [alexapy.alexawebsocket] Connecting to wss://dp-gw-na-js.amazon.com/?x-amz-device-type=ALEGCNGL9K0HM&x-amz-device-serial=131-1488076-9651502-1583241567000 with {'User-Agent': 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36', 'Accept': 'text/html,application/xhtml+xml, application/xml;q=0.9,*/*;q=0.8', 'Accept-Language': '*', 'Referer': 'https://alexa.amazon.com/spa/index.html', 'Cookie': 'session-id=137-4104098-5510033; session-id-time=2213718337l; ubid-main=131-1488076-9651502; session-token=nKB90uVVnHIQRnHhQS2uQkR2A3wRajq51MQ+WCqm8kWIxfxFpOMQl4SEPIRwiz5R8vtIbiyE8bLHDZQzDKQDBqMe0xzaXPbZKJ+TXLxa/SyiCQCZcJO0wyVQtXcsEQJa/kt6eS1przxf6Sf518sLou3+1zTC+VvqeqFeBvwmd3M2QPH8EAm9I2vnZvsD5ylU4gis6GXTjo7NGcJPQvznTDLu4RWYHiOrVZhi4E0hMAM=; x-main=izrB8xeVkrz9r7b6pdCdl2@2b@DiBAdQqwBvH?RkeOoCsSRYdA5nrhjCVufwMiXu; at-main=Atza|IwEBIMlWphT1FziftaDL2oW1YY6COQI1rx1RKG83TFKnurkkR6EvIvBSPNcSAcwOfWc0vdCtUxuyz2jmfTVmGruzVyoeNHaslZtVMP6MjKCmiVIF-woseNpGJE0TsBgDWRjTAE0j1Qe8sd5YXZ55xKMJrdF93jVzMPG4mj2I0X1z7GtZgmvQVFjl24IVTBDmIE-BHDcdc61Q5vZb_8fYMuEN0XERFlurww-0szsBcjZ7hMrGmbVd7q1il89R8jwDG5QtlpI75SeKfI-s5DPiObaAsuroD2vCTMiMHZfaVlNg89zHMZ6GR1w8Cu1KJJu-r1mG51xmFzOtBYAeVsJiF6F9f3VRs_XV0hs6LwS2qmASVDRVAEbKU-t74B9g4TaDsp1nOjq2CAX6uFLm1e-QA-I4pZfw; sess-at-main=u5Vv5dhunqT7LldvUN6iu0eqWaBsvp1pQaWD7QUOY+Y=; csrf=-718429675; ', 'Origin': 'https://alexa.amazon.com', 'csrf': '-718429675'} 2020-03-03 14:19:27 DEBUG (MainThread) [alexapy.alexawebsocket] Initating Async Handshake. 2020-03-03 14:19:27 DEBUG (MainThread) [alexapy.alexawebsocket] Starting message parsing loop. 2020-03-03 14:19:28 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding WebSocket Handshake MSG. 2020-03-03 14:19:28 DEBUG (MainThread) [alexapy.alexawebsocket] Received WebSocket: 0xbafef3f3 0x000000cd {"protocolName":"A:H","parameters":{"AlphaProtocolHandler.supportedEncodings":"GZIP","AlphaProtocolHandler.maxFragmentSize":"16000","AlphaProtocolHandler.receiveWindowSize":"16"}}TUNE 2020-03-03 14:19:28 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding Gateway Handshake MSG. 2020-03-03 14:19:28 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding Gateway Register MSG. 2020-03-03 14:19:28 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket succesfully connected 2020-03-03 14:19:28 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket closed; retries exceeded; polling 2020-03-03 14:19:28 DEBUG (MainThread) [alexapy.alexawebsocket] Received WebSocket: MSG 0x00000361 0x2e3df81d f 0x00000001 0xf985f0aa 0x000000b9 ACK 0x00000003 1.0 0x00000024 01e09e62-f504-476c-85c8-9c97c8da26ed 0x00000064 0x0000016978ff598c 0x00000170a08d353d END FABE 2020-03-03 14:19:28 DEBUG (MainThread) [alexapy.alexawebsocket] Received ACK MSG for Registration. 2020-03-03 14:19:28 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/devices-v2/device returned 200:OK:application/json 2020-03-03 14:19:29 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/bluetooth?cached=false returned 200:OK:application/json 2020-03-03 14:19:29 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/device-preferences returned 200:OK:application/json 2020-03-03 14:19:29 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/dnd/device-status-list returned 200:OK:application/json 2020-03-03 14:19:30 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/notifications returned 200:OK:application/json 2020-03-03 14:19:30 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Found 7 devices, 7 bluetooth 2020-03-03 14:19:30 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/notifications returned 200:OK:application/json 2020-03-03 14:19:30 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Updated 0 notifications for 1 devices at 2020-03-03 14:19:30.510758+01:00 2020-03-03 14:19:30 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/activities?startTime=&size=10&offset=1 returned 200:OK:application/json 2020-03-03 14:19:30 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Updated last_called: {'serialNumber': 'G************H3S', 'timestamp': 1583217507466} 2020-03-03 14:19:30 DEBUG (MainThread) [custom_components.alexa_media] TV: Locale en-us timezone None 2020-03-03 14:19:30 DEBUG (MainThread) [custom_components.alexa_media] TV: DND False 2020-03-03 14:19:30 DEBUG (MainThread) [custom_components.alexa_media] Bathroom: Locale en-us timezone None 2020-03-03 14:19:30 DEBUG (MainThread) [custom_components.alexa_media] Bathroom: DND False 2020-03-03 14:19:30 DEBUG (MainThread) [custom_components.alexa_media] Kitchen: Locale en-us timezone None 2020-03-03 14:19:30 DEBUG (MainThread) [custom_components.alexa_media] Kitchen: DND False 2020-03-03 14:19:30 DEBUG (MainThread) [custom_components.alexa_media] Livingroom: Locale en-us timezone None 2020-03-03 14:19:30 DEBUG (MainThread) [custom_components.alexa_media] Livingroom: DND False 2020-03-03 14:19:30 DEBUG (MainThread) [custom_components.alexa_media] Frank's Echo Dot: Locale en-us timezone Europe/Copenhagen 2020-03-03 14:19:30 DEBUG (MainThread) [custom_components.alexa_media] Frank's Echo Dot: DND False 2020-03-03 14:19:30 DEBUG (MainThread) [custom_components.alexa_media] This Device: Locale en-gb timezone Europe/Copenhagen 2020-03-03 14:19:30 DEBUG (MainThread) [custom_components.alexa_media] This Device: DND False 2020-03-03 14:19:30 DEBUG (MainThread) [custom_components.alexa_media] Frank's Alexa Apps: Locale en-us timezone None 2020-03-03 14:19:30 DEBUG (MainThread) [custom_components.alexa_media] Frank's Alexa Apps: DND False 2020-03-03 14:19:30 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Existing: [, , , , , , ] New: []; Filtered out by not being in include: [] or in exclude: [] 2020-03-03 14:19:37 ERROR (MainThread) [alexapy.alexawebsocket] WebSocket Error: 2020-03-03 14:19:37 DEBUG (MainThread) [alexapy.alexawebsocket] WebSocket Connection Closed. result=None> 2020-03-03 14:19:37 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Received websocket error #0 2020-03-03 14:19:38 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket created: 2020-03-03 14:19:38 DEBUG (MainThread) [alexapy.alexawebsocket] Connecting to wss://dp-gw-na-js.amazon.com/?x-amz-device-type=ALEGCNGL9K0HM&x-amz-device-serial=131-1488076-9651502-1583241578000 with {'User-Agent': 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36', 'Accept': 'text/html,application/xhtml+xml, application/xml;q=0.9,*/*;q=0.8', 'Accept-Language': '*', 'Referer': 'https://alexa.amazon.com/spa/index.html', 'Cookie': 'session-id=137-4104098-5510033; session-id-time=2213718337l; ubid-main=131-1488076-9651502; session-token=nKB90uVVnHIQRnHhQS2uQkR2A3wRajq51MQ+WCqm8kWIxfxFpOMQl4SEPIRwiz5R8vtIbiyE8bLHDZQzDKQDBqMe0xzaXPbZKJ+TXLxa/SyiCQCZcJO0wyVQtXcsEQJa/kt6eS1przxf6Sf518sLou3+1zTC+VvqeqFeBvwmd3M2QPH8EAm9I2vnZvsD5ylU4gis6GXTjo7NGcJPQvznTDLu4RWYHiOrVZhi4E0hMAM=; x-main=izrB8xeVkrz9r7b6pdCdl2@2b@DiBAdQqwBvH?RkeOoCsSRYdA5nrhjCVufwMiXu; at-main=Atza|IwEBIMlWphT1FziftaDL2oW1YY6COQI1rx1RKG83TFKnurkkR6EvIvBSPNcSAcwOfWc0vdCtUxuyz2jmfTVmGruzVyoeNHaslZtVMP6MjKCmiVIF-woseNpGJE0TsBgDWRjTAE0j1Qe8sd5YXZ55xKMJrdF93jVzMPG4mj2I0X1z7GtZgmvQVFjl24IVTBDmIE-BHDcdc61Q5vZb_8fYMuEN0XERFlurww-0szsBcjZ7hMrGmbVd7q1il89R8jwDG5QtlpI75SeKfI-s5DPiObaAsuroD2vCTMiMHZfaVlNg89zHMZ6GR1w8Cu1KJJu-r1mG51xmFzOtBYAeVsJiF6F9f3VRs_XV0hs6LwS2qmASVDRVAEbKU-t74B9g4TaDsp1nOjq2CAX6uFLm1e-QA-I4pZfw; sess-at-main=u5Vv5dhunqT7LldvUN6iu0eqWaBsvp1pQaWD7QUOY+Y=; csrf=-718429675; ', 'Origin': 'https://alexa.amazon.com', 'csrf': '-718429675'} 2020-03-03 14:19:38 DEBUG (MainThread) [alexapy.alexawebsocket] Initating Async Handshake. 2020-03-03 14:19:38 DEBUG (MainThread) [alexapy.alexawebsocket] Starting message parsing loop. 2020-03-03 14:19:38 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding WebSocket Handshake MSG. 2020-03-03 14:19:38 DEBUG (MainThread) [alexapy.alexawebsocket] Received WebSocket: 0xbafef3f3 0x000000cd {"protocolName":"A:H","parameters":{"AlphaProtocolHandler.supportedEncodings":"GZIP","AlphaProtocolHandler.maxFragmentSize":"16000","AlphaProtocolHandler.receiveWindowSize":"16"}}TUNE 2020-03-03 14:19:38 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding Gateway Handshake MSG. 2020-03-03 14:19:39 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding Gateway Register MSG. 2020-03-03 14:19:39 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket succesfully connected 2020-03-03 14:19:39 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket closed; retries exceeded; polling 2020-03-03 14:19:39 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket closed; reconnect #4 in 80s 2020-03-03 14:19:39 DEBUG (MainThread) [alexapy.alexawebsocket] Received WebSocket: MSG 0x00000361 0x2e71cb32 f 0x00000001 0x96b41d7c 0x000000b9 ACK 0x00000003 1.0 0x00000024 01e09e62-f504-476c-85c8-9c97c8da26ed 0x00000064 0x0000016978ff598c 0x00000170a08d5f60 END FABE 2020-03-03 14:19:39 DEBUG (MainThread) [alexapy.alexawebsocket] Received ACK MSG for Registration. 2020-03-03 14:19:58 ERROR (MainThread) [alexapy.alexawebsocket] WebSocket Error: 2020-03-03 14:19:58 DEBUG (MainThread) [alexapy.alexawebsocket] WebSocket Connection Closed. result=None> 2020-03-03 14:19:58 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Received websocket error #0 2020-03-03 14:19:58 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket closed; reconnect #1 in 10s 2020-03-03 14:20:08 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket created: 2020-03-03 14:20:08 DEBUG (MainThread) [alexapy.alexawebsocket] Connecting to wss://dp-gw-na-js.amazon.com/?x-amz-device-type=ALEGCNGL9K0HM&x-amz-device-serial=131-1488076-9651502-1583241608000 with {'User-Agent': 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36', 'Accept': 'text/html,application/xhtml+xml, application/xml;q=0.9,*/*;q=0.8', 'Accept-Language': '*', 'Referer': 'https://alexa.amazon.com/spa/index.html', 'Cookie': 'session-id=137-4104098-5510033; session-id-time=2213718337l; ubid-main=131-1488076-9651502; session-token=nKB90uVVnHIQRnHhQS2uQkR2A3wRajq51MQ+WCqm8kWIxfxFpOMQl4SEPIRwiz5R8vtIbiyE8bLHDZQzDKQDBqMe0xzaXPbZKJ+TXLxa/SyiCQCZcJO0wyVQtXcsEQJa/kt6eS1przxf6Sf518sLou3+1zTC+VvqeqFeBvwmd3M2QPH8EAm9I2vnZvsD5ylU4gis6GXTjo7NGcJPQvznTDLu4RWYHiOrVZhi4E0hMAM=; x-main=izrB8xeVkrz9r7b6pdCdl2@2b@DiBAdQqwBvH?RkeOoCsSRYdA5nrhjCVufwMiXu; at-main=Atza|IwEBIMlWphT1FziftaDL2oW1YY6COQI1rx1RKG83TFKnurkkR6EvIvBSPNcSAcwOfWc0vdCtUxuyz2jmfTVmGruzVyoeNHaslZtVMP6MjKCmiVIF-woseNpGJE0TsBgDWRjTAE0j1Qe8sd5YXZ55xKMJrdF93jVzMPG4mj2I0X1z7GtZgmvQVFjl24IVTBDmIE-BHDcdc61Q5vZb_8fYMuEN0XERFlurww-0szsBcjZ7hMrGmbVd7q1il89R8jwDG5QtlpI75SeKfI-s5DPiObaAsuroD2vCTMiMHZfaVlNg89zHMZ6GR1w8Cu1KJJu-r1mG51xmFzOtBYAeVsJiF6F9f3VRs_XV0hs6LwS2qmASVDRVAEbKU-t74B9g4TaDsp1nOjq2CAX6uFLm1e-QA-I4pZfw; sess-at-main=u5Vv5dhunqT7LldvUN6iu0eqWaBsvp1pQaWD7QUOY+Y=; csrf=-718429675; ', 'Origin': 'https://alexa.amazon.com', 'csrf': '-718429675'} 2020-03-03 14:20:08 DEBUG (MainThread) [alexapy.alexawebsocket] Initating Async Handshake. 2020-03-03 14:20:08 DEBUG (MainThread) [alexapy.alexawebsocket] Starting message parsing loop. 2020-03-03 14:20:08 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding WebSocket Handshake MSG. 2020-03-03 14:20:08 DEBUG (MainThread) [alexapy.alexawebsocket] Received WebSocket: 0xbafef3f3 0x000000cd {"protocolName":"A:H","parameters":{"AlphaProtocolHandler.supportedEncodings":"GZIP","AlphaProtocolHandler.maxFragmentSize":"16000","AlphaProtocolHandler.receiveWindowSize":"16"}}TUNE 2020-03-03 14:20:09 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding Gateway Handshake MSG. 2020-03-03 14:20:09 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding Gateway Register MSG. 2020-03-03 14:20:09 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket succesfully connected 2020-03-03 14:20:09 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket closed; retries exceeded; polling 2020-03-03 14:20:09 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket closed; reconnect #2 in 20s 2020-03-03 14:20:09 DEBUG (MainThread) [alexapy.alexawebsocket] Received WebSocket: MSG 0x00000361 0x5f97a1e7 f 0x00000001 0xd0831bb5 0x000000b9 ACK 0x00000003 1.0 0x00000024 01e09e62-f504-476c-85c8-9c97c8da26ed 0x00000064 0x0000016978ff598c 0x00000170a08dd4d5 END FABE 2020-03-03 14:20:09 DEBUG (MainThread) [alexapy.alexawebsocket] Received ACK MSG for Registration. 2020-03-03 14:20:18 ERROR (MainThread) [alexapy.alexawebsocket] WebSocket Error: 2020-03-03 14:20:18 DEBUG (MainThread) [alexapy.alexawebsocket] WebSocket Connection Closed. result=None> 2020-03-03 14:20:18 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Received websocket error #0 2020-03-03 14:20:28 ERROR (MainThread) [alexapy.alexawebsocket] WebSocket Error: 2020-03-03 14:20:28 DEBUG (MainThread) [alexapy.alexawebsocket] WebSocket Connection Closed. result=None> 2020-03-03 14:20:28 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Received websocket error #1 2020-03-03 14:20:29 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket created: 2020-03-03 14:20:29 DEBUG (MainThread) [alexapy.alexawebsocket] Connecting to wss://dp-gw-na-js.amazon.com/?x-amz-device-type=ALEGCNGL9K0HM&x-amz-device-serial=131-1488076-9651502-1583241629000 with {'User-Agent': 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36', 'Accept': 'text/html,application/xhtml+xml, application/xml;q=0.9,*/*;q=0.8', 'Accept-Language': '*', 'Referer': 'https://alexa.amazon.com/spa/index.html', 'Cookie': 'session-id=137-4104098-5510033; session-id-time=2213718337l; ubid-main=131-1488076-9651502; session-token=nKB90uVVnHIQRnHhQS2uQkR2A3wRajq51MQ+WCqm8kWIxfxFpOMQl4SEPIRwiz5R8vtIbiyE8bLHDZQzDKQDBqMe0xzaXPbZKJ+TXLxa/SyiCQCZcJO0wyVQtXcsEQJa/kt6eS1przxf6Sf518sLou3+1zTC+VvqeqFeBvwmd3M2QPH8EAm9I2vnZvsD5ylU4gis6GXTjo7NGcJPQvznTDLu4RWYHiOrVZhi4E0hMAM=; x-main=izrB8xeVkrz9r7b6pdCdl2@2b@DiBAdQqwBvH?RkeOoCsSRYdA5nrhjCVufwMiXu; at-main=Atza|IwEBIMlWphT1FziftaDL2oW1YY6COQI1rx1RKG83TFKnurkkR6EvIvBSPNcSAcwOfWc0vdCtUxuyz2jmfTVmGruzVyoeNHaslZtVMP6MjKCmiVIF-woseNpGJE0TsBgDWRjTAE0j1Qe8sd5YXZ55xKMJrdF93jVzMPG4mj2I0X1z7GtZgmvQVFjl24IVTBDmIE-BHDcdc61Q5vZb_8fYMuEN0XERFlurww-0szsBcjZ7hMrGmbVd7q1il89R8jwDG5QtlpI75SeKfI-s5DPiObaAsuroD2vCTMiMHZfaVlNg89zHMZ6GR1w8Cu1KJJu-r1mG51xmFzOtBYAeVsJiF6F9f3VRs_XV0hs6LwS2qmASVDRVAEbKU-t74B9g4TaDsp1nOjq2CAX6uFLm1e-QA-I4pZfw; sess-at-main=u5Vv5dhunqT7LldvUN6iu0eqWaBsvp1pQaWD7QUOY+Y=; csrf=-718429675; ', 'Origin': 'https://alexa.amazon.com', 'csrf': '-718429675'} 2020-03-03 14:20:29 DEBUG (MainThread) [alexapy.alexawebsocket] Initating Async Handshake. 2020-03-03 14:20:29 DEBUG (MainThread) [alexapy.alexawebsocket] Starting message parsing loop. 2020-03-03 14:20:29 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding WebSocket Handshake MSG. 2020-03-03 14:20:29 DEBUG (MainThread) [alexapy.alexawebsocket] Received WebSocket: 0xbafef3f3 0x000000cd {"protocolName":"A:H","parameters":{"AlphaProtocolHandler.supportedEncodings":"GZIP","AlphaProtocolHandler.maxFragmentSize":"16000","AlphaProtocolHandler.receiveWindowSize":"16"}}TUNE 2020-03-03 14:20:29 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding Gateway Handshake MSG. 2020-03-03 14:20:29 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding Gateway Register MSG. 2020-03-03 14:20:29 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket succesfully connected 2020-03-03 14:20:29 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket closed; retries exceeded; polling 2020-03-03 14:20:29 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket closed; reconnect #3 in 40s 2020-03-03 14:20:29 DEBUG (MainThread) [alexapy.alexawebsocket] Received WebSocket: MSG 0x00000361 0x620012a7 f 0x00000001 0x9754e8d8 0x000000b9 ACK 0x00000003 1.0 0x00000024 01e09e62-f504-476c-85c8-9c97c8da26ed 0x00000064 0x0000016978ff598c 0x00000170a08e25dd END FABE 2020-03-03 14:20:29 DEBUG (MainThread) [alexapy.alexawebsocket] Received ACK MSG for Registration. 2020-03-03 14:20:31 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/devices-v2/device returned 200:OK:application/json 2020-03-03 14:20:31 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/bluetooth?cached=false returned 200:OK:application/json 2020-03-03 14:20:32 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/device-preferences returned 200:OK:application/json 2020-03-03 14:20:32 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/dnd/device-status-list returned 200:OK:application/json 2020-03-03 14:20:33 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/notifications returned 200:OK:application/json 2020-03-03 14:20:33 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Found 7 devices, 7 bluetooth 2020-03-03 14:20:33 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/notifications returned 200:OK:application/json 2020-03-03 14:20:33 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Updated 0 notifications for 1 devices at 2020-03-03 14:20:33.605924+01:00 2020-03-03 14:20:33 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/activities?startTime=&size=10&offset=1 returned 200:OK:application/json 2020-03-03 14:20:33 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Updated last_called: {'serialNumber': 'G************H3S', 'timestamp': 1583217507466} 2020-03-03 14:20:33 DEBUG (MainThread) [custom_components.alexa_media] TV: Locale en-us timezone None 2020-03-03 14:20:33 DEBUG (MainThread) [custom_components.alexa_media] TV: DND False 2020-03-03 14:20:33 DEBUG (MainThread) [custom_components.alexa_media] Bathroom: Locale en-us timezone None 2020-03-03 14:20:33 DEBUG (MainThread) [custom_components.alexa_media] Bathroom: DND False 2020-03-03 14:20:33 DEBUG (MainThread) [custom_components.alexa_media] Kitchen: Locale en-us timezone None 2020-03-03 14:20:33 DEBUG (MainThread) [custom_components.alexa_media] Kitchen: DND False 2020-03-03 14:20:33 DEBUG (MainThread) [custom_components.alexa_media] Livingroom: Locale en-us timezone None 2020-03-03 14:20:33 DEBUG (MainThread) [custom_components.alexa_media] Livingroom: DND False 2020-03-03 14:20:33 DEBUG (MainThread) [custom_components.alexa_media] Frank's Echo Dot: Locale en-us timezone Europe/Copenhagen 2020-03-03 14:20:33 DEBUG (MainThread) [custom_components.alexa_media] Frank's Echo Dot: DND False 2020-03-03 14:20:33 DEBUG (MainThread) [custom_components.alexa_media] This Device: Locale en-gb timezone Europe/Copenhagen 2020-03-03 14:20:33 DEBUG (MainThread) [custom_components.alexa_media] This Device: DND False 2020-03-03 14:20:33 DEBUG (MainThread) [custom_components.alexa_media] Frank's Alexa Apps: Locale en-us timezone None 2020-03-03 14:20:33 DEBUG (MainThread) [custom_components.alexa_media] Frank's Alexa Apps: DND False 2020-03-03 14:20:33 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Existing: [, , , , , , ] New: []; Filtered out by not being in include: [] or in exclude: [] 2020-03-03 14:20:38 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket created: 2020-03-03 14:20:38 DEBUG (MainThread) [alexapy.alexawebsocket] Connecting to wss://dp-gw-na-js.amazon.com/?x-amz-device-type=ALEGCNGL9K0HM&x-amz-device-serial=131-1488076-9651502-1583241638000 with {'User-Agent': 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36', 'Accept': 'text/html,application/xhtml+xml, application/xml;q=0.9,*/*;q=0.8', 'Accept-Language': '*', 'Referer': 'https://alexa.amazon.com/spa/index.html', 'Cookie': 'session-id=137-4104098-5510033; session-id-time=2213718337l; ubid-main=131-1488076-9651502; session-token=nKB90uVVnHIQRnHhQS2uQkR2A3wRajq51MQ+WCqm8kWIxfxFpOMQl4SEPIRwiz5R8vtIbiyE8bLHDZQzDKQDBqMe0xzaXPbZKJ+TXLxa/SyiCQCZcJO0wyVQtXcsEQJa/kt6eS1przxf6Sf518sLou3+1zTC+VvqeqFeBvwmd3M2QPH8EAm9I2vnZvsD5ylU4gis6GXTjo7NGcJPQvznTDLu4RWYHiOrVZhi4E0hMAM=; x-main=izrB8xeVkrz9r7b6pdCdl2@2b@DiBAdQqwBvH?RkeOoCsSRYdA5nrhjCVufwMiXu; at-main=Atza|IwEBIMlWphT1FziftaDL2oW1YY6COQI1rx1RKG83TFKnurkkR6EvIvBSPNcSAcwOfWc0vdCtUxuyz2jmfTVmGruzVyoeNHaslZtVMP6MjKCmiVIF-woseNpGJE0TsBgDWRjTAE0j1Qe8sd5YXZ55xKMJrdF93jVzMPG4mj2I0X1z7GtZgmvQVFjl24IVTBDmIE-BHDcdc61Q5vZb_8fYMuEN0XERFlurww-0szsBcjZ7hMrGmbVd7q1il89R8jwDG5QtlpI75SeKfI-s5DPiObaAsuroD2vCTMiMHZfaVlNg89zHMZ6GR1w8Cu1KJJu-r1mG51xmFzOtBYAeVsJiF6F9f3VRs_XV0hs6LwS2qmASVDRVAEbKU-t74B9g4TaDsp1nOjq2CAX6uFLm1e-QA-I4pZfw; sess-at-main=u5Vv5dhunqT7LldvUN6iu0eqWaBsvp1pQaWD7QUOY+Y=; csrf=-718429675; ', 'Origin': 'https://alexa.amazon.com', 'csrf': '-718429675'} 2020-03-03 14:20:38 DEBUG (MainThread) [alexapy.alexawebsocket] Initating Async Handshake. 2020-03-03 14:20:38 DEBUG (MainThread) [alexapy.alexawebsocket] Starting message parsing loop. 2020-03-03 14:20:38 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding WebSocket Handshake MSG. 2020-03-03 14:20:38 DEBUG (MainThread) [alexapy.alexawebsocket] Received WebSocket: 0xbafef3f3 0x000000cd {"protocolName":"A:H","parameters":{"AlphaProtocolHandler.supportedEncodings":"GZIP","AlphaProtocolHandler.maxFragmentSize":"16000","AlphaProtocolHandler.receiveWindowSize":"16"}}TUNE 2020-03-03 14:20:38 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding Gateway Handshake MSG. 2020-03-03 14:20:38 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding Gateway Register MSG. 2020-03-03 14:20:38 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket succesfully connected 2020-03-03 14:20:38 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket closed; retries exceeded; polling 2020-03-03 14:20:38 DEBUG (MainThread) [alexapy.alexawebsocket] Received WebSocket: MSG 0x00000361 0x44e89a84 f 0x00000001 0x9e5eede6 0x000000b9 ACK 0x00000003 1.0 0x00000024 01e09e62-f504-476c-85c8-9c97c8da26ed 0x00000064 0x0000016978ff598c 0x00000170a08e498f END FABE 2020-03-03 14:20:38 DEBUG (MainThread) [alexapy.alexawebsocket] Received ACK MSG for Registration. 2020-03-03 14:20:39 ERROR (MainThread) [alexapy.alexawebsocket] WebSocket Error: 2020-03-03 14:20:39 DEBUG (MainThread) [alexapy.alexawebsocket] WebSocket Connection Closed. result=None> 2020-03-03 14:20:39 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Received websocket error #0 2020-03-03 14:20:39 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/devices-v2/device returned 200:OK:application/json 2020-03-03 14:20:39 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/bluetooth?cached=false returned 200:OK:application/json 2020-03-03 14:20:40 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/device-preferences returned 200:OK:application/json 2020-03-03 14:20:40 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/dnd/device-status-list returned 200:OK:application/json 2020-03-03 14:20:40 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/notifications returned 200:OK:application/json 2020-03-03 14:20:40 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Found 7 devices, 7 bluetooth 2020-03-03 14:20:41 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/notifications returned 200:OK:application/json 2020-03-03 14:20:41 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Updated 0 notifications for 1 devices at 2020-03-03 14:20:41.587163+01:00 2020-03-03 14:20:42 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/activities?startTime=&size=10&offset=1 returned 200:OK:application/json 2020-03-03 14:20:42 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Updated last_called: {'serialNumber': 'G************H3S', 'timestamp': 1583217507466} 2020-03-03 14:20:42 DEBUG (MainThread) [custom_components.alexa_media] TV: Locale en-us timezone None 2020-03-03 14:20:42 DEBUG (MainThread) [custom_components.alexa_media] TV: DND False 2020-03-03 14:20:42 DEBUG (MainThread) [custom_components.alexa_media] Bathroom: Locale en-us timezone None 2020-03-03 14:20:42 DEBUG (MainThread) [custom_components.alexa_media] Bathroom: DND False 2020-03-03 14:20:42 DEBUG (MainThread) [custom_components.alexa_media] Kitchen: Locale en-us timezone None 2020-03-03 14:20:42 DEBUG (MainThread) [custom_components.alexa_media] Kitchen: DND False 2020-03-03 14:20:42 DEBUG (MainThread) [custom_components.alexa_media] Livingroom: Locale en-us timezone None 2020-03-03 14:20:42 DEBUG (MainThread) [custom_components.alexa_media] Livingroom: DND False 2020-03-03 14:20:42 DEBUG (MainThread) [custom_components.alexa_media] Frank's Echo Dot: Locale en-us timezone Europe/Copenhagen 2020-03-03 14:20:42 DEBUG (MainThread) [custom_components.alexa_media] Frank's Echo Dot: DND False 2020-03-03 14:20:42 DEBUG (MainThread) [custom_components.alexa_media] This Device: Locale en-gb timezone Europe/Copenhagen 2020-03-03 14:20:42 DEBUG (MainThread) [custom_components.alexa_media] This Device: DND False 2020-03-03 14:20:42 DEBUG (MainThread) [custom_components.alexa_media] Frank's Alexa Apps: Locale en-us timezone None 2020-03-03 14:20:42 DEBUG (MainThread) [custom_components.alexa_media] Frank's Alexa Apps: DND False 2020-03-03 14:20:42 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Existing: [, , , , , , ] New: []; Filtered out by not being in include: [] or in exclude: [] 2020-03-03 14:20:59 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket created: 2020-03-03 14:20:59 DEBUG (MainThread) [alexapy.alexawebsocket] Connecting to wss://dp-gw-na-js.amazon.com/?x-amz-device-type=ALEGCNGL9K0HM&x-amz-device-serial=131-1488076-9651502-1583241659000 with {'User-Agent': 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36', 'Accept': 'text/html,application/xhtml+xml, application/xml;q=0.9,*/*;q=0.8', 'Accept-Language': '*', 'Referer': 'https://alexa.amazon.com/spa/index.html', 'Cookie': 'session-id=137-4104098-5510033; session-id-time=2213718337l; ubid-main=131-1488076-9651502; session-token=nKB90uVVnHIQRnHhQS2uQkR2A3wRajq51MQ+WCqm8kWIxfxFpOMQl4SEPIRwiz5R8vtIbiyE8bLHDZQzDKQDBqMe0xzaXPbZKJ+TXLxa/SyiCQCZcJO0wyVQtXcsEQJa/kt6eS1przxf6Sf518sLou3+1zTC+VvqeqFeBvwmd3M2QPH8EAm9I2vnZvsD5ylU4gis6GXTjo7NGcJPQvznTDLu4RWYHiOrVZhi4E0hMAM=; x-main=izrB8xeVkrz9r7b6pdCdl2@2b@DiBAdQqwBvH?RkeOoCsSRYdA5nrhjCVufwMiXu; at-main=Atza|IwEBIMlWphT1FziftaDL2oW1YY6COQI1rx1RKG83TFKnurkkR6EvIvBSPNcSAcwOfWc0vdCtUxuyz2jmfTVmGruzVyoeNHaslZtVMP6MjKCmiVIF-woseNpGJE0TsBgDWRjTAE0j1Qe8sd5YXZ55xKMJrdF93jVzMPG4mj2I0X1z7GtZgmvQVFjl24IVTBDmIE-BHDcdc61Q5vZb_8fYMuEN0XERFlurww-0szsBcjZ7hMrGmbVd7q1il89R8jwDG5QtlpI75SeKfI-s5DPiObaAsuroD2vCTMiMHZfaVlNg89zHMZ6GR1w8Cu1KJJu-r1mG51xmFzOtBYAeVsJiF6F9f3VRs_XV0hs6LwS2qmASVDRVAEbKU-t74B9g4TaDsp1nOjq2CAX6uFLm1e-QA-I4pZfw; sess-at-main=u5Vv5dhunqT7LldvUN6iu0eqWaBsvp1pQaWD7QUOY+Y=; csrf=-718429675; ', 'Origin': 'https://alexa.amazon.com', 'csrf': '-718429675'} 2020-03-03 14:20:59 DEBUG (MainThread) [alexapy.alexawebsocket] Initating Async Handshake. 2020-03-03 14:20:59 DEBUG (MainThread) [alexapy.alexawebsocket] Starting message parsing loop. 2020-03-03 14:20:59 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding WebSocket Handshake MSG. 2020-03-03 14:20:59 DEBUG (MainThread) [alexapy.alexawebsocket] Received WebSocket: 0xbafef3f3 0x000000cd {"protocolName":"A:H","parameters":{"AlphaProtocolHandler.supportedEncodings":"GZIP","AlphaProtocolHandler.maxFragmentSize":"16000","AlphaProtocolHandler.receiveWindowSize":"16"}}TUNE 2020-03-03 14:20:59 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding Gateway Handshake MSG. 2020-03-03 14:21:00 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding Gateway Register MSG. 2020-03-03 14:21:00 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket succesfully connected 2020-03-03 14:21:00 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket closed; retries exceeded; polling 2020-03-03 14:21:00 DEBUG (MainThread) [alexapy.alexawebsocket] Received WebSocket: MSG 0x00000361 0x3c6124cd f 0x00000001 0xcc801de0 0x000000b9 ACK 0x00000003 1.0 0x00000024 01e09e62-f504-476c-85c8-9c97c8da26ed 0x00000064 0x0000016978ff598c 0x00000170a08e9bfd END FABE 2020-03-03 14:21:00 DEBUG (MainThread) [alexapy.alexawebsocket] Received ACK MSG for Registration. 2020-03-03 14:21:00 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/devices-v2/device returned 200:OK:application/json 2020-03-03 14:21:00 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/bluetooth?cached=false returned 200:OK:application/json 2020-03-03 14:21:01 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/device-preferences returned 200:OK:application/json 2020-03-03 14:21:01 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/dnd/device-status-list returned 200:OK:application/json 2020-03-03 14:21:02 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/notifications returned 200:OK:application/json 2020-03-03 14:21:02 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Found 7 devices, 7 bluetooth 2020-03-03 14:21:02 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/notifications returned 200:OK:application/json 2020-03-03 14:21:02 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Updated 0 notifications for 1 devices at 2020-03-03 14:21:02.379946+01:00 2020-03-03 14:21:02 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/activities?startTime=&size=10&offset=1 returned 200:OK:application/json 2020-03-03 14:21:02 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Updated last_called: {'serialNumber': 'G************H3S', 'timestamp': 1583217507466} 2020-03-03 14:21:02 DEBUG (MainThread) [custom_components.alexa_media] TV: Locale en-us timezone None 2020-03-03 14:21:02 DEBUG (MainThread) [custom_components.alexa_media] TV: DND False 2020-03-03 14:21:02 DEBUG (MainThread) [custom_components.alexa_media] Bathroom: Locale en-us timezone None 2020-03-03 14:21:02 DEBUG (MainThread) [custom_components.alexa_media] Bathroom: DND False 2020-03-03 14:21:02 DEBUG (MainThread) [custom_components.alexa_media] Kitchen: Locale en-us timezone None 2020-03-03 14:21:02 DEBUG (MainThread) [custom_components.alexa_media] Kitchen: DND False 2020-03-03 14:21:02 DEBUG (MainThread) [custom_components.alexa_media] Livingroom: Locale en-us timezone None 2020-03-03 14:21:02 DEBUG (MainThread) [custom_components.alexa_media] Livingroom: DND False 2020-03-03 14:21:02 DEBUG (MainThread) [custom_components.alexa_media] Frank's Echo Dot: Locale en-us timezone Europe/Copenhagen 2020-03-03 14:21:02 DEBUG (MainThread) [custom_components.alexa_media] Frank's Echo Dot: DND False 2020-03-03 14:21:02 DEBUG (MainThread) [custom_components.alexa_media] This Device: Locale en-gb timezone Europe/Copenhagen 2020-03-03 14:21:02 DEBUG (MainThread) [custom_components.alexa_media] This Device: DND False 2020-03-03 14:21:02 DEBUG (MainThread) [custom_components.alexa_media] Frank's Alexa Apps: Locale en-us timezone None 2020-03-03 14:21:02 DEBUG (MainThread) [custom_components.alexa_media] Frank's Alexa Apps: DND False 2020-03-03 14:21:02 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Existing: [, , , , , , ] New: []; Filtered out by not being in include: [] or in exclude: [] 2020-03-03 14:21:09 ERROR (MainThread) [alexapy.alexawebsocket] WebSocket Error: 2020-03-03 14:21:09 DEBUG (MainThread) [alexapy.alexawebsocket] WebSocket Connection Closed. result=None> 2020-03-03 14:21:09 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Received websocket error #0 2020-03-03 14:21:09 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket created: 2020-03-03 14:21:09 DEBUG (MainThread) [alexapy.alexawebsocket] Connecting to wss://dp-gw-na-js.amazon.com/?x-amz-device-type=ALEGCNGL9K0HM&x-amz-device-serial=131-1488076-9651502-1583241669000 with {'User-Agent': 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36', 'Accept': 'text/html,application/xhtml+xml, application/xml;q=0.9,*/*;q=0.8', 'Accept-Language': '*', 'Referer': 'https://alexa.amazon.com/spa/index.html', 'Cookie': 'session-id=137-4104098-5510033; session-id-time=2213718337l; ubid-main=131-1488076-9651502; session-token=nKB90uVVnHIQRnHhQS2uQkR2A3wRajq51MQ+WCqm8kWIxfxFpOMQl4SEPIRwiz5R8vtIbiyE8bLHDZQzDKQDBqMe0xzaXPbZKJ+TXLxa/SyiCQCZcJO0wyVQtXcsEQJa/kt6eS1przxf6Sf518sLou3+1zTC+VvqeqFeBvwmd3M2QPH8EAm9I2vnZvsD5ylU4gis6GXTjo7NGcJPQvznTDLu4RWYHiOrVZhi4E0hMAM=; x-main=izrB8xeVkrz9r7b6pdCdl2@2b@DiBAdQqwBvH?RkeOoCsSRYdA5nrhjCVufwMiXu; at-main=Atza|IwEBIMlWphT1FziftaDL2oW1YY6COQI1rx1RKG83TFKnurkkR6EvIvBSPNcSAcwOfWc0vdCtUxuyz2jmfTVmGruzVyoeNHaslZtVMP6MjKCmiVIF-woseNpGJE0TsBgDWRjTAE0j1Qe8sd5YXZ55xKMJrdF93jVzMPG4mj2I0X1z7GtZgmvQVFjl24IVTBDmIE-BHDcdc61Q5vZb_8fYMuEN0XERFlurww-0szsBcjZ7hMrGmbVd7q1il89R8jwDG5QtlpI75SeKfI-s5DPiObaAsuroD2vCTMiMHZfaVlNg89zHMZ6GR1w8Cu1KJJu-r1mG51xmFzOtBYAeVsJiF6F9f3VRs_XV0hs6LwS2qmASVDRVAEbKU-t74B9g4TaDsp1nOjq2CAX6uFLm1e-QA-I4pZfw; sess-at-main=u5Vv5dhunqT7LldvUN6iu0eqWaBsvp1pQaWD7QUOY+Y=; csrf=-718429675; ', 'Origin': 'https://alexa.amazon.com', 'csrf': '-718429675'} 2020-03-03 14:21:10 DEBUG (MainThread) [alexapy.alexawebsocket] Initating Async Handshake. 2020-03-03 14:21:10 DEBUG (MainThread) [alexapy.alexawebsocket] Starting message parsing loop. 2020-03-03 14:21:10 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding WebSocket Handshake MSG. 2020-03-03 14:21:10 DEBUG (MainThread) [alexapy.alexawebsocket] Received WebSocket: 0xbafef3f3 0x000000cd {"protocolName":"A:H","parameters":{"AlphaProtocolHandler.supportedEncodings":"GZIP","AlphaProtocolHandler.maxFragmentSize":"16000","AlphaProtocolHandler.receiveWindowSize":"16"}}TUNE 2020-03-03 14:21:10 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding Gateway Handshake MSG. 2020-03-03 14:21:10 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding Gateway Register MSG. 2020-03-03 14:21:10 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket succesfully connected 2020-03-03 14:21:10 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket closed; retries exceeded; polling 2020-03-03 14:21:10 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket closed; reconnect #4 in 80s 2020-03-03 14:21:10 DEBUG (MainThread) [alexapy.alexawebsocket] Received WebSocket: MSG 0x00000361 0x3fac5747 f 0x00000001 0xfb55efa8 0x000000b9 ACK 0x00000003 1.0 0x00000024 01e09e62-f504-476c-85c8-9c97c8da26ed 0x00000064 0x0000016978ff598c 0x00000170a08ec520 END FABE 2020-03-03 14:21:10 DEBUG (MainThread) [alexapy.alexawebsocket] Received ACK MSG for Registration. 2020-03-03 14:21:29 ERROR (MainThread) [alexapy.alexawebsocket] WebSocket Error: 2020-03-03 14:21:29 DEBUG (MainThread) [alexapy.alexawebsocket] WebSocket Connection Closed. result=None> 2020-03-03 14:21:29 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Received websocket error #0 2020-03-03 14:21:29 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket closed; reconnect #1 in 10s 2020-03-03 14:21:34 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/devices-v2/device returned 200:OK:application/json 2020-03-03 14:21:34 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/bluetooth?cached=false returned 200:OK:application/json 2020-03-03 14:21:35 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/device-preferences returned 200:OK:application/json 2020-03-03 14:21:35 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/dnd/device-status-list returned 200:OK:application/json 2020-03-03 14:21:35 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/notifications returned 200:OK:application/json 2020-03-03 14:21:35 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Found 7 devices, 7 bluetooth 2020-03-03 14:21:36 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/notifications returned 200:OK:application/json 2020-03-03 14:21:36 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Updated 0 notifications for 1 devices at 2020-03-03 14:21:36.422970+01:00 2020-03-03 14:21:36 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/activities?startTime=&size=10&offset=1 returned 200:OK:application/json 2020-03-03 14:21:36 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Updated last_called: {'serialNumber': 'G************H3S', 'timestamp': 1583217507466} 2020-03-03 14:21:36 DEBUG (MainThread) [custom_components.alexa_media] TV: Locale en-us timezone None 2020-03-03 14:21:36 DEBUG (MainThread) [custom_components.alexa_media] TV: DND False 2020-03-03 14:21:36 DEBUG (MainThread) [custom_components.alexa_media] Bathroom: Locale en-us timezone None 2020-03-03 14:21:36 DEBUG (MainThread) [custom_components.alexa_media] Bathroom: DND False 2020-03-03 14:21:36 DEBUG (MainThread) [custom_components.alexa_media] Kitchen: Locale en-us timezone None 2020-03-03 14:21:36 DEBUG (MainThread) [custom_components.alexa_media] Kitchen: DND False 2020-03-03 14:21:36 DEBUG (MainThread) [custom_components.alexa_media] Livingroom: Locale en-us timezone None 2020-03-03 14:21:36 DEBUG (MainThread) [custom_components.alexa_media] Livingroom: DND False 2020-03-03 14:21:36 DEBUG (MainThread) [custom_components.alexa_media] Frank's Echo Dot: Locale en-us timezone Europe/Copenhagen 2020-03-03 14:21:36 DEBUG (MainThread) [custom_components.alexa_media] Frank's Echo Dot: DND False 2020-03-03 14:21:36 DEBUG (MainThread) [custom_components.alexa_media] This Device: Locale en-gb timezone Europe/Copenhagen 2020-03-03 14:21:36 DEBUG (MainThread) [custom_components.alexa_media] This Device: DND False 2020-03-03 14:21:36 DEBUG (MainThread) [custom_components.alexa_media] Frank's Alexa Apps: Locale en-us timezone None 2020-03-03 14:21:36 DEBUG (MainThread) [custom_components.alexa_media] Frank's Alexa Apps: DND False 2020-03-03 14:21:36 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Existing: [, , , , , , ] New: []; Filtered out by not being in include: [] or in exclude: [] 2020-03-03 14:21:39 ERROR (MainThread) [alexapy.alexawebsocket] WebSocket Error: 2020-03-03 14:21:39 DEBUG (MainThread) [alexapy.alexawebsocket] WebSocket Connection Closed. result=None> 2020-03-03 14:21:39 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Received websocket error #1 2020-03-03 14:21:39 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket closed; reconnect #2 in 20s 2020-03-03 14:21:39 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket created: 2020-03-03 14:21:39 DEBUG (MainThread) [alexapy.alexawebsocket] Connecting to wss://dp-gw-na-js.amazon.com/?x-amz-device-type=ALEGCNGL9K0HM&x-amz-device-serial=131-1488076-9651502-1583241699000 with {'User-Agent': 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36', 'Accept': 'text/html,application/xhtml+xml, application/xml;q=0.9,*/*;q=0.8', 'Accept-Language': '*', 'Referer': 'https://alexa.amazon.com/spa/index.html', 'Cookie': 'session-id=137-4104098-5510033; session-id-time=2213718337l; ubid-main=131-1488076-9651502; session-token=nKB90uVVnHIQRnHhQS2uQkR2A3wRajq51MQ+WCqm8kWIxfxFpOMQl4SEPIRwiz5R8vtIbiyE8bLHDZQzDKQDBqMe0xzaXPbZKJ+TXLxa/SyiCQCZcJO0wyVQtXcsEQJa/kt6eS1przxf6Sf518sLou3+1zTC+VvqeqFeBvwmd3M2QPH8EAm9I2vnZvsD5ylU4gis6GXTjo7NGcJPQvznTDLu4RWYHiOrVZhi4E0hMAM=; x-main=izrB8xeVkrz9r7b6pdCdl2@2b@DiBAdQqwBvH?RkeOoCsSRYdA5nrhjCVufwMiXu; at-main=Atza|IwEBIMlWphT1FziftaDL2oW1YY6COQI1rx1RKG83TFKnurkkR6EvIvBSPNcSAcwOfWc0vdCtUxuyz2jmfTVmGruzVyoeNHaslZtVMP6MjKCmiVIF-woseNpGJE0TsBgDWRjTAE0j1Qe8sd5YXZ55xKMJrdF93jVzMPG4mj2I0X1z7GtZgmvQVFjl24IVTBDmIE-BHDcdc61Q5vZb_8fYMuEN0XERFlurww-0szsBcjZ7hMrGmbVd7q1il89R8jwDG5QtlpI75SeKfI-s5DPiObaAsuroD2vCTMiMHZfaVlNg89zHMZ6GR1w8Cu1KJJu-r1mG51xmFzOtBYAeVsJiF6F9f3VRs_XV0hs6LwS2qmASVDRVAEbKU-t74B9g4TaDsp1nOjq2CAX6uFLm1e-QA-I4pZfw; sess-at-main=u5Vv5dhunqT7LldvUN6iu0eqWaBsvp1pQaWD7QUOY+Y=; csrf=-718429675; ', 'Origin': 'https://alexa.amazon.com', 'csrf': '-718429675'} 2020-03-03 14:21:40 DEBUG (MainThread) [alexapy.alexawebsocket] Initating Async Handshake. 2020-03-03 14:21:40 DEBUG (MainThread) [alexapy.alexawebsocket] Starting message parsing loop. 2020-03-03 14:21:40 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding WebSocket Handshake MSG. 2020-03-03 14:21:40 DEBUG (MainThread) [alexapy.alexawebsocket] Received WebSocket: 0xe891f630 0x000000cd {"parameters":{"AlphaProtocolHandler.supportedEncodings":"GZIP","AlphaProtocolHandler.maxFragmentSize":"16000","AlphaProtocolHandler.receiveWindowSize":"16"},"protocolName":"A:H"}TUNE 2020-03-03 14:21:40 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding Gateway Handshake MSG. 2020-03-03 14:21:40 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding Gateway Register MSG. 2020-03-03 14:21:40 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket succesfully connected 2020-03-03 14:21:40 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket closed; retries exceeded; polling 2020-03-03 14:21:40 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket closed; reconnect #2 in 20s 2020-03-03 14:21:40 DEBUG (MainThread) [alexapy.alexawebsocket] Received WebSocket: MSG 0x00000361 0x4ba61a13 f 0x00000001 0x9a7f17d9 0x000000b9 ACK 0x00000003 1.0 0x00000024 01e09e62-f504-476c-85c8-9c97c8da26ed 0x00000064 0x0000016978ff598c 0x00000170a08f3a4c END FABE 2020-03-03 14:21:40 DEBUG (MainThread) [alexapy.alexawebsocket] Received ACK MSG for Registration. 2020-03-03 14:21:43 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/devices-v2/device returned 200:OK:application/json 2020-03-03 14:21:43 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/bluetooth?cached=false returned 200:OK:application/json 2020-03-03 14:21:44 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/device-preferences returned 200:OK:application/json 2020-03-03 14:21:44 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/dnd/device-status-list returned 200:OK:application/json 2020-03-03 14:21:45 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/notifications returned 200:OK:application/json 2020-03-03 14:21:45 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Found 7 devices, 7 bluetooth 2020-03-03 14:21:45 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/notifications returned 200:OK:application/json 2020-03-03 14:21:45 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Updated 0 notifications for 1 devices at 2020-03-03 14:21:45.553920+01:00 2020-03-03 14:21:46 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/activities?startTime=&size=10&offset=1 returned 200:OK:application/json 2020-03-03 14:21:46 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Updated last_called: {'serialNumber': 'G************H3S', 'timestamp': 1583217507466} 2020-03-03 14:21:46 DEBUG (MainThread) [custom_components.alexa_media] TV: Locale en-us timezone None 2020-03-03 14:21:46 DEBUG (MainThread) [custom_components.alexa_media] TV: DND False 2020-03-03 14:21:46 DEBUG (MainThread) [custom_components.alexa_media] Bathroom: Locale en-us timezone None 2020-03-03 14:21:46 DEBUG (MainThread) [custom_components.alexa_media] Bathroom: DND False 2020-03-03 14:21:46 DEBUG (MainThread) [custom_components.alexa_media] Kitchen: Locale en-us timezone None 2020-03-03 14:21:46 DEBUG (MainThread) [custom_components.alexa_media] Kitchen: DND False 2020-03-03 14:21:46 DEBUG (MainThread) [custom_components.alexa_media] Livingroom: Locale en-us timezone None 2020-03-03 14:21:46 DEBUG (MainThread) [custom_components.alexa_media] Livingroom: DND False 2020-03-03 14:21:46 DEBUG (MainThread) [custom_components.alexa_media] Frank's Echo Dot: Locale en-us timezone Europe/Copenhagen 2020-03-03 14:21:46 DEBUG (MainThread) [custom_components.alexa_media] Frank's Echo Dot: DND False 2020-03-03 14:21:46 DEBUG (MainThread) [custom_components.alexa_media] This Device: Locale en-gb timezone Europe/Copenhagen 2020-03-03 14:21:46 DEBUG (MainThread) [custom_components.alexa_media] This Device: DND False 2020-03-03 14:21:46 DEBUG (MainThread) [custom_components.alexa_media] Frank's Alexa Apps: Locale en-us timezone None 2020-03-03 14:21:46 DEBUG (MainThread) [custom_components.alexa_media] Frank's Alexa Apps: DND False 2020-03-03 14:21:46 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Existing: [, , , , , , ] New: []; Filtered out by not being in include: [] or in exclude: [] 2020-03-03 14:21:59 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket created: 2020-03-03 14:21:59 DEBUG (MainThread) [alexapy.alexawebsocket] Connecting to wss://dp-gw-na-js.amazon.com/?x-amz-device-type=ALEGCNGL9K0HM&x-amz-device-serial=131-1488076-9651502-1583241719000 with {'User-Agent': 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36', 'Accept': 'text/html,application/xhtml+xml, application/xml;q=0.9,*/*;q=0.8', 'Accept-Language': '*', 'Referer': 'https://alexa.amazon.com/spa/index.html', 'Cookie': 'session-id=137-4104098-5510033; session-id-time=2213718337l; ubid-main=131-1488076-9651502; session-token=nKB90uVVnHIQRnHhQS2uQkR2A3wRajq51MQ+WCqm8kWIxfxFpOMQl4SEPIRwiz5R8vtIbiyE8bLHDZQzDKQDBqMe0xzaXPbZKJ+TXLxa/SyiCQCZcJO0wyVQtXcsEQJa/kt6eS1przxf6Sf518sLou3+1zTC+VvqeqFeBvwmd3M2QPH8EAm9I2vnZvsD5ylU4gis6GXTjo7NGcJPQvznTDLu4RWYHiOrVZhi4E0hMAM=; x-main=izrB8xeVkrz9r7b6pdCdl2@2b@DiBAdQqwBvH?RkeOoCsSRYdA5nrhjCVufwMiXu; at-main=Atza|IwEBIMlWphT1FziftaDL2oW1YY6COQI1rx1RKG83TFKnurkkR6EvIvBSPNcSAcwOfWc0vdCtUxuyz2jmfTVmGruzVyoeNHaslZtVMP6MjKCmiVIF-woseNpGJE0TsBgDWRjTAE0j1Qe8sd5YXZ55xKMJrdF93jVzMPG4mj2I0X1z7GtZgmvQVFjl24IVTBDmIE-BHDcdc61Q5vZb_8fYMuEN0XERFlurww-0szsBcjZ7hMrGmbVd7q1il89R8jwDG5QtlpI75SeKfI-s5DPiObaAsuroD2vCTMiMHZfaVlNg89zHMZ6GR1w8Cu1KJJu-r1mG51xmFzOtBYAeVsJiF6F9f3VRs_XV0hs6LwS2qmASVDRVAEbKU-t74B9g4TaDsp1nOjq2CAX6uFLm1e-QA-I4pZfw; sess-at-main=u5Vv5dhunqT7LldvUN6iu0eqWaBsvp1pQaWD7QUOY+Y=; csrf=-718429675; ', 'Origin': 'https://alexa.amazon.com', 'csrf': '-718429675'} 2020-03-03 14:21:59 DEBUG (MainThread) [alexapy.alexawebsocket] Initating Async Handshake. 2020-03-03 14:21:59 DEBUG (MainThread) [alexapy.alexawebsocket] Starting message parsing loop. 2020-03-03 14:21:59 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding WebSocket Handshake MSG. 2020-03-03 14:21:59 DEBUG (MainThread) [alexapy.alexawebsocket] Received WebSocket: 0xbafef3f3 0x000000cd {"protocolName":"A:H","parameters":{"AlphaProtocolHandler.supportedEncodings":"GZIP","AlphaProtocolHandler.maxFragmentSize":"16000","AlphaProtocolHandler.receiveWindowSize":"16"}}TUNE 2020-03-03 14:21:59 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding Gateway Handshake MSG. 2020-03-03 14:21:59 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding Gateway Register MSG. 2020-03-03 14:21:59 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket succesfully connected 2020-03-03 14:21:59 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket closed; retries exceeded; polling 2020-03-03 14:21:59 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket closed; reconnect #3 in 40s 2020-03-03 14:21:59 DEBUG (MainThread) [alexapy.alexawebsocket] Received WebSocket: MSG 0x00000361 0x30c91d2b f 0x00000001 0xd151e5ad 0x000000b9 ACK 0x00000003 1.0 0x00000024 01e09e62-f504-476c-85c8-9c97c8da26ed 0x00000064 0x0000016978ff598c 0x00000170a08f8514 END FABE 2020-03-03 14:21:59 DEBUG (MainThread) [alexapy.alexawebsocket] Received ACK MSG for Registration. 2020-03-03 14:22:00 ERROR (MainThread) [alexapy.alexawebsocket] WebSocket Error: 2020-03-03 14:22:00 DEBUG (MainThread) [alexapy.alexawebsocket] WebSocket Connection Closed. result=None> 2020-03-03 14:22:00 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Received websocket error #0 2020-03-03 14:22:00 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket created: 2020-03-03 14:22:00 DEBUG (MainThread) [alexapy.alexawebsocket] Connecting to wss://dp-gw-na-js.amazon.com/?x-amz-device-type=ALEGCNGL9K0HM&x-amz-device-serial=131-1488076-9651502-1583241720000 with {'User-Agent': 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36', 'Accept': 'text/html,application/xhtml+xml, application/xml;q=0.9,*/*;q=0.8', 'Accept-Language': '*', 'Referer': 'https://alexa.amazon.com/spa/index.html', 'Cookie': 'session-id=137-4104098-5510033; session-id-time=2213718337l; ubid-main=131-1488076-9651502; session-token=nKB90uVVnHIQRnHhQS2uQkR2A3wRajq51MQ+WCqm8kWIxfxFpOMQl4SEPIRwiz5R8vtIbiyE8bLHDZQzDKQDBqMe0xzaXPbZKJ+TXLxa/SyiCQCZcJO0wyVQtXcsEQJa/kt6eS1przxf6Sf518sLou3+1zTC+VvqeqFeBvwmd3M2QPH8EAm9I2vnZvsD5ylU4gis6GXTjo7NGcJPQvznTDLu4RWYHiOrVZhi4E0hMAM=; x-main=izrB8xeVkrz9r7b6pdCdl2@2b@DiBAdQqwBvH?RkeOoCsSRYdA5nrhjCVufwMiXu; at-main=Atza|IwEBIMlWphT1FziftaDL2oW1YY6COQI1rx1RKG83TFKnurkkR6EvIvBSPNcSAcwOfWc0vdCtUxuyz2jmfTVmGruzVyoeNHaslZtVMP6MjKCmiVIF-woseNpGJE0TsBgDWRjTAE0j1Qe8sd5YXZ55xKMJrdF93jVzMPG4mj2I0X1z7GtZgmvQVFjl24IVTBDmIE-BHDcdc61Q5vZb_8fYMuEN0XERFlurww-0szsBcjZ7hMrGmbVd7q1il89R8jwDG5QtlpI75SeKfI-s5DPiObaAsuroD2vCTMiMHZfaVlNg89zHMZ6GR1w8Cu1KJJu-r1mG51xmFzOtBYAeVsJiF6F9f3VRs_XV0hs6LwS2qmASVDRVAEbKU-t74B9g4TaDsp1nOjq2CAX6uFLm1e-QA-I4pZfw; sess-at-main=u5Vv5dhunqT7LldvUN6iu0eqWaBsvp1pQaWD7QUOY+Y=; csrf=-718429675; ', 'Origin': 'https://alexa.amazon.com', 'csrf': '-718429675'} 2020-03-03 14:22:01 DEBUG (MainThread) [alexapy.alexawebsocket] Initating Async Handshake. 2020-03-03 14:22:01 DEBUG (MainThread) [alexapy.alexawebsocket] Starting message parsing loop. 2020-03-03 14:22:01 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding WebSocket Handshake MSG. 2020-03-03 14:22:01 DEBUG (MainThread) [alexapy.alexawebsocket] Received WebSocket: 0xe891f630 0x000000cd {"parameters":{"AlphaProtocolHandler.supportedEncodings":"GZIP","AlphaProtocolHandler.maxFragmentSize":"16000","AlphaProtocolHandler.receiveWindowSize":"16"},"protocolName":"A:H"}TUNE 2020-03-03 14:22:01 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding Gateway Handshake MSG. 2020-03-03 14:22:01 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding Gateway Register MSG. 2020-03-03 14:22:01 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket succesfully connected 2020-03-03 14:22:01 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket closed; retries exceeded; polling 2020-03-03 14:22:01 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket closed; reconnect #3 in 40s 2020-03-03 14:22:01 DEBUG (MainThread) [alexapy.alexawebsocket] Received WebSocket: MSG 0x00000361 0x4ba62f0e f 0x00000001 0xd1811cdb 0x000000b9 ACK 0x00000003 1.0 0x00000024 01e09e62-f504-476c-85c8-9c97c8da26ed 0x00000064 0x0000016978ff598c 0x00000170a08f8b4f END FABE 2020-03-03 14:22:01 DEBUG (MainThread) [alexapy.alexawebsocket] Received ACK MSG for Registration. 2020-03-03 14:22:03 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/devices-v2/device returned 200:OK:application/json 2020-03-03 14:22:03 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/bluetooth?cached=false returned 200:OK:application/json 2020-03-03 14:22:04 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/device-preferences returned 200:OK:application/json 2020-03-03 14:22:04 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/dnd/device-status-list returned 200:OK:application/json 2020-03-03 14:22:04 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/notifications returned 200:OK:application/json 2020-03-03 14:22:04 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Found 7 devices, 7 bluetooth 2020-03-03 14:22:05 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/notifications returned 200:OK:application/json 2020-03-03 14:22:05 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Updated 0 notifications for 1 devices at 2020-03-03 14:22:05.210357+01:00 2020-03-03 14:22:05 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/activities?startTime=&size=10&offset=1 returned 200:OK:application/json 2020-03-03 14:22:05 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Updated last_called: {'serialNumber': 'G************H3S', 'timestamp': 1583217507466} 2020-03-03 14:22:05 DEBUG (MainThread) [custom_components.alexa_media] TV: Locale en-us timezone None 2020-03-03 14:22:05 DEBUG (MainThread) [custom_components.alexa_media] TV: DND False 2020-03-03 14:22:05 DEBUG (MainThread) [custom_components.alexa_media] Bathroom: Locale en-us timezone None 2020-03-03 14:22:05 DEBUG (MainThread) [custom_components.alexa_media] Bathroom: DND False 2020-03-03 14:22:05 DEBUG (MainThread) [custom_components.alexa_media] Kitchen: Locale en-us timezone None 2020-03-03 14:22:05 DEBUG (MainThread) [custom_components.alexa_media] Kitchen: DND False 2020-03-03 14:22:05 DEBUG (MainThread) [custom_components.alexa_media] Livingroom: Locale en-us timezone None 2020-03-03 14:22:05 DEBUG (MainThread) [custom_components.alexa_media] Livingroom: DND False 2020-03-03 14:22:05 DEBUG (MainThread) [custom_components.alexa_media] Frank's Echo Dot: Locale en-us timezone Europe/Copenhagen 2020-03-03 14:22:05 DEBUG (MainThread) [custom_components.alexa_media] Frank's Echo Dot: DND False 2020-03-03 14:22:05 DEBUG (MainThread) [custom_components.alexa_media] This Device: Locale en-gb timezone Europe/Copenhagen 2020-03-03 14:22:05 DEBUG (MainThread) [custom_components.alexa_media] This Device: DND False 2020-03-03 14:22:05 DEBUG (MainThread) [custom_components.alexa_media] Frank's Alexa Apps: Locale en-us timezone None 2020-03-03 14:22:05 DEBUG (MainThread) [custom_components.alexa_media] Frank's Alexa Apps: DND False 2020-03-03 14:22:05 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Existing: [, , , , , , ] New: []; Filtered out by not being in include: [] or in exclude: [] 2020-03-03 14:22:10 ERROR (MainThread) [alexapy.alexawebsocket] WebSocket Error: 2020-03-03 14:22:10 DEBUG (MainThread) [alexapy.alexawebsocket] WebSocket Connection Closed. result=None> 2020-03-03 14:22:10 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Received websocket error #0 2020-03-03 14:22:30 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket created: 2020-03-03 14:22:30 DEBUG (MainThread) [alexapy.alexawebsocket] Connecting to wss://dp-gw-na-js.amazon.com/?x-amz-device-type=ALEGCNGL9K0HM&x-amz-device-serial=131-1488076-9651502-1583241750000 with {'User-Agent': 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36', 'Accept': 'text/html,application/xhtml+xml, application/xml;q=0.9,*/*;q=0.8', 'Accept-Language': '*', 'Referer': 'https://alexa.amazon.com/spa/index.html', 'Cookie': 'session-id=137-4104098-5510033; session-id-time=2213718337l; ubid-main=131-1488076-9651502; session-token=nKB90uVVnHIQRnHhQS2uQkR2A3wRajq51MQ+WCqm8kWIxfxFpOMQl4SEPIRwiz5R8vtIbiyE8bLHDZQzDKQDBqMe0xzaXPbZKJ+TXLxa/SyiCQCZcJO0wyVQtXcsEQJa/kt6eS1przxf6Sf518sLou3+1zTC+VvqeqFeBvwmd3M2QPH8EAm9I2vnZvsD5ylU4gis6GXTjo7NGcJPQvznTDLu4RWYHiOrVZhi4E0hMAM=; x-main=izrB8xeVkrz9r7b6pdCdl2@2b@DiBAdQqwBvH?RkeOoCsSRYdA5nrhjCVufwMiXu; at-main=Atza|IwEBIMlWphT1FziftaDL2oW1YY6COQI1rx1RKG83TFKnurkkR6EvIvBSPNcSAcwOfWc0vdCtUxuyz2jmfTVmGruzVyoeNHaslZtVMP6MjKCmiVIF-woseNpGJE0TsBgDWRjTAE0j1Qe8sd5YXZ55xKMJrdF93jVzMPG4mj2I0X1z7GtZgmvQVFjl24IVTBDmIE-BHDcdc61Q5vZb_8fYMuEN0XERFlurww-0szsBcjZ7hMrGmbVd7q1il89R8jwDG5QtlpI75SeKfI-s5DPiObaAsuroD2vCTMiMHZfaVlNg89zHMZ6GR1w8Cu1KJJu-r1mG51xmFzOtBYAeVsJiF6F9f3VRs_XV0hs6LwS2qmASVDRVAEbKU-t74B9g4TaDsp1nOjq2CAX6uFLm1e-QA-I4pZfw; sess-at-main=u5Vv5dhunqT7LldvUN6iu0eqWaBsvp1pQaWD7QUOY+Y=; csrf=-718429675; ', 'Origin': 'https://alexa.amazon.com', 'csrf': '-718429675'} 2020-03-03 14:22:31 DEBUG (MainThread) [alexapy.alexawebsocket] Initating Async Handshake. 2020-03-03 14:22:31 DEBUG (MainThread) [alexapy.alexawebsocket] Starting message parsing loop. 2020-03-03 14:22:31 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding WebSocket Handshake MSG. 2020-03-03 14:22:31 DEBUG (MainThread) [alexapy.alexawebsocket] Received WebSocket: 0xbafef3f3 0x000000cd {"protocolName":"A:H","parameters":{"AlphaProtocolHandler.supportedEncodings":"GZIP","AlphaProtocolHandler.maxFragmentSize":"16000","AlphaProtocolHandler.receiveWindowSize":"16"}}TUNE 2020-03-03 14:22:31 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding Gateway Handshake MSG. 2020-03-03 14:22:31 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding Gateway Register MSG. 2020-03-03 14:22:31 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket succesfully connected 2020-03-03 14:22:31 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket closed; retries exceeded; polling 2020-03-03 14:22:31 DEBUG (MainThread) [alexapy.alexawebsocket] Received WebSocket: MSG 0x00000361 0x2ae5c638 f 0x00000001 0x9b7df07f 0x000000b9 ACK 0x00000003 1.0 0x00000024 01e09e62-f504-476c-85c8-9c97c8da26ed 0x00000064 0x0000016978ff598c 0x00000170a0900089 END FABE 2020-03-03 14:22:31 DEBUG (MainThread) [alexapy.alexawebsocket] Received ACK MSG for Registration. 2020-03-03 14:22:31 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/devices-v2/device returned 200:OK:application/json 2020-03-03 14:22:32 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/bluetooth?cached=false returned 200:OK:application/json 2020-03-03 14:22:32 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/device-preferences returned 200:OK:application/json 2020-03-03 14:22:32 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/dnd/device-status-list returned 200:OK:application/json 2020-03-03 14:22:33 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/notifications returned 200:OK:application/json 2020-03-03 14:22:33 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Found 7 devices, 7 bluetooth 2020-03-03 14:22:33 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/notifications returned 200:OK:application/json 2020-03-03 14:22:33 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Updated 0 notifications for 1 devices at 2020-03-03 14:22:33.667091+01:00 2020-03-03 14:22:33 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/activities?startTime=&size=10&offset=1 returned 200:OK:application/json 2020-03-03 14:22:33 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Updated last_called: {'serialNumber': 'G************H3S', 'timestamp': 1583217507466} 2020-03-03 14:22:33 DEBUG (MainThread) [custom_components.alexa_media] TV: Locale en-us timezone None 2020-03-03 14:22:33 DEBUG (MainThread) [custom_components.alexa_media] TV: DND False 2020-03-03 14:22:33 DEBUG (MainThread) [custom_components.alexa_media] Bathroom: Locale en-us timezone None 2020-03-03 14:22:33 DEBUG (MainThread) [custom_components.alexa_media] Bathroom: DND False 2020-03-03 14:22:33 DEBUG (MainThread) [custom_components.alexa_media] Kitchen: Locale en-us timezone None 2020-03-03 14:22:33 DEBUG (MainThread) [custom_components.alexa_media] Kitchen: DND False 2020-03-03 14:22:33 DEBUG (MainThread) [custom_components.alexa_media] Livingroom: Locale en-us timezone None 2020-03-03 14:22:33 DEBUG (MainThread) [custom_components.alexa_media] Livingroom: DND False 2020-03-03 14:22:33 DEBUG (MainThread) [custom_components.alexa_media] Frank's Echo Dot: Locale en-us timezone Europe/Copenhagen 2020-03-03 14:22:33 DEBUG (MainThread) [custom_components.alexa_media] Frank's Echo Dot: DND False 2020-03-03 14:22:33 DEBUG (MainThread) [custom_components.alexa_media] This Device: Locale en-gb timezone Europe/Copenhagen 2020-03-03 14:22:33 DEBUG (MainThread) [custom_components.alexa_media] This Device: DND False 2020-03-03 14:22:33 DEBUG (MainThread) [custom_components.alexa_media] Frank's Alexa Apps: Locale en-us timezone None 2020-03-03 14:22:33 DEBUG (MainThread) [custom_components.alexa_media] Frank's Alexa Apps: DND False 2020-03-03 14:22:33 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Existing: [, , , , , , ] New: []; Filtered out by not being in include: [] or in exclude: [] 2020-03-03 14:22:37 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/devices-v2/device returned 200:OK:application/json 2020-03-03 14:22:37 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/bluetooth?cached=false returned 200:OK:application/json 2020-03-03 14:22:38 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/device-preferences returned 200:OK:application/json 2020-03-03 14:22:38 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/dnd/device-status-list returned 200:OK:application/json 2020-03-03 14:22:39 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/notifications returned 200:OK:application/json 2020-03-03 14:22:39 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Found 7 devices, 7 bluetooth 2020-03-03 14:22:39 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket created: 2020-03-03 14:22:39 DEBUG (MainThread) [alexapy.alexawebsocket] Connecting to wss://dp-gw-na-js.amazon.com/?x-amz-device-type=ALEGCNGL9K0HM&x-amz-device-serial=131-1488076-9651502-1583241759000 with {'User-Agent': 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36', 'Accept': 'text/html,application/xhtml+xml, application/xml;q=0.9,*/*;q=0.8', 'Accept-Language': '*', 'Referer': 'https://alexa.amazon.com/spa/index.html', 'Cookie': 'session-id=137-4104098-5510033; session-id-time=2213718337l; ubid-main=131-1488076-9651502; session-token=nKB90uVVnHIQRnHhQS2uQkR2A3wRajq51MQ+WCqm8kWIxfxFpOMQl4SEPIRwiz5R8vtIbiyE8bLHDZQzDKQDBqMe0xzaXPbZKJ+TXLxa/SyiCQCZcJO0wyVQtXcsEQJa/kt6eS1przxf6Sf518sLou3+1zTC+VvqeqFeBvwmd3M2QPH8EAm9I2vnZvsD5ylU4gis6GXTjo7NGcJPQvznTDLu4RWYHiOrVZhi4E0hMAM=; x-main=izrB8xeVkrz9r7b6pdCdl2@2b@DiBAdQqwBvH?RkeOoCsSRYdA5nrhjCVufwMiXu; at-main=Atza|IwEBIMlWphT1FziftaDL2oW1YY6COQI1rx1RKG83TFKnurkkR6EvIvBSPNcSAcwOfWc0vdCtUxuyz2jmfTVmGruzVyoeNHaslZtVMP6MjKCmiVIF-woseNpGJE0TsBgDWRjTAE0j1Qe8sd5YXZ55xKMJrdF93jVzMPG4mj2I0X1z7GtZgmvQVFjl24IVTBDmIE-BHDcdc61Q5vZb_8fYMuEN0XERFlurww-0szsBcjZ7hMrGmbVd7q1il89R8jwDG5QtlpI75SeKfI-s5DPiObaAsuroD2vCTMiMHZfaVlNg89zHMZ6GR1w8Cu1KJJu-r1mG51xmFzOtBYAeVsJiF6F9f3VRs_XV0hs6LwS2qmASVDRVAEbKU-t74B9g4TaDsp1nOjq2CAX6uFLm1e-QA-I4pZfw; sess-at-main=u5Vv5dhunqT7LldvUN6iu0eqWaBsvp1pQaWD7QUOY+Y=; csrf=-718429675; ', 'Origin': 'https://alexa.amazon.com', 'csrf': '-718429675'} 2020-03-03 14:22:40 DEBUG (MainThread) [alexapy.alexawebsocket] Initating Async Handshake. 2020-03-03 14:22:40 DEBUG (MainThread) [alexapy.alexawebsocket] Starting message parsing loop. 2020-03-03 14:22:40 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/notifications returned 200:OK:application/json 2020-03-03 14:22:40 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Updated 0 notifications for 1 devices at 2020-03-03 14:22:40.210910+01:00 2020-03-03 14:22:40 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding WebSocket Handshake MSG. 2020-03-03 14:22:40 DEBUG (MainThread) [alexapy.alexawebsocket] Received WebSocket: 0xbafef3f3 0x000000cd {"protocolName":"A:H","parameters":{"AlphaProtocolHandler.supportedEncodings":"GZIP","AlphaProtocolHandler.maxFragmentSize":"16000","AlphaProtocolHandler.receiveWindowSize":"16"}}TUNE 2020-03-03 14:22:40 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding Gateway Handshake MSG. 2020-03-03 14:22:40 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/activities?startTime=&size=10&offset=1 returned 200:OK:application/json 2020-03-03 14:22:40 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Updated last_called: {'serialNumber': 'G************H3S', 'timestamp': 1583217507466} 2020-03-03 14:22:40 DEBUG (MainThread) [custom_components.alexa_media] TV: Locale en-us timezone None 2020-03-03 14:22:40 DEBUG (MainThread) [custom_components.alexa_media] TV: DND False 2020-03-03 14:22:40 DEBUG (MainThread) [custom_components.alexa_media] Bathroom: Locale en-us timezone None 2020-03-03 14:22:40 DEBUG (MainThread) [custom_components.alexa_media] Bathroom: DND False 2020-03-03 14:22:40 DEBUG (MainThread) [custom_components.alexa_media] Kitchen: Locale en-us timezone None 2020-03-03 14:22:40 DEBUG (MainThread) [custom_components.alexa_media] Kitchen: DND False 2020-03-03 14:22:40 DEBUG (MainThread) [custom_components.alexa_media] Livingroom: Locale en-us timezone None 2020-03-03 14:22:40 DEBUG (MainThread) [custom_components.alexa_media] Livingroom: DND False 2020-03-03 14:22:40 DEBUG (MainThread) [custom_components.alexa_media] Frank's Echo Dot: Locale en-us timezone Europe/Copenhagen 2020-03-03 14:22:40 DEBUG (MainThread) [custom_components.alexa_media] Frank's Echo Dot: DND False 2020-03-03 14:22:40 DEBUG (MainThread) [custom_components.alexa_media] This Device: Locale en-gb timezone Europe/Copenhagen 2020-03-03 14:22:40 DEBUG (MainThread) [custom_components.alexa_media] This Device: DND False 2020-03-03 14:22:40 DEBUG (MainThread) [custom_components.alexa_media] Frank's Alexa Apps: Locale en-us timezone None 2020-03-03 14:22:40 DEBUG (MainThread) [custom_components.alexa_media] Frank's Alexa Apps: DND False 2020-03-03 14:22:40 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Existing: [, , , , , , ] New: []; Filtered out by not being in include: [] or in exclude: [] 2020-03-03 14:22:40 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding Gateway Register MSG. 2020-03-03 14:22:40 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket succesfully connected 2020-03-03 14:22:40 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket closed; retries exceeded; polling 2020-03-03 14:22:40 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket closed; reconnect #4 in 80s 2020-03-03 14:22:40 DEBUG (MainThread) [alexapy.alexawebsocket] Received WebSocket: MSG 0x00000361 0x2ae5ce43 f 0x00000001 0x98821a79 0x000000b9 ACK 0x00000003 1.0 0x00000024 01e09e62-f504-476c-85c8-9c97c8da26ed 0x00000064 0x0000016978ff598c 0x00000170a0902432 END FABE 2020-03-03 14:22:40 DEBUG (MainThread) [alexapy.alexawebsocket] Received ACK MSG for Registration. 2020-03-03 14:22:40 ERROR (MainThread) [alexapy.alexawebsocket] WebSocket Error: 2020-03-03 14:22:40 DEBUG (MainThread) [alexapy.alexawebsocket] WebSocket Connection Closed. result=None> 2020-03-03 14:22:40 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Received websocket error #0 2020-03-03 14:22:41 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket created: 2020-03-03 14:22:41 DEBUG (MainThread) [alexapy.alexawebsocket] Connecting to wss://dp-gw-na-js.amazon.com/?x-amz-device-type=ALEGCNGL9K0HM&x-amz-device-serial=131-1488076-9651502-1583241761000 with {'User-Agent': 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36', 'Accept': 'text/html,application/xhtml+xml, application/xml;q=0.9,*/*;q=0.8', 'Accept-Language': '*', 'Referer': 'https://alexa.amazon.com/spa/index.html', 'Cookie': 'session-id=137-4104098-5510033; session-id-time=2213718337l; ubid-main=131-1488076-9651502; session-token=nKB90uVVnHIQRnHhQS2uQkR2A3wRajq51MQ+WCqm8kWIxfxFpOMQl4SEPIRwiz5R8vtIbiyE8bLHDZQzDKQDBqMe0xzaXPbZKJ+TXLxa/SyiCQCZcJO0wyVQtXcsEQJa/kt6eS1przxf6Sf518sLou3+1zTC+VvqeqFeBvwmd3M2QPH8EAm9I2vnZvsD5ylU4gis6GXTjo7NGcJPQvznTDLu4RWYHiOrVZhi4E0hMAM=; x-main=izrB8xeVkrz9r7b6pdCdl2@2b@DiBAdQqwBvH?RkeOoCsSRYdA5nrhjCVufwMiXu; at-main=Atza|IwEBIMlWphT1FziftaDL2oW1YY6COQI1rx1RKG83TFKnurkkR6EvIvBSPNcSAcwOfWc0vdCtUxuyz2jmfTVmGruzVyoeNHaslZtVMP6MjKCmiVIF-woseNpGJE0TsBgDWRjTAE0j1Qe8sd5YXZ55xKMJrdF93jVzMPG4mj2I0X1z7GtZgmvQVFjl24IVTBDmIE-BHDcdc61Q5vZb_8fYMuEN0XERFlurww-0szsBcjZ7hMrGmbVd7q1il89R8jwDG5QtlpI75SeKfI-s5DPiObaAsuroD2vCTMiMHZfaVlNg89zHMZ6GR1w8Cu1KJJu-r1mG51xmFzOtBYAeVsJiF6F9f3VRs_XV0hs6LwS2qmASVDRVAEbKU-t74B9g4TaDsp1nOjq2CAX6uFLm1e-QA-I4pZfw; sess-at-main=u5Vv5dhunqT7LldvUN6iu0eqWaBsvp1pQaWD7QUOY+Y=; csrf=-718429675; ', 'Origin': 'https://alexa.amazon.com', 'csrf': '-718429675'} 2020-03-03 14:22:41 DEBUG (MainThread) [alexapy.alexawebsocket] Initating Async Handshake. 2020-03-03 14:22:41 DEBUG (MainThread) [alexapy.alexawebsocket] Starting message parsing loop. 2020-03-03 14:22:41 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding WebSocket Handshake MSG. 2020-03-03 14:22:41 DEBUG (MainThread) [alexapy.alexawebsocket] Received WebSocket: 0xbafef3f3 0x000000cd {"protocolName":"A:H","parameters":{"AlphaProtocolHandler.supportedEncodings":"GZIP","AlphaProtocolHandler.maxFragmentSize":"16000","AlphaProtocolHandler.receiveWindowSize":"16"}}TUNE 2020-03-03 14:22:41 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding Gateway Handshake MSG. 2020-03-03 14:22:42 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding Gateway Register MSG. 2020-03-03 14:22:42 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket succesfully connected 2020-03-03 14:22:42 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket closed; retries exceeded; polling 2020-03-03 14:22:42 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket closed; reconnect #4 in 80s 2020-03-03 14:22:42 DEBUG (MainThread) [alexapy.alexawebsocket] Received WebSocket: MSG 0x00000361 0x3311fe62 f 0x00000001 0x93b2f04b 0x000000b9 ACK 0x00000003 1.0 0x00000024 01e09e62-f504-476c-85c8-9c97c8da26ed 0x00000064 0x0000016978ff598c 0x00000170a0902a76 END FABE 2020-03-03 14:22:42 DEBUG (MainThread) [alexapy.alexawebsocket] Received ACK MSG for Registration. 2020-03-03 14:22:47 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/devices-v2/device returned 200:OK:application/json 2020-03-03 14:22:47 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/bluetooth?cached=false returned 200:OK:application/json 2020-03-03 14:22:48 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/device-preferences returned 200:OK:application/json 2020-03-03 14:22:48 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/dnd/device-status-list returned 200:OK:application/json 2020-03-03 14:22:48 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/notifications returned 200:OK:application/json 2020-03-03 14:22:48 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Found 7 devices, 7 bluetooth 2020-03-03 14:22:49 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/notifications returned 200:OK:application/json 2020-03-03 14:22:49 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Updated 0 notifications for 1 devices at 2020-03-03 14:22:49.572898+01:00 2020-03-03 14:22:49 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/activities?startTime=&size=10&offset=1 returned 200:OK:application/json 2020-03-03 14:22:49 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Updated last_called: {'serialNumber': 'G************H3S', 'timestamp': 1583217507466} 2020-03-03 14:22:49 DEBUG (MainThread) [custom_components.alexa_media] TV: Locale en-us timezone None 2020-03-03 14:22:49 DEBUG (MainThread) [custom_components.alexa_media] TV: DND False 2020-03-03 14:22:49 DEBUG (MainThread) [custom_components.alexa_media] Bathroom: Locale en-us timezone None 2020-03-03 14:22:49 DEBUG (MainThread) [custom_components.alexa_media] Bathroom: DND False 2020-03-03 14:22:49 DEBUG (MainThread) [custom_components.alexa_media] Kitchen: Locale en-us timezone None 2020-03-03 14:22:49 DEBUG (MainThread) [custom_components.alexa_media] Kitchen: DND False 2020-03-03 14:22:49 DEBUG (MainThread) [custom_components.alexa_media] Livingroom: Locale en-us timezone None 2020-03-03 14:22:49 DEBUG (MainThread) [custom_components.alexa_media] Livingroom: DND False 2020-03-03 14:22:49 DEBUG (MainThread) [custom_components.alexa_media] Frank's Echo Dot: Locale en-us timezone Europe/Copenhagen 2020-03-03 14:22:49 DEBUG (MainThread) [custom_components.alexa_media] Frank's Echo Dot: DND False 2020-03-03 14:22:49 DEBUG (MainThread) [custom_components.alexa_media] This Device: Locale en-gb timezone Europe/Copenhagen 2020-03-03 14:22:49 DEBUG (MainThread) [custom_components.alexa_media] This Device: DND False 2020-03-03 14:22:49 DEBUG (MainThread) [custom_components.alexa_media] Frank's Alexa Apps: Locale en-us timezone None 2020-03-03 14:22:49 DEBUG (MainThread) [custom_components.alexa_media] Frank's Alexa Apps: DND False 2020-03-03 14:22:49 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Existing: [, , , , , , ] New: []; Filtered out by not being in include: [] or in exclude: [] 2020-03-03 14:22:59 ERROR (MainThread) [alexapy.alexawebsocket] WebSocket Error: 2020-03-03 14:22:59 DEBUG (MainThread) [alexapy.alexawebsocket] WebSocket Connection Closed. result=None> 2020-03-03 14:22:59 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Received websocket error #0 2020-03-03 14:22:59 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket closed; reconnect #1 in 10s 2020-03-03 14:23:01 ERROR (MainThread) [alexapy.alexawebsocket] WebSocket Error: 2020-03-03 14:23:01 DEBUG (MainThread) [alexapy.alexawebsocket] WebSocket Connection Closed. result=None> 2020-03-03 14:23:01 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Received websocket error #1 2020-03-03 14:23:06 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/devices-v2/device returned 200:OK:application/json 2020-03-03 14:23:06 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/bluetooth?cached=false returned 200:OK:application/json 2020-03-03 14:23:07 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/device-preferences returned 200:OK:application/json 2020-03-03 14:23:07 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/dnd/device-status-list returned 200:OK:application/json 2020-03-03 14:23:07 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/notifications returned 200:OK:application/json 2020-03-03 14:23:07 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Found 7 devices, 7 bluetooth 2020-03-03 14:23:08 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/notifications returned 200:OK:application/json 2020-03-03 14:23:08 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Updated 0 notifications for 1 devices at 2020-03-03 14:23:08.253324+01:00 2020-03-03 14:23:08 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/activities?startTime=&size=10&offset=1 returned 200:OK:application/json 2020-03-03 14:23:08 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Updated last_called: {'serialNumber': 'G************H3S', 'timestamp': 1583217507466} 2020-03-03 14:23:08 DEBUG (MainThread) [custom_components.alexa_media] TV: Locale en-us timezone None 2020-03-03 14:23:08 DEBUG (MainThread) [custom_components.alexa_media] TV: DND False 2020-03-03 14:23:08 DEBUG (MainThread) [custom_components.alexa_media] Bathroom: Locale en-us timezone None 2020-03-03 14:23:08 DEBUG (MainThread) [custom_components.alexa_media] Bathroom: DND False 2020-03-03 14:23:08 DEBUG (MainThread) [custom_components.alexa_media] Kitchen: Locale en-us timezone None 2020-03-03 14:23:08 DEBUG (MainThread) [custom_components.alexa_media] Kitchen: DND False 2020-03-03 14:23:08 DEBUG (MainThread) [custom_components.alexa_media] Livingroom: Locale en-us timezone None 2020-03-03 14:23:08 DEBUG (MainThread) [custom_components.alexa_media] Livingroom: DND False 2020-03-03 14:23:08 DEBUG (MainThread) [custom_components.alexa_media] Frank's Echo Dot: Locale en-us timezone Europe/Copenhagen 2020-03-03 14:23:08 DEBUG (MainThread) [custom_components.alexa_media] Frank's Echo Dot: DND False 2020-03-03 14:23:08 DEBUG (MainThread) [custom_components.alexa_media] This Device: Locale en-gb timezone Europe/Copenhagen 2020-03-03 14:23:08 DEBUG (MainThread) [custom_components.alexa_media] This Device: DND False 2020-03-03 14:23:08 DEBUG (MainThread) [custom_components.alexa_media] Frank's Alexa Apps: Locale en-us timezone None 2020-03-03 14:23:08 DEBUG (MainThread) [custom_components.alexa_media] Frank's Alexa Apps: DND False 2020-03-03 14:23:08 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Existing: [, , , , , , ] New: []; Filtered out by not being in include: [] or in exclude: [] 2020-03-03 14:23:09 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket created: 2020-03-03 14:23:09 DEBUG (MainThread) [alexapy.alexawebsocket] Connecting to wss://dp-gw-na-js.amazon.com/?x-amz-device-type=ALEGCNGL9K0HM&x-amz-device-serial=131-1488076-9651502-1583241789000 with {'User-Agent': 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36', 'Accept': 'text/html,application/xhtml+xml, application/xml;q=0.9,*/*;q=0.8', 'Accept-Language': '*', 'Referer': 'https://alexa.amazon.com/spa/index.html', 'Cookie': 'session-id=137-4104098-5510033; session-id-time=2213718337l; ubid-main=131-1488076-9651502; session-token=nKB90uVVnHIQRnHhQS2uQkR2A3wRajq51MQ+WCqm8kWIxfxFpOMQl4SEPIRwiz5R8vtIbiyE8bLHDZQzDKQDBqMe0xzaXPbZKJ+TXLxa/SyiCQCZcJO0wyVQtXcsEQJa/kt6eS1przxf6Sf518sLou3+1zTC+VvqeqFeBvwmd3M2QPH8EAm9I2vnZvsD5ylU4gis6GXTjo7NGcJPQvznTDLu4RWYHiOrVZhi4E0hMAM=; x-main=izrB8xeVkrz9r7b6pdCdl2@2b@DiBAdQqwBvH?RkeOoCsSRYdA5nrhjCVufwMiXu; at-main=Atza|IwEBIMlWphT1FziftaDL2oW1YY6COQI1rx1RKG83TFKnurkkR6EvIvBSPNcSAcwOfWc0vdCtUxuyz2jmfTVmGruzVyoeNHaslZtVMP6MjKCmiVIF-woseNpGJE0TsBgDWRjTAE0j1Qe8sd5YXZ55xKMJrdF93jVzMPG4mj2I0X1z7GtZgmvQVFjl24IVTBDmIE-BHDcdc61Q5vZb_8fYMuEN0XERFlurww-0szsBcjZ7hMrGmbVd7q1il89R8jwDG5QtlpI75SeKfI-s5DPiObaAsuroD2vCTMiMHZfaVlNg89zHMZ6GR1w8Cu1KJJu-r1mG51xmFzOtBYAeVsJiF6F9f3VRs_XV0hs6LwS2qmASVDRVAEbKU-t74B9g4TaDsp1nOjq2CAX6uFLm1e-QA-I4pZfw; sess-at-main=u5Vv5dhunqT7LldvUN6iu0eqWaBsvp1pQaWD7QUOY+Y=; csrf=-718429675; ', 'Origin': 'https://alexa.amazon.com', 'csrf': '-718429675'} 2020-03-03 14:23:10 DEBUG (MainThread) [alexapy.alexawebsocket] Initating Async Handshake. 2020-03-03 14:23:10 DEBUG (MainThread) [alexapy.alexawebsocket] Starting message parsing loop. 2020-03-03 14:23:10 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding WebSocket Handshake MSG. 2020-03-03 14:23:10 DEBUG (MainThread) [alexapy.alexawebsocket] Received WebSocket: 0xe891f630 0x000000cd {"parameters":{"AlphaProtocolHandler.supportedEncodings":"GZIP","AlphaProtocolHandler.maxFragmentSize":"16000","AlphaProtocolHandler.receiveWindowSize":"16"},"protocolName":"A:H"}TUNE 2020-03-03 14:23:10 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding Gateway Handshake MSG. 2020-03-03 14:23:10 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding Gateway Register MSG. 2020-03-03 14:23:10 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket succesfully connected 2020-03-03 14:23:10 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket closed; retries exceeded; polling 2020-03-03 14:23:10 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket closed; reconnect #2 in 20s 2020-03-03 14:23:10 DEBUG (MainThread) [alexapy.alexawebsocket] Received WebSocket: MSG 0x00000361 0x586c30c5 f 0x00000001 0xcf59c17d 0x000000b9 ACK 0x00000003 1.0 0x00000024 01e09e62-f504-476c-85c8-9c97c8da26ed 0x00000064 0x0000016978ff598c 0x00000170a0909986 END FABE 2020-03-03 14:23:10 DEBUG (MainThread) [alexapy.alexawebsocket] Received ACK MSG for Registration. 2020-03-03 14:23:30 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket created: 2020-03-03 14:23:30 DEBUG (MainThread) [alexapy.alexawebsocket] Connecting to wss://dp-gw-na-js.amazon.com/?x-amz-device-type=ALEGCNGL9K0HM&x-amz-device-serial=131-1488076-9651502-1583241810000 with {'User-Agent': 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36', 'Accept': 'text/html,application/xhtml+xml, application/xml;q=0.9,*/*;q=0.8', 'Accept-Language': '*', 'Referer': 'https://alexa.amazon.com/spa/index.html', 'Cookie': 'session-id=137-4104098-5510033; session-id-time=2213718337l; ubid-main=131-1488076-9651502; session-token=nKB90uVVnHIQRnHhQS2uQkR2A3wRajq51MQ+WCqm8kWIxfxFpOMQl4SEPIRwiz5R8vtIbiyE8bLHDZQzDKQDBqMe0xzaXPbZKJ+TXLxa/SyiCQCZcJO0wyVQtXcsEQJa/kt6eS1przxf6Sf518sLou3+1zTC+VvqeqFeBvwmd3M2QPH8EAm9I2vnZvsD5ylU4gis6GXTjo7NGcJPQvznTDLu4RWYHiOrVZhi4E0hMAM=; x-main=izrB8xeVkrz9r7b6pdCdl2@2b@DiBAdQqwBvH?RkeOoCsSRYdA5nrhjCVufwMiXu; at-main=Atza|IwEBIMlWphT1FziftaDL2oW1YY6COQI1rx1RKG83TFKnurkkR6EvIvBSPNcSAcwOfWc0vdCtUxuyz2jmfTVmGruzVyoeNHaslZtVMP6MjKCmiVIF-woseNpGJE0TsBgDWRjTAE0j1Qe8sd5YXZ55xKMJrdF93jVzMPG4mj2I0X1z7GtZgmvQVFjl24IVTBDmIE-BHDcdc61Q5vZb_8fYMuEN0XERFlurww-0szsBcjZ7hMrGmbVd7q1il89R8jwDG5QtlpI75SeKfI-s5DPiObaAsuroD2vCTMiMHZfaVlNg89zHMZ6GR1w8Cu1KJJu-r1mG51xmFzOtBYAeVsJiF6F9f3VRs_XV0hs6LwS2qmASVDRVAEbKU-t74B9g4TaDsp1nOjq2CAX6uFLm1e-QA-I4pZfw; sess-at-main=u5Vv5dhunqT7LldvUN6iu0eqWaBsvp1pQaWD7QUOY+Y=; csrf=-718429675; ', 'Origin': 'https://alexa.amazon.com', 'csrf': '-718429675'} 2020-03-03 14:23:30 DEBUG (MainThread) [alexapy.alexawebsocket] Initating Async Handshake. 2020-03-03 14:23:30 DEBUG (MainThread) [alexapy.alexawebsocket] Starting message parsing loop. 2020-03-03 14:23:31 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding WebSocket Handshake MSG. 2020-03-03 14:23:31 DEBUG (MainThread) [alexapy.alexawebsocket] Received WebSocket: 0xe891f630 0x000000cd {"parameters":{"AlphaProtocolHandler.supportedEncodings":"GZIP","AlphaProtocolHandler.maxFragmentSize":"16000","AlphaProtocolHandler.receiveWindowSize":"16"},"protocolName":"A:H"}TUNE 2020-03-03 14:23:31 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding Gateway Handshake MSG. 2020-03-03 14:23:31 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding Gateway Register MSG. 2020-03-03 14:23:31 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket succesfully connected 2020-03-03 14:23:31 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket closed; retries exceeded; polling 2020-03-03 14:23:31 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket closed; reconnect #3 in 40s 2020-03-03 14:23:31 DEBUG (MainThread) [alexapy.alexawebsocket] Received WebSocket: MSG 0x00000361 0x3b5318bd f 0x00000001 0xfa7df3aa 0x000000b9 ACK 0x00000003 1.0 0x00000024 01e09e62-f504-476c-85c8-9c97c8da26ed 0x00000064 0x0000016978ff598c 0x00000170a090ea8e END FABE 2020-03-03 14:23:31 DEBUG (MainThread) [alexapy.alexawebsocket] Received ACK MSG for Registration. 2020-03-03 14:23:31 ERROR (MainThread) [alexapy.alexawebsocket] WebSocket Error: 2020-03-03 14:23:31 DEBUG (MainThread) [alexapy.alexawebsocket] WebSocket Connection Closed. result=None> 2020-03-03 14:23:31 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Received websocket error #0 2020-03-03 14:23:34 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/devices-v2/device returned 200:OK:application/json 2020-03-03 14:23:34 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/bluetooth?cached=false returned 200:OK:application/json 2020-03-03 14:23:35 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/device-preferences returned 200:OK:application/json 2020-03-03 14:23:35 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/dnd/device-status-list returned 200:OK:application/json 2020-03-03 14:23:35 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/notifications returned 200:OK:application/json 2020-03-03 14:23:35 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Found 7 devices, 7 bluetooth 2020-03-03 14:23:36 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/notifications returned 200:OK:application/json 2020-03-03 14:23:36 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Updated 0 notifications for 1 devices at 2020-03-03 14:23:36.291878+01:00 2020-03-03 14:23:36 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/activities?startTime=&size=10&offset=1 returned 200:OK:application/json 2020-03-03 14:23:36 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Updated last_called: {'serialNumber': 'G************H3S', 'timestamp': 1583217507466} 2020-03-03 14:23:36 DEBUG (MainThread) [custom_components.alexa_media] TV: Locale en-us timezone None 2020-03-03 14:23:36 DEBUG (MainThread) [custom_components.alexa_media] TV: DND False 2020-03-03 14:23:36 DEBUG (MainThread) [custom_components.alexa_media] Bathroom: Locale en-us timezone None 2020-03-03 14:23:36 DEBUG (MainThread) [custom_components.alexa_media] Bathroom: DND False 2020-03-03 14:23:36 DEBUG (MainThread) [custom_components.alexa_media] Kitchen: Locale en-us timezone None 2020-03-03 14:23:36 DEBUG (MainThread) [custom_components.alexa_media] Kitchen: DND False 2020-03-03 14:23:36 DEBUG (MainThread) [custom_components.alexa_media] Livingroom: Locale en-us timezone None 2020-03-03 14:23:36 DEBUG (MainThread) [custom_components.alexa_media] Livingroom: DND False 2020-03-03 14:23:36 DEBUG (MainThread) [custom_components.alexa_media] Frank's Echo Dot: Locale en-us timezone Europe/Copenhagen 2020-03-03 14:23:36 DEBUG (MainThread) [custom_components.alexa_media] Frank's Echo Dot: DND False 2020-03-03 14:23:36 DEBUG (MainThread) [custom_components.alexa_media] This Device: Locale en-gb timezone Europe/Copenhagen 2020-03-03 14:23:36 DEBUG (MainThread) [custom_components.alexa_media] This Device: DND False 2020-03-03 14:23:36 DEBUG (MainThread) [custom_components.alexa_media] Frank's Alexa Apps: Locale en-us timezone None 2020-03-03 14:23:36 DEBUG (MainThread) [custom_components.alexa_media] Frank's Alexa Apps: DND False 2020-03-03 14:23:36 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Existing: [, , , , , , ] New: []; Filtered out by not being in include: [] or in exclude: [] 2020-03-03 14:23:40 ERROR (MainThread) [alexapy.alexawebsocket] WebSocket Error: 2020-03-03 14:23:40 DEBUG (MainThread) [alexapy.alexawebsocket] WebSocket Connection Closed. result=None> 2020-03-03 14:23:40 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Received websocket error #1 2020-03-03 14:23:41 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/devices-v2/device returned 200:OK:application/json 2020-03-03 14:23:41 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/bluetooth?cached=false returned 200:OK:application/json 2020-03-03 14:23:42 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/device-preferences returned 200:OK:application/json 2020-03-03 14:23:42 ERROR (MainThread) [alexapy.alexawebsocket] WebSocket Error: 2020-03-03 14:23:42 DEBUG (MainThread) [alexapy.alexawebsocket] WebSocket Connection Closed. result=None> 2020-03-03 14:23:42 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Received websocket error #2 2020-03-03 14:23:42 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/dnd/device-status-list returned 200:OK:application/json 2020-03-03 14:23:42 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/notifications returned 200:OK:application/json 2020-03-03 14:23:42 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Found 7 devices, 7 bluetooth 2020-03-03 14:23:43 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/notifications returned 200:OK:application/json 2020-03-03 14:23:43 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Updated 0 notifications for 1 devices at 2020-03-03 14:23:43.622524+01:00 2020-03-03 14:23:44 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/activities?startTime=&size=10&offset=1 returned 200:OK:application/json 2020-03-03 14:23:44 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Updated last_called: {'serialNumber': 'G************H3S', 'timestamp': 1583217507466} 2020-03-03 14:23:44 DEBUG (MainThread) [custom_components.alexa_media] TV: Locale en-us timezone None 2020-03-03 14:23:44 DEBUG (MainThread) [custom_components.alexa_media] TV: DND False 2020-03-03 14:23:44 DEBUG (MainThread) [custom_components.alexa_media] Bathroom: Locale en-us timezone None 2020-03-03 14:23:44 DEBUG (MainThread) [custom_components.alexa_media] Bathroom: DND False 2020-03-03 14:23:44 DEBUG (MainThread) [custom_components.alexa_media] Kitchen: Locale en-us timezone None 2020-03-03 14:23:44 DEBUG (MainThread) [custom_components.alexa_media] Kitchen: DND False 2020-03-03 14:23:44 DEBUG (MainThread) [custom_components.alexa_media] Livingroom: Locale en-us timezone None 2020-03-03 14:23:44 DEBUG (MainThread) [custom_components.alexa_media] Livingroom: DND False 2020-03-03 14:23:44 DEBUG (MainThread) [custom_components.alexa_media] Frank's Echo Dot: Locale en-us timezone Europe/Copenhagen 2020-03-03 14:23:44 DEBUG (MainThread) [custom_components.alexa_media] Frank's Echo Dot: DND False 2020-03-03 14:23:44 DEBUG (MainThread) [custom_components.alexa_media] This Device: Locale en-gb timezone Europe/Copenhagen 2020-03-03 14:23:44 DEBUG (MainThread) [custom_components.alexa_media] This Device: DND False 2020-03-03 14:23:44 DEBUG (MainThread) [custom_components.alexa_media] Frank's Alexa Apps: Locale en-us timezone None 2020-03-03 14:23:44 DEBUG (MainThread) [custom_components.alexa_media] Frank's Alexa Apps: DND False 2020-03-03 14:23:44 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Existing: [, , , , , , ] New: []; Filtered out by not being in include: [] or in exclude: [] 2020-03-03 14:23:50 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/devices-v2/device returned 200:OK:application/json 2020-03-03 14:23:50 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/bluetooth?cached=false returned 200:OK:application/json 2020-03-03 14:23:51 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/device-preferences returned 200:OK:application/json 2020-03-03 14:23:51 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/dnd/device-status-list returned 200:OK:application/json 2020-03-03 14:23:51 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/notifications returned 200:OK:application/json 2020-03-03 14:23:51 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Found 7 devices, 7 bluetooth 2020-03-03 14:23:52 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/notifications returned 200:OK:application/json 2020-03-03 14:23:52 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Updated 0 notifications for 1 devices at 2020-03-03 14:23:52.019037+01:00 2020-03-03 14:23:52 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/activities?startTime=&size=10&offset=1 returned 200:OK:application/json 2020-03-03 14:23:52 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Updated last_called: {'serialNumber': 'G************H3S', 'timestamp': 1583217507466} 2020-03-03 14:23:52 DEBUG (MainThread) [custom_components.alexa_media] TV: Locale en-us timezone None 2020-03-03 14:23:52 DEBUG (MainThread) [custom_components.alexa_media] TV: DND False 2020-03-03 14:23:52 DEBUG (MainThread) [custom_components.alexa_media] Bathroom: Locale en-us timezone None 2020-03-03 14:23:52 DEBUG (MainThread) [custom_components.alexa_media] Bathroom: DND False 2020-03-03 14:23:52 DEBUG (MainThread) [custom_components.alexa_media] Kitchen: Locale en-us timezone None 2020-03-03 14:23:52 DEBUG (MainThread) [custom_components.alexa_media] Kitchen: DND False 2020-03-03 14:23:52 DEBUG (MainThread) [custom_components.alexa_media] Livingroom: Locale en-us timezone None 2020-03-03 14:23:52 DEBUG (MainThread) [custom_components.alexa_media] Livingroom: DND False 2020-03-03 14:23:52 DEBUG (MainThread) [custom_components.alexa_media] Frank's Echo Dot: Locale en-us timezone Europe/Copenhagen 2020-03-03 14:23:52 DEBUG (MainThread) [custom_components.alexa_media] Frank's Echo Dot: DND False 2020-03-03 14:23:52 DEBUG (MainThread) [custom_components.alexa_media] This Device: Locale en-gb timezone Europe/Copenhagen 2020-03-03 14:23:52 DEBUG (MainThread) [custom_components.alexa_media] This Device: DND False 2020-03-03 14:23:52 DEBUG (MainThread) [custom_components.alexa_media] Frank's Alexa Apps: Locale en-us timezone None 2020-03-03 14:23:52 DEBUG (MainThread) [custom_components.alexa_media] Frank's Alexa Apps: DND False 2020-03-03 14:23:52 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Existing: [, , , , , , ] New: []; Filtered out by not being in include: [] or in exclude: [] 2020-03-03 14:24:00 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket created: 2020-03-03 14:24:00 DEBUG (MainThread) [alexapy.alexawebsocket] Connecting to wss://dp-gw-na-js.amazon.com/?x-amz-device-type=ALEGCNGL9K0HM&x-amz-device-serial=131-1488076-9651502-1583241840000 with {'User-Agent': 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36', 'Accept': 'text/html,application/xhtml+xml, application/xml;q=0.9,*/*;q=0.8', 'Accept-Language': '*', 'Referer': 'https://alexa.amazon.com/spa/index.html', 'Cookie': 'session-id=137-4104098-5510033; session-id-time=2213718337l; ubid-main=131-1488076-9651502; session-token=nKB90uVVnHIQRnHhQS2uQkR2A3wRajq51MQ+WCqm8kWIxfxFpOMQl4SEPIRwiz5R8vtIbiyE8bLHDZQzDKQDBqMe0xzaXPbZKJ+TXLxa/SyiCQCZcJO0wyVQtXcsEQJa/kt6eS1przxf6Sf518sLou3+1zTC+VvqeqFeBvwmd3M2QPH8EAm9I2vnZvsD5ylU4gis6GXTjo7NGcJPQvznTDLu4RWYHiOrVZhi4E0hMAM=; x-main=izrB8xeVkrz9r7b6pdCdl2@2b@DiBAdQqwBvH?RkeOoCsSRYdA5nrhjCVufwMiXu; at-main=Atza|IwEBIMlWphT1FziftaDL2oW1YY6COQI1rx1RKG83TFKnurkkR6EvIvBSPNcSAcwOfWc0vdCtUxuyz2jmfTVmGruzVyoeNHaslZtVMP6MjKCmiVIF-woseNpGJE0TsBgDWRjTAE0j1Qe8sd5YXZ55xKMJrdF93jVzMPG4mj2I0X1z7GtZgmvQVFjl24IVTBDmIE-BHDcdc61Q5vZb_8fYMuEN0XERFlurww-0szsBcjZ7hMrGmbVd7q1il89R8jwDG5QtlpI75SeKfI-s5DPiObaAsuroD2vCTMiMHZfaVlNg89zHMZ6GR1w8Cu1KJJu-r1mG51xmFzOtBYAeVsJiF6F9f3VRs_XV0hs6LwS2qmASVDRVAEbKU-t74B9g4TaDsp1nOjq2CAX6uFLm1e-QA-I4pZfw; sess-at-main=u5Vv5dhunqT7LldvUN6iu0eqWaBsvp1pQaWD7QUOY+Y=; csrf=-718429675; ', 'Origin': 'https://alexa.amazon.com', 'csrf': '-718429675'} 2020-03-03 14:24:00 DEBUG (MainThread) [alexapy.alexawebsocket] Initating Async Handshake. 2020-03-03 14:24:00 DEBUG (MainThread) [alexapy.alexawebsocket] Starting message parsing loop. 2020-03-03 14:24:01 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding WebSocket Handshake MSG. 2020-03-03 14:24:01 DEBUG (MainThread) [alexapy.alexawebsocket] Received WebSocket: 0xbafef3f3 0x000000cd {"protocolName":"A:H","parameters":{"AlphaProtocolHandler.supportedEncodings":"GZIP","AlphaProtocolHandler.maxFragmentSize":"16000","AlphaProtocolHandler.receiveWindowSize":"16"}}TUNE 2020-03-03 14:24:01 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding Gateway Handshake MSG. 2020-03-03 14:24:01 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding Gateway Register MSG. 2020-03-03 14:24:01 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket succesfully connected 2020-03-03 14:24:01 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket closed; retries exceeded; polling 2020-03-03 14:24:01 DEBUG (MainThread) [alexapy.alexawebsocket] Received WebSocket: MSG 0x00000361 0x3024853b f 0x00000001 0xc989bf4c 0x000000b9 ACK 0x00000003 1.0 0x00000024 01e09e62-f504-476c-85c8-9c97c8da26ed 0x00000064 0x0000016978ff598c 0x00000170a0915f98 END FABE 2020-03-03 14:24:01 DEBUG (MainThread) [alexapy.alexawebsocket] Received ACK MSG for Registration. 2020-03-03 14:24:01 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/devices-v2/device returned 200:OK:application/json 2020-03-03 14:24:01 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/bluetooth?cached=false returned 200:OK:application/json 2020-03-03 14:24:02 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket created: 2020-03-03 14:24:02 DEBUG (MainThread) [alexapy.alexawebsocket] Connecting to wss://dp-gw-na-js.amazon.com/?x-amz-device-type=ALEGCNGL9K0HM&x-amz-device-serial=131-1488076-9651502-1583241842000 with {'User-Agent': 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36', 'Accept': 'text/html,application/xhtml+xml, application/xml;q=0.9,*/*;q=0.8', 'Accept-Language': '*', 'Referer': 'https://alexa.amazon.com/spa/index.html', 'Cookie': 'session-id=137-4104098-5510033; session-id-time=2213718337l; ubid-main=131-1488076-9651502; session-token=nKB90uVVnHIQRnHhQS2uQkR2A3wRajq51MQ+WCqm8kWIxfxFpOMQl4SEPIRwiz5R8vtIbiyE8bLHDZQzDKQDBqMe0xzaXPbZKJ+TXLxa/SyiCQCZcJO0wyVQtXcsEQJa/kt6eS1przxf6Sf518sLou3+1zTC+VvqeqFeBvwmd3M2QPH8EAm9I2vnZvsD5ylU4gis6GXTjo7NGcJPQvznTDLu4RWYHiOrVZhi4E0hMAM=; x-main=izrB8xeVkrz9r7b6pdCdl2@2b@DiBAdQqwBvH?RkeOoCsSRYdA5nrhjCVufwMiXu; at-main=Atza|IwEBIMlWphT1FziftaDL2oW1YY6COQI1rx1RKG83TFKnurkkR6EvIvBSPNcSAcwOfWc0vdCtUxuyz2jmfTVmGruzVyoeNHaslZtVMP6MjKCmiVIF-woseNpGJE0TsBgDWRjTAE0j1Qe8sd5YXZ55xKMJrdF93jVzMPG4mj2I0X1z7GtZgmvQVFjl24IVTBDmIE-BHDcdc61Q5vZb_8fYMuEN0XERFlurww-0szsBcjZ7hMrGmbVd7q1il89R8jwDG5QtlpI75SeKfI-s5DPiObaAsuroD2vCTMiMHZfaVlNg89zHMZ6GR1w8Cu1KJJu-r1mG51xmFzOtBYAeVsJiF6F9f3VRs_XV0hs6LwS2qmASVDRVAEbKU-t74B9g4TaDsp1nOjq2CAX6uFLm1e-QA-I4pZfw; sess-at-main=u5Vv5dhunqT7LldvUN6iu0eqWaBsvp1pQaWD7QUOY+Y=; csrf=-718429675; ', 'Origin': 'https://alexa.amazon.com', 'csrf': '-718429675'} 2020-03-03 14:24:02 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/device-preferences returned 200:OK:application/json 2020-03-03 14:24:02 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/dnd/device-status-list returned 200:OK:application/json 2020-03-03 14:24:02 DEBUG (MainThread) [alexapy.alexawebsocket] Initating Async Handshake. 2020-03-03 14:24:02 DEBUG (MainThread) [alexapy.alexawebsocket] Starting message parsing loop. 2020-03-03 14:24:02 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding WebSocket Handshake MSG. 2020-03-03 14:24:02 DEBUG (MainThread) [alexapy.alexawebsocket] Received WebSocket: 0xe891f630 0x000000cd {"parameters":{"AlphaProtocolHandler.supportedEncodings":"GZIP","AlphaProtocolHandler.maxFragmentSize":"16000","AlphaProtocolHandler.receiveWindowSize":"16"},"protocolName":"A:H"}TUNE 2020-03-03 14:24:02 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding Gateway Handshake MSG. 2020-03-03 14:24:02 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding Gateway Register MSG. 2020-03-03 14:24:02 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket succesfully connected 2020-03-03 14:24:02 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket closed; retries exceeded; polling 2020-03-03 14:24:02 DEBUG (MainThread) [alexapy.alexawebsocket] Received WebSocket: MSG 0x00000361 0x4e7a5abd f 0x00000001 0xf9574b7c 0x000000b9 ACK 0x00000003 1.0 0x00000024 01e09e62-f504-476c-85c8-9c97c8da26ed 0x00000064 0x0000016978ff598c 0x00000170a09165d4 END FABE 2020-03-03 14:24:02 DEBUG (MainThread) [alexapy.alexawebsocket] Received ACK MSG for Registration. 2020-03-03 14:24:03 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/notifications returned 200:OK:application/json 2020-03-03 14:24:03 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Found 7 devices, 7 bluetooth 2020-03-03 14:24:03 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/devices-v2/device returned 200:OK:application/json 2020-03-03 14:24:03 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/notifications returned 200:OK:application/json 2020-03-03 14:24:03 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Updated 0 notifications for 1 devices at 2020-03-03 14:24:03.450752+01:00 2020-03-03 14:24:03 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/bluetooth?cached=false returned 200:OK:application/json 2020-03-03 14:24:03 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/activities?startTime=&size=10&offset=1 returned 200:OK:application/json 2020-03-03 14:24:03 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Updated last_called: {'serialNumber': 'G************H3S', 'timestamp': 1583217507466} 2020-03-03 14:24:03 DEBUG (MainThread) [custom_components.alexa_media] TV: Locale en-us timezone None 2020-03-03 14:24:03 DEBUG (MainThread) [custom_components.alexa_media] TV: DND False 2020-03-03 14:24:03 DEBUG (MainThread) [custom_components.alexa_media] Bathroom: Locale en-us timezone None 2020-03-03 14:24:03 DEBUG (MainThread) [custom_components.alexa_media] Bathroom: DND False 2020-03-03 14:24:03 DEBUG (MainThread) [custom_components.alexa_media] Kitchen: Locale en-us timezone None 2020-03-03 14:24:03 DEBUG (MainThread) [custom_components.alexa_media] Kitchen: DND False 2020-03-03 14:24:03 DEBUG (MainThread) [custom_components.alexa_media] Livingroom: Locale en-us timezone None 2020-03-03 14:24:03 DEBUG (MainThread) [custom_components.alexa_media] Livingroom: DND False 2020-03-03 14:24:03 DEBUG (MainThread) [custom_components.alexa_media] Frank's Echo Dot: Locale en-us timezone Europe/Copenhagen 2020-03-03 14:24:03 DEBUG (MainThread) [custom_components.alexa_media] Frank's Echo Dot: DND False 2020-03-03 14:24:03 DEBUG (MainThread) [custom_components.alexa_media] This Device: Locale en-gb timezone Europe/Copenhagen 2020-03-03 14:24:03 DEBUG (MainThread) [custom_components.alexa_media] This Device: DND False 2020-03-03 14:24:03 DEBUG (MainThread) [custom_components.alexa_media] Frank's Alexa Apps: Locale en-us timezone None 2020-03-03 14:24:03 DEBUG (MainThread) [custom_components.alexa_media] Frank's Alexa Apps: DND False 2020-03-03 14:24:03 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Existing: [, , , , , , ] New: []; Filtered out by not being in include: [] or in exclude: [] ```
alandtse commented 4 years ago

What locale are you supposed to be in? You have multiple devices spread across different time zones. Are you supposed to be logging into amazon.com as opposed to a local amazon domain?

frlarsendeloitte commented 4 years ago

Thanks for your reply! I'm in Europe/Copenhagen, and I can see the other devices (which are Sonos speakers) are the en-us locale. I'm using a amazon.com account in my Echo. I seem to remember that it was the only account type that was possible to setup the Alexa device with 'back in the day'. I don't use the other devices in Alexa Media, but I can't find a way to disable them through HA's Integrations. Should I make the manual Alexa Media Player configuration in configuration.yaml to exclude these devices instead?

frlarsendeloitte commented 4 years ago

I've managed to exclude the devices, but I'm still getting an endless loop of the log, I've pasted below. Is this still a problem with locale, you think?

``` 2020-03-04 12:15:13 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket created: 2020-03-04 12:15:13 DEBUG (MainThread) [alexapy.alexawebsocket] Connecting to wss://dp-gw-na-js.amazon.com/?x-amz-device-type=ALEGCNGL9K0HM&x-amz-device-serial=131-1488076-9651502-1583320513000 with {'User-Agent': 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36', 'Accept': 'text/html,application/xhtml+xml, application/xml;q=0.9,*/*;q=0.8', 'Accept-Language': '*', 'Referer': 'https://alexa.amazon.com/spa/index.html', 'Cookie': 'session-id=137-4104098-5510033; session-id-time=2213718337l; ubid-main=131-1488076-9651502; session-token=nKB90uVVnHIQRnHhQS2uQkR2A3wRajq51MQ+WCqm8kWIxfxFpOMQl4SEPIRwiz5R8vtIbiyE8bLHDZQzDKQDBqMe0xzaXPbZKJ+TXLxa/SyiCQCZcJO0wyVQtXcsEQJa/kt6eS1przxf6Sf518sLou3+1zTC+VvqeqFeBvwmd3M2QPH8EAm9I2vnZvsD5ylU4gis6GXTjo7NGcJPQvznTDLu4RWYHiOrVZhi4E0hMAM=; x-main=izrB8xeVkrz9r7b6pdCdl2@2b@DiBAdQqwBvH?RkeOoCsSRYdA5nrhjCVufwMiXu; at-main=Atza|IwEBIMlWphT1FziftaDL2oW1YY6COQI1rx1RKG83TFKnurkkR6EvIvBSPNcSAcwOfWc0vdCtUxuyz2jmfTVmGruzVyoeNHaslZtVMP6MjKCmiVIF-woseNpGJE0TsBgDWRjTAE0j1Qe8sd5YXZ55xKMJrdF93jVzMPG4mj2I0X1z7GtZgmvQVFjl24IVTBDmIE-BHDcdc61Q5vZb_8fYMuEN0XERFlurww-0szsBcjZ7hMrGmbVd7q1il89R8jwDG5QtlpI75SeKfI-s5DPiObaAsuroD2vCTMiMHZfaVlNg89zHMZ6GR1w8Cu1KJJu-r1mG51xmFzOtBYAeVsJiF6F9f3VRs_XV0hs6LwS2qmASVDRVAEbKU-t74B9g4TaDsp1nOjq2CAX6uFLm1e-QA-I4pZfw; sess-at-main=u5Vv5dhunqT7LldvUN6iu0eqWaBsvp1pQaWD7QUOY+Y=; csrf=-718429675; ', 'Origin': 'https://alexa.amazon.com', 'csrf': '-718429675'} 2020-03-04 12:15:14 DEBUG (MainThread) [alexapy.alexawebsocket] Initating Async Handshake. 2020-03-04 12:15:14 DEBUG (MainThread) [alexapy.alexawebsocket] Starting message parsing loop. 2020-03-04 12:15:14 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding WebSocket Handshake MSG. 2020-03-04 12:15:14 DEBUG (MainThread) [alexapy.alexawebsocket] Received WebSocket: 0xe891f630 0x000000cd {"parameters":{"AlphaProtocolHandler.supportedEncodings":"GZIP","AlphaProtocolHandler.maxFragmentSize":"16000","AlphaProtocolHandler.receiveWindowSize":"16"},"protocolName":"A:H"}TUNE 2020-03-04 12:15:14 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding Gateway Handshake MSG. 2020-03-04 12:15:14 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding Gateway Register MSG. 2020-03-04 12:15:14 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket succesfully connected 2020-03-04 12:15:14 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket closed; retries exceeded; polling 2020-03-04 12:15:14 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket closed; reconnect #3 in 40s 2020-03-04 12:15:14 DEBUG (MainThread) [alexapy.alexawebsocket] Received WebSocket: MSG 0x00000361 0x4fba0a39 f 0x00000001 0xfc831976 0x000000b9 ACK 0x00000003 1.0 0x00000024 01e09e62-f504-476c-85c8-9c97c8da26ed 0x00000064 0x0000016978ff598c 0x00000170a541da62 END FABE 2020-03-04 12:15:14 DEBUG (MainThread) [alexapy.alexawebsocket] Received ACK MSG for Registration. 2020-03-04 12:15:16 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/devices-v2/device returned 200:OK:application/json 2020-03-04 12:15:16 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/bluetooth?cached=false returned 200:OK:application/json 2020-03-04 12:15:17 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/device-preferences returned 200:OK:application/json 2020-03-04 12:15:17 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/dnd/device-status-list returned 200:OK:application/json 2020-03-04 12:15:17 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/notifications returned 200:OK:application/json 2020-03-04 12:15:17 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Found 7 devices, 7 bluetooth 2020-03-04 12:15:18 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/notifications returned 200:OK:application/json 2020-03-04 12:15:18 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Updated 0 notifications for 1 devices at 2020-03-04 12:15:18.160831+01:00 2020-03-04 12:15:18 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/activities?startTime=&size=10&offset=1 returned 200:OK:application/json 2020-03-04 12:15:18 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Updated last_called: {'serialNumber': 'G************H3S', 'timestamp': 1583303845827} 2020-03-04 12:15:18 DEBUG (MainThread) [custom_components.alexa_media] Frank's Echo Dot: Locale en-us timezone Europe/Copenhagen 2020-03-04 12:15:18 DEBUG (MainThread) [custom_components.alexa_media] Frank's Echo Dot: DND False 2020-03-04 12:15:18 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Existing: [] New: []; Filtered out by not being in include: [] or in exclude: ['TV', 'Bathroom', 'Kitchen', 'Livingroom', 'This Device', "Frank's Alexa Apps"] 2020-03-04 12:15:23 ERROR (MainThread) [alexapy.alexawebsocket] WebSocket Error: 2020-03-04 12:15:23 DEBUG (MainThread) [alexapy.alexawebsocket] WebSocket Connection Closed. result=None> 2020-03-04 12:15:23 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Received websocket error #0 ```
alandtse commented 4 years ago

Sorry, I don't think the exclusions make a difference. The reason I was asking is if you're connected to the wrong domain, it's possible that's why the websockets are being disconnected on you. However, you should only switch domains if your devices are enabled on that domain. I don't think there's an Alexa domain for Denmark. The way we normally ask people to check is to login to alexa.amazon.com and see if they see their devices. Sometimes they have to change their domain to see everything.

If you're comfortable using the developer tools for web browsers, one thing you could try to check is using the Alexa webapp at alexa.amazon.com. That is where we copied the websocket logic from. You could see whether that's also losing the websocket connection and if not, if you pulled the connection string, that could help debug this.

Otherwise, I think the only thing we can do for you is to disable websockets so you don't get the attempts constantly failing. There is probably bug in the sense it should detect this state and give up. The issue is it does successfully connect and resets the counter.

frlarsendeloitte commented 4 years ago

Thanks again for your help.. I'm currently logged into the webapp on the .com domain. My device is there and fully functioning. I do know how to use the DevTool for Chrome, but I'm not used to look at network traffic. I can't seem to find any errors or info regarding the websockets. Can you point me in the right direction regarding where I can find the connection string?

If there's something else I should provide or do, please let me know.

alandtse commented 4 years ago

If you go into Devtools, there's a Network tab. Reload the alexa.amazon.com page after logging in and it will show you a bunch of connection info. You can filter the info down to websockets ("WS") next to Doc and Manifest. image

Take a look at the behavior as you change volume to see if it's connecting for you. Here's an example message I've redacted. It shows also the tabs you should be on to view message content. image

If you're seeing proper websocket messages in the client without disconnects, then I may need more info from you on the messages you're actually sending. We probably should not use GitHub to share, so Discord may be best. If you're not seeing any websocket at all, it could just be a region issue and I'd just have make sure it stops trying to connect.

frlarsendeloitte commented 4 years ago

I can see the websocket when reloading the page: wss://dp-gw-na-js.amazon.com/?x-amz-device-type=ALEGCNGL9K0HM&x-amz-device-serial=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

I can't see any problems or errors when I'm fx turning down the volume: MSG 0x00000362 0x5647251f f 0x00000001 0xea725e3f 0x00000225 GWM MSG 0x0000b479 0x0000005c urn:tcomm-endpoint:service:serviceName:DeeWebsiteMessagingService:domain:prod:realm:USAmazon 0x00000081 urn:tcomm-endpoint:device:customerId:xxxxxxxxxxxxxxxx:deviceType:ALEGCNGL9K0HM:deviceSerialNumber:xxxxxxxxxxxxxxxxx {"payload":"{\"destinationUserId\":\"xxxxxxxxxxxx\",\"dopplerId\":{\"deviceType\":\"A3S5BH2HU6VAYF\",\"deviceSerialNumber\":\"xxxxxxxxxxxxx\"},\"volumeSetting\":43,\"isMuted\":false}","command":"PUSH_VOLUME_CHANGE"}FABE

Let me know if and how you want some more info from me :) Thanks!

alandtse commented 4 years ago

Thanks. Do you feel comfortable editing the alexapy library files or custom installing it? I'd like to test if it's the fact we have compression on so we'd have to modify the alexapy/alexawebsocket.py around line 252 to disable compression. compress=0

        await self.websocket.send_bytes(bytes("0x99d4f71a 0x0000001d A:HTUNE", "utf-8"), compress=0)
        await asyncio.sleep(0.1)
        await self.websocket.send_bytes(self._encode_ws_handshake(), compress=0)
        await asyncio.sleep(0.1)
        await self.websocket.send_bytes(self._encode_gw_handshake(), compress=0)
        await asyncio.sleep(0.1)
        await self.websocket.send_bytes(self._encode_gw_register(), compress=0)

EDIT: realized the syntax changed

frlarsendeloitte commented 4 years ago

I thought I was comfortable, but I can't seem to find the correct github library that contains the alexawebsocket.py file. Can you point me in the right direction for the basics? I guess that I just have to dump the correct alexapy directory in the custom_components, right? Thanks!

alandtse commented 4 years ago

This entry describes how you can install alexapy into custom_components. You'll need to remove the directory later or it'll always use that version.

frlarsendeloitte commented 4 years ago

Installed it and changed alexawebsocket.py, but it doesn't seem to use the custom_components/alexapy as you can see here: 2020-03-12 01:33:02 DEBUG (MainThread) [alexapy.alexawebsocket] WebSocket Connection Closed. <Task finished coro=<WebsocketEchoClient.process_messages() done, defined at /usr/local/lib/python3.7/site-packages/alexapy/alexawebsocket.py:146> result=None>

Anything else I'm missing to add/configure here?

alandtse commented 4 years ago

You need to run the pip3 install --target /config --no-dependencies alexapy command in the right python environment so it knows you have a custom_components install. Just copying the library there isn't enough.

frlarsendeloitte commented 4 years ago

Got it working now, but I'm afraid it didn't make a change:

2020-03-12 10:15:43 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Existing: [<Entity TV: standby>, <Entity Bathroom: idle>, <Entity Kitchen: standby>, <Entity Livingroom: standby>, <Entity Frank's Echo Dot: standby>, <Entity This Device: standby>, <Entity Frank's Alexa Apps: unavailable>] New: []; Filtered out by not being in include: [] or in exclude: [] 2020-03-12 10:15:43 ERROR (MainThread) [alexapy.alexawebsocket] WebSocket Error: <class 'aiohttp.streams.EofStream'> 2020-03-12 10:15:43 DEBUG (MainThread) [alexapy.alexawebsocket] WebSocket Connection Closed. <Task finished coro=<WebsocketEchoClient.process_messages() done, defined at /config/alexapy/alexawebsocket.py:146> result=None> 2020-03-12 10:15:43 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Received websocket error #2 <class 'aiohttp.streams.EofStream'>

Let me know, if you want me to test anything else.

alandtse commented 4 years ago

Can you provide the full websocket connection cycle starting from Connecting to wss://dp?

I want to check the full handshake is succeeding. My next thought was trying to extend the time between the registration packets from the 0.1 that it's set to right now for the sleep command.

frlarsendeloitte commented 4 years ago

Here you go:

2020-03-14 21:23:24 DEBUG (MainThread) [alexapy.alexawebsocket] Connecting to wss://dp-gw-na-js.amazon.com/?x-amz-device-type=ALEGCNGL9K0HM&x-amz-device-serial=131-1488076-9651502-1584217404000 with {'User-Agent': 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36', 'Accept': 'text/html,application/xhtml+xml, application/xml;q=0.9,*/*;q=0.8', 'Accept-Language': '*', 'Referer': 'https://alexa.amazon.com/spa/index.html', 'Cookie': 'session-id=137-4104098-5510033; session-id-time=2214937143l; ubid-main=131-1488076-9651502; session-token=PTuRouseVJwGOzLdQA4jb+8NO9Od9WMcZ5ZLgh0Xpa16nwTlghEXAVpadBvzetQMBba9QV7/r0KptiX/+2UVaRgqSsNIyUDTRsIOKoip0/FPlVHtzt+YOEi+CiMOu6SL7LNk2UhyunF2fBVPQQFyXkfzYL2rrjMFNxLugrVv89mJWCYCOWBpK9UsxKUlaJCczSt33oCjMBcmrY98xkcqdp6yC7wq/AhC/jh5wdHHx3E=; x-main=a3nzFbdF9@zVTTy@U83MdXJOdYo8Vjv4aha69vxO@qQ59ucMl0q@H1T@UA9bu9e3; at-main=Atza|IwEBIBjmSz1Qs4gDRUHWyL34SP_Utc1oChan3JKPCFMnewArFtmH9swpwllq5lG20WdocuMC9lyG369OeBTX8s3qGKDiqbW4iYUVKuyZq24wtm0vHPIxDe-n98DmJPijAcCPbI_GpZ-Okyzi27b-4Aus2Pin-RciDYM8gcPKmHoK7NWzIFxpqsrYJFGQgxJaCYnDKMIZo85gGz5JcRzB8snKKL-PLJsZD_x7nI0UmANoS1gTe3Txu1D8jlnaJ1HQ99D5Q59XbU59zhjANc5P2776g43SlVaKNJ_u4kFFF4KBcB6GlLvoi5DOgpbWU7rc_5dVrbxCpYzCbgM7w7jA1EDJA92f-l899xlCTkG4tCcwS0Bvi1OtPzMfQP7bBcRQQ-VyN7QShS-MFQurX6xGTV3Lrgr9; sess-at-main=yWwGA043qqn5+RYEvT2zEQ9AwBctDzZVWRAWg5wFf80=; csrf=-718429675; ', 'Origin': 'https://alexa.amazon.com', 'csrf': '-718429675'}
2020-03-14 21:23:24 DEBUG (MainThread) [alexapy.alexawebsocket] Initating Async Handshake.
2020-03-14 21:23:24 DEBUG (MainThread) [alexapy.alexawebsocket] Starting message parsing loop.
2020-03-14 21:23:24 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding WebSocket Handshake MSG.
2020-03-14 21:23:24 DEBUG (MainThread) [alexapy.alexawebsocket] Received WebSocket: 0xbafef3f3 0x000000cd {"protocolName":"A:H","parameters":{"AlphaProtocolHandler.supportedEncodings":"GZIP","AlphaProtocolHandler.maxFragmentSize":"16000","AlphaProtocolHandler.receiveWindowSize":"16"}}TUNE
2020-03-14 21:23:24 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding Gateway Handshake MSG.
2020-03-14 21:23:24 ERROR (MainThread) [alexapy.alexawebsocket] WebSocket Error: <class 'aiohttp.streams.EofStream'>
2020-03-14 21:23:24 DEBUG (MainThread) [alexapy.alexawebsocket] WebSocket Connection Closed. <Task finished coro=<WebsocketEchoClient.process_messages() done, defined at /config/alexapy/alexawebsocket.py:146> result=None>
2020-03-14 21:23:24 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Received websocket error #0 <class 'aiohttp.streams.EofStream'>
2020-03-14 21:23:24 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding Gateway Register MSG.
2020-03-14 21:23:24 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket succesfully connected
2020-03-14 21:23:24 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket closed; retries exceeded; polling
2020-03-14 21:23:24 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket closed; reconnect #3 in 40s
2020-03-14 21:23:24 DEBUG (MainThread) [alexapy.alexawebsocket] Received WebSocket: MSG 0x00000361 0x262793f7 f 0x00000001 0xa7ba147f 0x000000b9 ACK 0x00000003 1.0 0x00000024 01e09e62-f504-476c-85c8-9c97c8da26ed 0x00000064 0x0000016978ff598c 0x00000170dab78ea2 END FABE
2020-03-14 21:23:24 DEBUG (MainThread) [alexapy.alexawebsocket] Received ACK MSG for Registration.
2020-03-14 21:23:25 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket created: <alexapy.alexawebsocket.WebsocketEchoClient object at 0x7ff32281bd10>
2020-03-14 21:23:25 DEBUG (MainThread) [alexapy.alexawebsocket] Connecting to wss://dp-gw-na-js.amazon.com/?x-amz-device-type=ALEGCNGL9K0HM&x-amz-device-serial=131-1488076-9651502-1584217405000 with {'User-Agent': 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36', 'Accept': 'text/html,application/xhtml+xml, application/xml;q=0.9,*/*;q=0.8', 'Accept-Language': '*', 'Referer': 'https://alexa.amazon.com/spa/index.html', 'Cookie': 'session-id=137-4104098-5510033; session-id-time=2214937143l; ubid-main=131-1488076-9651502; session-token=PTuRouseVJwGOzLdQA4jb+8NO9Od9WMcZ5ZLgh0Xpa16nwTlghEXAVpadBvzetQMBba9QV7/r0KptiX/+2UVaRgqSsNIyUDTRsIOKoip0/FPlVHtzt+YOEi+CiMOu6SL7LNk2UhyunF2fBVPQQFyXkfzYL2rrjMFNxLugrVv89mJWCYCOWBpK9UsxKUlaJCczSt33oCjMBcmrY98xkcqdp6yC7wq/AhC/jh5wdHHx3E=; x-main=a3nzFbdF9@zVTTy@U83MdXJOdYo8Vjv4aha69vxO@qQ59ucMl0q@H1T@UA9bu9e3; at-main=Atza|IwEBIBjmSz1Qs4gDRUHWyL34SP_Utc1oChan3JKPCFMnewArFtmH9swpwllq5lG20WdocuMC9lyG369OeBTX8s3qGKDiqbW
alandtse commented 4 years ago

Thanks, let's try another edit. It's the same file. Need you to add another sleep(0.5) at line 259.

    async def async_on_open(self) -> None:
        """Handle Async WebSocket Open."""
        _LOGGER.debug("Initating Async Handshake.")
        await self.websocket.send_bytes(bytes("0x99d4f71a 0x0000001d A:HTUNE", "utf-8"))
        await asyncio.sleep(0.1)
        await self.websocket.send_bytes(self._encode_ws_handshake())
        await asyncio.sleep(0.1)
        await self.websocket.send_bytes(self._encode_gw_handshake())
        await asyncio.sleep(0.1)
        await self.websocket.send_bytes(self._encode_gw_register())
        await asyncio.sleep(0.5)
        if not self.websocket.closed:
            await self.open_callback()
frlarsendeloitte commented 4 years ago

I both tried with and without the compress=0 which we added earlier, but no difference there:

2020-03-15 19:17:11 DEBUG (MainThread) [alexapy.alexawebsocket] Connecting to wss://dp-gw-na-js.amazon.com/?x-amz-device-type=ALEGCNGL9K0HM&x-amz-device-serial=131-1488076-9651502-1584296231000 with {'User-Agent': 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36', 'Accept': 'text/html,application/xhtml+xml, application/xml;q=0.9,*/*;q=0.8', 'Accept-Language': '*', 'Referer': 'https://alexa.amazon.com/spa/index.html', 'Cookie': 'session-id=137-4104098-5510033; session-id-time=2214937143l; ubid-main=131-1488076-9651502; session-token=PTuRouseVJwGOzLdQA4jb+8NO9Od9WMcZ5ZLgh0Xpa16nwTlghEXAVpadBvzetQMBba9QV7/r0KptiX/+2UVaRgqSsNIyUDTRsIOKoip0/FPlVHtzt+YOEi+CiMOu6SL7LNk2UhyunF2fBVPQQFyXkfzYL2rrjMFNxLugrVv89mJWCYCOWBpK9UsxKUlaJCczSt33oCjMBcmrY98xkcqdp6yC7wq/AhC/jh5wdHHx3E=; x-main=a3nzFbdF9@zVTTy@U83MdXJOdYo8Vjv4aha69vxO@qQ59ucMl0q@H1T@UA9bu9e3; at-main=Atza|IwEBIBjmSz1Qs4gDRUHWyL34SP_Utc1oChan3JKPCFMnewArFtmH9swpwllq5lG20WdocuMC9lyG369OeBTX8s3qGKDiqbW4iYUVKuyZq24wtm0vHPIxDe-n98DmJPijAcCPbI_GpZ-Okyzi27b-4Aus2Pin-RciDYM8gcPKmHoK7NWzIFxpqsrYJFGQgxJaCYnDKMIZo85gGz5JcRzB8snKKL-PLJsZD_x7nI0UmANoS1gTe3Txu1D8jlnaJ1HQ99D5Q59XbU59zhjANc5P2776g43SlVaKNJ_u4kFFF4KBcB6GlLvoi5DOgpbWU7rc_5dVrbxCpYzCbgM7w7jA1EDJA92f-l899xlCTkG4tCcwS0Bvi1OtPzMfQP7bBcRQQ-VyN7QShS-MFQurX6xGTV3Lrgr9; sess-at-main=yWwGA043qqn5+RYEvT2zEQ9AwBctDzZVWRAWg5wFf80=; csrf=-718429675; ', 'Origin': 'https://alexa.amazon.com', 'csrf': '-718429675'} 2020-03-15 19:17:11 DEBUG (MainThread) [alexapy.alexawebsocket] Initating Async Handshake. 2020-03-15 19:17:11 DEBUG (MainThread) [alexapy.alexawebsocket] Starting message parsing loop. 2020-03-15 19:17:11 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding WebSocket Handshake MSG. 2020-03-15 19:17:11 DEBUG (MainThread) [alexapy.alexawebsocket] Received WebSocket: 0xe891f630 0x000000cd {"parameters":{"AlphaProtocolHandler.supportedEncodings":"GZIP","AlphaProtocolHandler.maxFragmentSize":"16000","AlphaProtocolHandler.receiveWindowSize":"16"},"protocolName":"A:H"}TUNE 2020-03-15 19:17:11 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding Gateway Handshake MSG. 2020-03-15 19:17:11 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding Gateway Register MSG. 2020-03-15 19:17:11 DEBUG (MainThread) [alexapy.alexawebsocket] Received WebSocket: MSG 0x00000361 0x03b33a14 f 0x00000001 0x9e8416d4 0x000000b9 ACK 0x00000003 1.0 0x00000024 01e09e62-f504-476c-85c8-9c97c8da26ed 0x00000064 0x0000016978ff598c 0x00000170df6a62db END FABE 2020-03-15 19:17:11 DEBUG (MainThread) [alexapy.alexawebsocket] Received ACK MSG for Registration. 2020-03-15 19:17:12 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket succesfully connected 2020-03-15 19:17:12 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket closed; retries exceeded; polling 2020-03-15 19:17:12 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket closed; reconnect #4 in 80s 2020-03-15 19:17:12 ERROR (MainThread) [alexapy.alexawebsocket] WebSocket Error: <class 'aiohttp.streams.EofStream'> 2020-03-15 19:17:12 DEBUG (MainThread) [alexapy.alexawebsocket] WebSocket Connection Closed. <Task finished coro=<WebsocketEchoClient.process_messages() done, defined at /config/alexapy/alexawebsocket.py:146> result=None> 2020-03-15 19:17:12 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Received websocket error #0 <class 'aiohttp.streams.EofStream'> 2020-03-15 19:17:14 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket created: <alexapy.alexawebsocket.WebsocketEchoClient object at 0x7f12eb8bf050>

alandtse commented 4 years ago

Can you try this PR to see if it helps? If not, please provide the logs.

frlarsendeloitte commented 4 years ago

Thanks, it seems to help a bit:

2020-03-25 11:24:57 DEBUG (MainThread) [alexapy.alexawebsocket] Connecting to wss://dp-gw-na-js.amazon.com/?x-amz-device-type=ALEGCNGL9K0HM&x-amz-device-serial=131-1488076-9651502-1585131897000 with {'User-Agent': 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36', 'Accept': 'text/html,application/xhtml+xml, application/xml;q=0.9,*/*;q=0.8', 'Accept-Language': '*', 'Referer': 'https://alexa.amazon.com/spa/index.html', 'Cookie': 'session-id=137-4104098-5510033; session-id-time=2214937143l; ubid-main=131-1488076-9651502; session-token=PTuRouseVJwGOzLdQA4jb+8NO9Od9WMcZ5ZLgh0Xpa16nwTlghEXAVpadBvzetQMBba9QV7/r0KptiX/+2UVaRgqSsNIyUDTRsIOKoip0/FPlVHtzt+YOEi+CiMOu6SL7LNk2UhyunF2fBVPQQFyXkfzYL2rrjMFNxLugrVv89mJWCYCOWBpK9UsxKUlaJCczSt33oCjMBcmrY98xkcqdp6yC7wq/AhC/jh5wdHHx3E=; x-main=a3nzFbdF9@zVTTy@U83MdXJOdYo8Vjv4aha69vxO@qQ59ucMl0q@H1T@UA9bu9e3; at-main=Atza|IwEBIBjmSz1Qs4gDRUHWyL34SP_Utc1oChan3JKPCFMnewArFtmH9swpwllq5lG20WdocuMC9lyG369OeBTX8s3qGKDiqbW4iYUVKuyZq24wtm0vHPIxDe-n98DmJPijAcCPbI_GpZ-Okyzi27b-4Aus2Pin-RciDYM8gcPKmHoK7NWzIFxpqsrYJFGQgxJaCYnDKMIZo85gGz5JcRzB8snKKL-PLJsZD_x7nI0UmANoS1gTe3Txu1D8jlnaJ1HQ99D5Q59XbU59zhjANc5P2776g43SlVaKNJ_u4kFFF4KBcB6GlLvoi5DOgpbWU7rc_5dVrbxCpYzCbgM7w7jA1EDJA92f-l899xlCTkG4tCcwS0Bvi1OtPzMfQP7bBcRQQ-VyN7QShS-MFQurX6xGTV3Lrgr9; sess-at-main=yWwGA043qqn5+RYEvT2zEQ9AwBctDzZVWRAWg5wFf80=; csrf=-718429675; ', 'Origin': 'https://alexa.amazon.com', 'csrf': '-718429675'} 2020-03-25 11:24:57 DEBUG (MainThread) [alexapy.alexawebsocket] Initating Async Handshake. 2020-03-25 11:24:57 DEBUG (MainThread) [alexapy.alexawebsocket] Starting message parsing loop. 2020-03-25 11:24:57 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding WebSocket Handshake MSG. 2020-03-25 11:24:57 DEBUG (MainThread) [alexapy.alexawebsocket] Received WebSocket: 0xe891f630 0x000000cd {"parameters":{"AlphaProtocolHandler.supportedEncodings":"GZIP","AlphaProtocolHandler.maxFragmentSize":"16000","AlphaProtocolHandler.receiveWindowSize":"16"},"protocolName":"A:H"}TUNE 2020-03-25 11:24:57 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding Gateway Handshake MSG. 2020-03-25 11:24:58 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding Gateway Register MSG. 2020-03-25 11:24:58 DEBUG (MainThread) [alexapy.alexawebsocket] Received WebSocket: MSG 0x00000361 0x20493dcb f 0x00000001 0xcd8312b0 0x000000b9 ACK 0x00000003 1.0 0x00000024 01e09e62-f504-476c-85c8-9c97c8da26ed 0x00000064 0x0000016978ff598c 0x000001711139ddca END FABE 2020-03-25 11:24:58 DEBUG (MainThread) [alexapy.alexawebsocket] Received ACK MSG for Registration.

Around 400 lines later filled with:

2020-03-25 11:24:58 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket succesfully connected 2020-03-25 11:25:00 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/devices-v2/device returned 200:OK:application/json 2020-03-25 11:25:00 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/bluetooth?cached=false returned 200:OK:application/json 2020-03-25 11:25:01 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/device-preferences returned 200:OK:application/json 2020-03-25 11:25:01 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/dnd/device-status-list returned 200:OK:application/json 2020-03-25 11:25:01 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/notifications returned 200:OK:application/json 2020-03-25 11:25:01 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Found 7 devices, 7 bluetooth 2020-03-25 11:25:02 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/notifications returned 200:OK:application/json 2020-03-25 11:25:02 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Updated 0 notifications for 1 devices at 2020-03-25 11:25:02.085589+01:00 2020-03-25 11:25:02 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/activities?startTime=&size=10&offset=1 returned 200:OK:application/json 2020-03-25 11:25:02 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Updated last_called: {'serialNumber': 'G************H3S', 'timestamp': 1585078200911} 2020-03-25 11:25:02 DEBUG (MainThread) [custom_components.alexa_media] TV: Locale en-us timezone None 2020-03-25 11:25:02 DEBUG (MainThread) [custom_components.alexa_media] TV: DND False 2020-03-25 11:25:02 DEBUG (MainThread) [custom_components.alexa_media] Bathroom: Locale en-us timezone None 2020-03-25 11:25:02 DEBUG (MainThread) [custom_components.alexa_media] Bathroom: DND False 2020-03-25 11:25:02 DEBUG (MainThread) [custom_components.alexa_media] Kitchen: Locale en-us timezone None 2020-03-25 11:25:02 DEBUG (MainThread) [custom_components.alexa_media] Kitchen: DND False 2020-03-25 11:25:02 DEBUG (MainThread) [custom_components.alexa_media] Livingroom: Locale en-us timezone None 2020-03-25 11:25:02 DEBUG (MainThread) [custom_components.alexa_media] Livingroom: DND False 2020-03-25 11:25:02 DEBUG (MainThread) [custom_components.alexa_media] Frank's Echo Dot: Locale en-us timezone Europe/Copenhagen 2020-03-25 11:25:02 DEBUG (MainThread) [custom_components.alexa_media] Frank's Echo Dot: DND False 2020-03-25 11:25:02 DEBUG (MainThread) [custom_components.alexa_media] This Device: Locale en-gb timezone Europe/Copenhagen 2020-03-25 11:25:02 DEBUG (MainThread) [custom_components.alexa_media] This Device: DND False 2020-03-25 11:25:02 DEBUG (MainThread) [custom_components.alexa_media] Frank's Alexa Apps: Locale en-us timezone Europe/Copenhagen 2020-03-25 11:25:02 DEBUG (MainThread) [custom_components.alexa_media] Frank's Alexa Apps: DND False

I'm getting the EoFStream again:

2020-03-25 11:25:58 ERROR (MainThread) [alexapy.alexawebsocket] WebSocket Error: <class 'aiohttp.streams.EofStream'> 2020-03-25 11:25:58 DEBUG (MainThread) [alexapy.alexawebsocket] WebSocket Connection Closed. <Task finished coro=<WebsocketEchoClient.process_messages() done, defined at /config/alexapy/alexawebsocket.py:146> result=None> 2020-03-25 11:25:58 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Received websocket error #1 <class 'aiohttp.streams.EofStream'>: type <class 'str'> 2020-03-25 11:25:58 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Immediate abort on EoFstream 2020-03-25 11:25:58 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket closed; reconnect #2 in 20s 2020-03-25 11:25:58 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket created: <alexapy.alexawebsocket.WebsocketEchoClient object at 0x7f95e2d80550>

alandtse commented 4 years ago

Can you try the new version I just pushed please?

frlarsendeloitte commented 4 years ago

Thanks, I did it and this is the result:

2020-03-30 00:20:15 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket created: <alexapy.alexawebsocket.WebsocketEchoClient object at 0x7f837ef11290> 2020-03-30 00:20:15 DEBUG (MainThread) [alexapy.alexawebsocket] Connecting to wss://dp-gw-na-js.amazon.com/?x-amz-device-type=ALEGCNGL9K0HM&x-amz-device-serial=131-1488076-9651502-1585520415000 with {'User-Agent': 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36', 'Accept': 'text/html,application/xhtml+xml, application/xml;q=0.9,*/*;q=0.8', 'Accept-Language': '*', 'Referer': 'https://alexa.amazon.com/spa/index.html', 'Cookie': 'session-id=137-4104098-5510033; session-id-time=2216240210l; ubid-main=131-1488076-9651502; session-token=xnqIeBHZf2So503jr83wnN0aMXtbMedL86NVfZlq7JULLjDM9LMcf5rlMzb0OiZpUOIVbcy04WC5NRplCH/ONJU5Dw3In05E1YaW3vKMxIl2+oiDwQtViKKho7m2FVJ1KJmedibyLWZ1So6cMGEBMPMM0sBnIxOwIJkUubSVIKz80TzI81uX3dQdO4g0+7zbBbL03oCBBp5u2XNB+s5fgXO1RsPvSzUH+Fds0aJeLqA=; x-main=hC@KQWju7iP0aO9kkwAibeBG55KraPM7UN0JikDjPR2noFNRw09?ABJGyNklOCrU; at-main=Atza|IwEBIKKTOQdHlqEWVSxrrDQ7I3bAn1fPcP9k2zgRxz8o25aOTrOe7xDtdNeyOpdERRhvuCQCsHH_QvBRqeRgDd8To6CMke9IClVCClOwvU0ups6GOoO-VphW3sxpQvW5pixk7JCr8-YmtHKaJfOFd_a8Xa-QNYNnJXLAv2fOiZf3M7paOGazIDzd9pU4f32Wn5d2wvZdCBv_NwnrQUmg1ah9Qs1_NhSzZzhc2l46y9vMBoQ8xrVffIOw4yZT3gG7yjy7p77aAQB5LQB0HbDTAnPyev3JJM-Yzc40mHUk8HRt9aah1_Gn7UXwvIqbKl55dHYkTxh-x3YzPilGpjfCRywsoI-trQmWzGu929UsZ0wLj4GrQ-htNQyJJhrNV8lnaEqljKLN8uMtZtvvv-3kOxpz98Q7; sess-at-main=3plA5cdfASzjhU65ufeKJcdToutSdImCkmM6bCwiqTA=; csrf=-718429675; ', 'Origin': 'https://alexa.amazon.com', 'csrf': '-718429675'} 2020-03-30 00:20:17 DEBUG (MainThread) [alexapy.alexawebsocket] Initating Async Handshake. 2020-03-30 00:20:17 DEBUG (MainThread) [alexapy.alexawebsocket] Starting message parsing loop. 2020-03-30 00:20:17 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding WebSocket Handshake MSG. 2020-03-30 00:20:17 DEBUG (MainThread) [alexapy.alexawebsocket] Received WebSocket: 0xbafef3f3 0x000000cd {"protocolName":"A:H","parameters":{"AlphaProtocolHandler.supportedEncodings":"GZIP","AlphaProtocolHandler.maxFragmentSize":"16000","AlphaProtocolHandler.receiveWindowSize":"16"}}TUNE 2020-03-30 00:20:17 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding Gateway Handshake MSG. 2020-03-30 00:20:17 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding Gateway Register MSG. 2020-03-30 00:20:17 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding PING. 2020-03-30 00:20:17 DEBUG (MainThread) [alexapy.alexawebsocket] Received WebSocket: MSG 0x00000361 0x438aaad5 f 0x00000001 0x9eb8177f 0x000000b9 ACK 0x00000003 1.0 0x00000024 01e09e62-f504-476c-85c8-9c97c8da26ed 0x00000064 0x0000016978ff598c 0x0000017128619be3 END FABE 2020-03-30 00:20:17 DEBUG (MainThread) [alexapy.alexawebsocket] Received ACK MSG for Registration. 2020-03-30 00:20:18 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket succesfully connected 2020-03-30 00:20:28 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket closed; retries exceeded; polling 2020-03-30 00:20:29 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/devices-v2/device returned 200:OK:application/json 2020-03-30 00:20:29 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/bluetooth?cached=false returned 200:OK:application/json 2020-03-30 00:20:30 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/device-preferences returned 200:OK:application/json 2020-03-30 00:20:30 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/dnd/device-status-list returned 200:OK:application/json 2020-03-30 00:20:31 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/notifications returned 200:OK:application/json 2020-03-30 00:20:31 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Found 7 devices, 7 bluetooth 2020-03-30 00:20:31 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/notifications returned 200:OK:application/json 2020-03-30 00:20:31 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Updated 0 notifications for 1 devices at 2020-03-30 00:20:31.846118+02:00 2020-03-30 00:20:32 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/activities?startTime=&size=10&offset=1 returned 200:OK:application/json 2020-03-30 00:20:32 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Updated last_called: {'serialNumber': 'G************H3S', 'timestamp': 1585337419740} 2020-03-30 00:20:32 DEBUG (MainThread) [custom_components.alexa_media] TV: Locale en-us timezone None 2020-03-30 00:20:32 DEBUG (MainThread) [custom_components.alexa_media] TV: DND False 2020-03-30 00:20:32 DEBUG (MainThread) [custom_components.alexa_media] Bathroom: Locale en-us timezone None 2020-03-30 00:20:32 DEBUG (MainThread) [custom_components.alexa_media] Bathroom: DND False 2020-03-30 00:20:32 DEBUG (MainThread) [custom_components.alexa_media] Kitchen: Locale en-us timezone None 2020-03-30 00:20:32 DEBUG (MainThread) [custom_components.alexa_media] Kitchen: DND False 2020-03-30 00:20:32 DEBUG (MainThread) [custom_components.alexa_media] Livingroom: Locale en-us timezone None 2020-03-30 00:20:32 DEBUG (MainThread) [custom_components.alexa_media] Livingroom: DND False 2020-03-30 00:20:32 DEBUG (MainThread) [custom_components.alexa_media] Frank's Echo Dot: Locale en-us timezone Europe/Copenhagen 2020-03-30 00:20:32 DEBUG (MainThread) [custom_components.alexa_media] Frank's Echo Dot: DND False 2020-03-30 00:20:32 DEBUG (MainThread) [custom_components.alexa_media] This Device: Locale en-gb timezone Europe/Copenhagen 2020-03-30 00:20:32 DEBUG (MainThread) [custom_components.alexa_media] This Device: DND False 2020-03-30 00:20:32 DEBUG (MainThread) [custom_components.alexa_media] Frank's Alexa Apps: Locale en-us timezone Europe/Copenhagen 2020-03-30 00:20:32 DEBUG (MainThread) [custom_components.alexa_media] Frank's Alexa Apps: DND False 2020-03-30 00:20:32 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Existing: [<Entity TV: standby>, <Entity Bathroom: idle>, <Entity Kitchen: paused>, <Entity Livingroom: standby>, <Entity Frank's Echo Dot: standby>, <Entity This Device: standby>, <Entity Frank's Alexa Apps: unavailable>] New: []; Filtered out by not being in include: [] or in exclude: [] 2020-03-30 00:21:17 ERROR (MainThread) [alexapy.alexawebsocket] WebSocket Error: <class 'aiohttp.streams.EofStream'> 2020-03-30 00:21:17 DEBUG (MainThread) [alexapy.alexawebsocket] WebSocket Connection Closed. <Task finished coro=<WebsocketEchoClient.process_messages() done, defined at /usr/local/lib/python3.7/site-packages/alexapy/alexawebsocket.py:146> result=None> 2020-03-30 00:21:17 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Received websocket error #1 <class 'aiohttp.streams.EofStream'>: type <class 'str'> 2020-03-30 00:21:17 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Immediate abort on EoFstream 2020-03-30 00:21:17 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Websocket closed; reconnect #2 in 20s

alandtse commented 4 years ago

Ok, new version pushed.

frlarsendeloitte commented 4 years ago

Thanks, this seemed to do the trick. After a restart, I get the first and only entry of EofStream: 2020-03-30 09:20:14 ERROR (MainThread) [alexapy.alexawebsocket] WebSocket Error: <class 'aiohttp.streams.EofStream'> 2020-03-30 09:20:14 DEBUG (MainThread) [alexapy.alexawebsocket] WebSocket Connection Closed. <Task finished coro=<WebsocketEchoClient.process_messages() done, defined at /usr/local/lib/python3.7/site-packages/alexapy/alexawebsocket.py:146> result=None> 2020-03-30 09:20:14 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Received websocket error #0 <class 'aiohttp.streams.EofStream'>: type <class 'str'> 2020-03-30 09:20:14 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Immediate abort on EoFstream

After around 10 minutes with nothing in the log, it repeats the following again and again:

2020-03-30 09:40:00 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/devices-v2/device returned 200:OK:application/json 2020-03-30 09:40:01 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/bluetooth?cached=false returned 200:OK:application/json 2020-03-30 09:40:01 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/device-preferences returned 200:OK:application/json 2020-03-30 09:40:02 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/dnd/device-status-list returned 200:OK:application/json 2020-03-30 09:40:02 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/notifications returned 200:OK:application/json 2020-03-30 09:40:02 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Found 4 devices, 4 bluetooth 2020-03-30 09:40:03 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/notifications returned 200:OK:application/json 2020-03-30 09:40:03 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Updated 0 notifications for 1 devices at 2020-03-30 09:40:03.284326+02:00 2020-03-30 09:40:04 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/activities?startTime=&size=10&offset=1 returned 200:OK:application/json 2020-03-30 09:40:04 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Updated last_called: {'serialNumber': 'G************H3S', 'timestamp': 1585337419740} 2020-03-30 09:40:04 DEBUG (MainThread) [custom_components.alexa_media] Kitchen: Locale en-us timezone None 2020-03-30 09:40:04 DEBUG (MainThread) [custom_components.alexa_media] Kitchen: DND False 2020-03-30 09:40:04 DEBUG (MainThread) [custom_components.alexa_media] Frank's Echo Dot: Locale en-us timezone Europe/Copenhagen 2020-03-30 09:40:04 DEBUG (MainThread) [custom_components.alexa_media] Frank's Echo Dot: DND False 2020-03-30 09:40:04 DEBUG (MainThread) [custom_components.alexa_media] This Device: Locale en-gb timezone Europe/Copenhagen 2020-03-30 09:40:04 DEBUG (MainThread) [custom_components.alexa_media] This Device: DND False 2020-03-30 09:40:04 DEBUG (MainThread) [custom_components.alexa_media] Frank's Alexa Apps: Locale en-us timezone Europe/Copenhagen 2020-03-30 09:40:04 DEBUG (MainThread) [custom_components.alexa_media] Frank's Alexa Apps: DND False 2020-03-30 09:40:04 DEBUG (MainThread) [custom_components.alexa_media] f***************n@g*******m: Existing: [<Entity Kitchen: paused>, <Entity Frank's Echo Dot: standby>, <Entity This Device: standby>, <Entity Frank's Alexa Apps: unavailable>] New: []; Filtered out by not being in include: [] or in exclude: []

Is this normal behaviour?

alandtse commented 4 years ago

Yes. If it isn't using websockets, the only way it can determine what is happening is with polling.

frlarsendeloitte commented 4 years ago

Thanks for all the help, @alandtse! :)