Echo Devices (Alexa) as Media Player - Testers Needed

I found out (the long way) that alexa media doesn’t work with HA 96.2 (on a mac). I reverted backed to an older version and it works again.

I got a "ChunkedEncodingError: (‘Connection broken: " error in my log.

I updated the component yesterday on 96.2, I just tried an announce and it works.

The logs you posted aren’t coming from the component so I’m not sure you’re seeing current state. I can’t link as I’m on my mobile, but the wiki in the first post should show you how to enable logs from the FAQ.

What would be helpful is seeing the exact service calls your trying.

To figure out your region, try logging into the webapp at alexa.amazon.com or Alexa.amazon.nl. Whichever works should be your region. If you have devices registered on the wrong region that may result in weird behavior.

Never seen that one but would have to see the full logs. Again check the wiki for instructions. It sounds almost like a random connection error where a restart might have fixed it.

Hi, I have a problem with appearing API errors from time to time.
These errors appears often during the night and lead after a restard to a new authentication process.
So far so good or bad:
The problem: In the mornig, I rely on alexa warning me if my train connection is late.
Also alexa warns my wife if her way to work is longer then usual.
If alexa went on an error during the night, there simply will be no message.
So we gess, everything is fine, but it isn’t. Alexa just cannot tell anything due to the error over the night.
And from my point of view it cannot be, that I have to check the logs every morning.

So I need a push notification in case of an api-error of alexa_media component.
How can this be done?

Any luck with this? I have exactly the same problem

Edit: I think I found a solution? Enable Alexa Gard? I’ll try it tomorrow to see if it will work.

I get this error message:

2019-07-24 23:49:34 ERROR (MainThread) [homeassistant.components.media_player] Error while setting up platform alexa_media
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 126, in _async_setup_platform
    SLOW_SETUP_MAX_WAIT)
  File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
    return fut.result()
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/alexa_media/media_player.py", line 66, in setup_platform
    hass)
  File "/config/custom_components/alexa_media/media_player.py", line 96, in __init__
    self.alexa_api = AlexaAPI(self, login)
  File "/usr/local/lib/python3.7/site-packages/alexapy/alexaapi.py", line 51, in __init__
    csrf = self._session.cookies.get_dict()['csrf']
KeyError: 'csrf'
2019-07-24 23:49:35 ERROR (MainThread) [homeassistant.components.alarm_control_panel] Error while setting up platform alexa_media
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 126, in _async_setup_platform
    SLOW_SETUP_MAX_WAIT)
  File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
    return fut.result()
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/alexa_media/alarm_control_panel.py", line 35, in setup_platform
    hass)  \
  File "/config/custom_components/alexa_media/alarm_control_panel.py", line 73, in __init__
    self.alexa_api = AlexaAPI(self, login)
  File "/usr/local/lib/python3.7/site-packages/alexapy/alexaapi.py", line 51, in __init__
    csrf = self._session.cookies.get_dict()['csrf']
KeyError: 'csrf'

Not possible as exceptions are not HA events. We could expose an event if the cookie expires but it’s not how HA expects to handle relogins. Rather, the component is supposed to reconnect but I guess the issue may be we need a captcha to relogin.

No, that won’t help. There’s something wrong with the login. Try deleting the .pickle file if it exists and relogin. If it persists, please provide logs as it’s breaking in a strange place.

Hi, thank you for the reply
Just to clearify: An event would help a lot, so I could use it as trigger to send a push notification to my mobile. To execute a restart and login again is the minor issue

I’m also getting the following error:

Error while setting up platform alexa_media
Traceback (most recent call last):
  File "/usr/src/app/homeassistant/helpers/entity_platform.py", line 126, in _async_setup_platform
    SLOW_SETUP_MAX_WAIT)
  File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
    return fut.result()
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/alexa_media/media_player.py", line 66, in setup_platform
    hass)
  File "/config/custom_components/alexa_media/media_player.py", line 96, in __init__
    self.alexa_api = AlexaAPI(self, login)
  File "/usr/local/lib/python3.7/site-packages/alexapy/alexaapi.py", line 51, in __init__
    csrf = self._session.cookies.get_dict()['csrf']
KeyError: 'csrf'

I’m running the native home-assistant docker 0.96.2.
I’ve tried setting the amazon url to amazon.com and amazon.co.uk and it doesn’t make any difference.
Deleting the pickle file and rebooting has made no difference.

1 Like

I’m running it on Raspbian strech in venv and are also getting the error:

2019-07-25 16:28:18 ERROR (MainThread) [homeassistant.components.alarm_control_panel] Error while setting up platform alexa_media
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py", line 126, in _async_setup_platform
    SLOW_SETUP_MAX_WAIT)
  File "/usr/lib/python3.5/asyncio/tasks.py", line 400, in wait_for
    return fut.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
    raise self._exception
  File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/home/homeassistant/.homeassistant/custom_components/alexa_media/alarm_control_panel.py", line 35, in setup_platform
    hass)  \
  File "/home/homeassistant/.homeassistant/custom_components/alexa_media/alarm_control_panel.py", line 73, in __init__
    self.alexa_api = AlexaAPI(self, login)
  File "/srv/homeassistant/lib/python3.5/site-packages/alexapy/alexaapi.py", line 51, in __init__
    csrf = self._session.cookies.get_dict()['csrf']
KeyError: 'csrf'

Thanks for ur respose. I enabled normal logging but cant find any errors, ill post a snippet from when i called play_pause. There doesnt seem to be any interaction between normal media_player component and alexa_media custom component…

2019-07-25 19:00:36 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.1779710832] Received {'type': 'call_service', 'domain': 'media_player', 'service': 'media_play_pause', 'service_data': {'entity_id': 'media_player.downstairs'}, 'id': 44}
2019-07-25 19:00:36 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=media_player, service=media_play_pause, service_data=entity_id=media_player.downstairs>
2019-07-25 19:00:36 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.1763259536] Sending {'id': 2, 'type': 'event', 'event': {'event_type': 'call_service', 'data': {'domain': 'media_player', 'service': 'media_play_pause', 'service_data': {'entity_id': 'media_player.downstairs'}}, 'origin': 'LOCAL', 'time_fired': datetime.datetime(2019, 7, 25, 17, 0, 36, 478722, tzinfo=<UTC>), 'context': {'id': '07a95733c101436a8ff6ca43851c923a', 'parent_id': None, 'user_id': 'd925c0117c084737ab092bdd67cc52cc'}}}
2019-07-25 19:00:37 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.1779710832] Received {'type': 'call_service', 'domain': 'media_player', 'service': 'media_play_pause', 'service_data': {'entity_id': 'media_player.downstairs'}, 'id': 45}
2019-07-25 19:00:37 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=media_player, service=media_play_pause, service_data=entity_id=media_player.downstairs>
2019-07-25 19:00:37 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.1763259536] Sending {'id': 2, 'type': 'event', 'event': {'event_type': 'call_service', 'data': {'domain': 'media_player', 'service': 'media_play_pause', 'service_data': {'entity_id': 'media_player.downstairs'}}, 'origin': 'LOCAL', 'time_fired': datetime.datetime(2019, 7, 25, 17, 0, 37, 509437, tzinfo=<UTC>), 'context': {'id': '1bddfcaea27943c69add01022dbfe82c', 'parent_id': None, 'user_id': 'd925c0117c084737ab092bdd67cc52cc'}}}
2019-07-25 19:00:38 DEBUG (MainThread) [homeassistant.components.ssdp] Scanning

Alexa_media is running though and is still updating current state of the echo device, at least it seams that way to me:

2019-07-25 19:04:50 DEBUG (Thread-18) [alexapy.alexawebsocket] Received WebSocket MSG.
2019-07-25 19:04:50 DEBUG (Thread-18) [alexapy.alexawebsocket] Received b'MSG 0x00000362 0x3e22560a f 0x00000001 0x45144d16 0x0000026a GWM MSG 0x0000b479 0x0000005c urn:tcomm-endpoint:service:serviceName:DeeWebsiteMessagingService:domain:prod:realm:USAmazon 0x00000081 urn:tcomm-endpoint:device:customerId:A3IMMKEUG9OBLD:deviceType:ALEGCNGL9K0HM:deviceSerialNumber:131-0869631-6077043-1564072447000 {"payload":"{\\"destinationUserId\\":\\"A3IMMKEUG9OBLD\\",\\"mediaReferenceId\\":\\"unused\\",\\"dopplerId\\":{\\"deviceSerialNumber\\":\\"G090LF1175040G42\\",\\"deviceType\\":\\"A3S5BH2HU6VAYF\\"},\\"error\\":false,\\"audioPlayerState\\":\\"PLAYING\\",\\"errorMessage\\":null}","command":"PUSH_AUDIO_PLAYER_STATE"}FABE'
2019-07-25 19:04:50 DEBUG (Thread-18) [alexapy.alexawebsocket] Received Standard MSG.
2019-07-25 19:04:50 DEBUG (Thread-18) [custom_components.alexa_media] m***********[email protected]: Received websocket command: PUSH_AUDIO_PLAYER_STATE : {'destinationUserId': 'A3IMMKEUG9OBLD', 'mediaReferenceId': 'unused', 'dopplerId': {'deviceSerialNumber': 'G090LF1175040G42', 'deviceType': 'A3S5BH2HU6VAYF'}, 'error': False, 'audioPlayerState': 'PLAYING', 'errorMessage': None}
2019-07-25 19:04:50 DEBUG (Thread-18) [custom_components.alexa_media] Updating media_player: {'destinationUserId': 'A3IMMKEUG9OBLD', 'mediaReferenceId': 'unused', 'dopplerId': {'deviceSerialNumber': 'G090LF1175040G42', 'deviceType': 'A3S5BH2HU6VAYF'}, 'error': False, 'audioPlayerState': 'PLAYING', 'errorMessage': None}
2019-07-25 19:04:50 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event alexa_media_m***********n@hotmai[L]: player_state=destinationUserId=A3IMMKEUG9OBLD, mediaReferenceId=unused, dopplerId=deviceSerialNumber=G090LF1175040G42, deviceType=A3S5BH2HU6VAYF, error=False, audioPlayerState=PLAYING, errorMessage=None>
2019-07-25 19:04:50 DEBUG (SyncWorker_18) [custom_components.alexa_media.media_player] Downstairs state update: PLAYING
2019-07-25 19:04:50 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.1763259536] Sending {'id': 2, 'type': 'event', 'event': {'event_type': 'alexa_media_m***********n@hotmai', 'data': {'player_state': {'destinationUserId': 'A3IMMKEUG9OBLD', 'mediaReferenceId': 'unused', 'dopplerId': {'deviceSerialNumber': 'G090LF1175040G42', 'deviceType': 'A3S5BH2HU6VAYF'}, 'error': False, 'audioPlayerState': 'PLAYING', 'errorMessage': None}}, 'origin': 'LOCAL', 'time_fired': datetime.datetime(2019, 7, 25, 17, 4, 50, 372987, tzinfo=<UTC>), 'context': {'id': '4f307351570f45d89e6ab562f4edb83a', 'parent_id': None, 'user_id': None}}}
2019-07-25 19:04:50 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=media_player.downstairs, old_state=<state media_player.downstairs=playing; volume_level=0.67, is_volume_muted=False, media_content_type=music, media_duration=147, media_position=0, media_position_updated_at=2019-07-25T19:04:50.093572+02:00, media_title=Recollections, media_artist=jrd., media_album_name=Lush Lofi, source=Local Speaker, source_list=['Local Speaker'], available=True, last_called=True, friendly_name=Downstairs, entity_picture=/api/media_player_proxy/media_player.downstairs?token=16d5e62cf6b7476586910d1924a71a10e6abe35177acb776d4b4aaffd0d5bcc8&cache=de57bdfdfe487b2e, supported_features=23485 @ 2019-07-25T18:38:57.634330+02:00>, new_state=<state media_player.downstairs=playing; volume_level=0.67, is_volume_muted=False, media_content_type=music, media_duration=147, media_position=0, media_position_updated_at=2019-07-25T19:04:50.386955+02:00, media_title=Recollections, media_artist=jrd., media_album_name=Lush Lofi, source=Local Speaker, source_list=['Local Speaker'], available=True, last_called=True, friendly_name=Downstairs, entity_picture=/api/media_player_proxy/media_player.downstairs?token=16d5e62cf6b7476586910d1924a71a10e6abe35177acb776d4b4aaffd0d5bcc8&cache=de57bdfdfe487b2e, supported_features=23485 @ 2019-07-25T18:38:57.634330+02:00>>
2019-07-25 19:04:50 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.1763259536] Sending {'id': 2, 'type': 'event', 'event': {'event_type': 'state_changed', 'data': {'entity_id': 'media_player.downstairs', 'old_state': <state media_player.downstairs=playing; volume_level=0.67, is_volume_muted=False, media_content_type=music, media_duration=147, media_position=0, media_position_updated_at=2019-07-25T19:04:50.093572+02:00, media_title=Recollections, media_artist=jrd., media_album_name=Lush Lofi, source=Local Speaker, source_list=['Local Speaker'], available=True, last_called=True, friendly_name=Downstairs, entity_picture=/api/media_player_proxy/media_player.downstairs?token=16d5e62cf6b7476586910d1924a71a10e6abe35177acb776d4b4aaffd0d5bcc8&cache=de57bdfdfe487b2e, supported_features=23485 @ 2019-07-25T18:38:57.634330+02:00>, 'new_state': <state media_player.downstairs=playing; volume_level=0.67, is_volume_muted=False, media_content_type=music, media_duration=147, media_position=0, media_position_updated_at=2019-07-25T19:04:50.386955+02:00, media_title=Recollections, media_artist=jrd., media_album_name=Lush Lofi, source=Local Speaker, source_list=['Local Speaker'], available=True, last_called=True, friendly_name=Downstairs, entity_picture=/api/media_player_proxy/media_player.downstairs?token=16d5e62cf6b7476586910d1924a71a10e6abe35177acb776d4b4aaffd0d5bcc8&cache=de57bdfdfe487b2e, supported_features=23485 @ 2019-07-25T18:38:57.634330+02:00>}, 'origin': 'LOCAL', 'time_fired': datetime.datetime(2019, 7, 25, 17, 4, 50, 389793, tzinfo=<UTC>), 'context': {'id': 'b96da6be9d284208bf91d1dad1ea6339', 'parent_id': None, 'user_id': None}}}
2019-07-25 19:04:50 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.1763259536] Sending {'id': 3, 'type': 'event', 'event': <Event state_changed[L]: entity_id=media_player.downstairs, old_state=<state media_player.downstairs=playing; volume_level=0.67, is_volume_muted=False, media_content_type=music, media_duration=147, media_position=0, media_position_updated_at=2019-07-25T19:04:50.093572+02:00, media_title=Recollections, media_artist=jrd., media_album_name=Lush Lofi, source=Local Speaker, source_list=['Local Speaker'], available=True, last_called=True, friendly_name=Downstairs, entity_picture=/api/media_player_proxy/media_player.downstairs?token=16d5e62cf6b7476586910d1924a71a10e6abe35177acb776d4b4aaffd0d5bcc8&cache=de57bdfdfe487b2e, supported_features=23485 @ 2019-07-25T18:38:57.634330+02:00>, new_state=<state media_player.downstairs=playing; volume_level=0.67, is_volume_muted=False, media_content_type=music, media_duration=147, media_position=0, media_position_updated_at=2019-07-25T19:04:50.386955+02:00, media_title=Recollections, media_artist=jrd., media_album_name=Lush Lofi, source=Local Speaker, source_list=['Local Speaker'], available=True, last_called=True, friendly_name=Downstairs, entity_picture=/api/media_player_proxy/media_player.downstairs?token=16d5e62cf6b7476586910d1924a71a10e6abe35177acb776d4b4aaffd0d5bcc8&cache=de57bdfdfe487b2e, supported_features=23485 @ 2019-07-25T18:38:57.634330+02:00>>}
2019-07-25 19:04:50 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.1779710832] Sending {'id': 2, 'type': 'event', 'event': <Event state_changed[L]: entity_id=media_player.downstairs, old_state=<state media_player.downstairs=playing; volume_level=0.67, is_volume_muted=False, media_content_type=music, media_duration=147, media_position=0, media_position_updated_at=2019-07-25T19:04:50.093572+02:00, media_title=Recollections, media_artist=jrd., media_album_name=Lush Lofi, source=Local Speaker, source_list=['Local Speaker'], available=True, last_called=True, friendly_name=Downstairs, entity_picture=/api/media_player_proxy/media_player.downstairs?token=16d5e62cf6b7476586910d1924a71a10e6abe35177acb776d4b4aaffd0d5bcc8&cache=de57bdfdfe487b2e, supported_features=23485 @ 2019-07-25T18:38:57.634330+02:00>, new_state=<state media_player.downstairs=playing; volume_level=0.67, is_volume_muted=False, media_content_type=music, media_duration=147, media_position=0, media_position_updated_at=2019-07-25T19:04:50.386955+02:00, media_title=Recollections, media_artist=jrd., media_album_name=Lush Lofi, source=Local Speaker, source_list=['Local Speaker'], available=True, last_called=True, friendly_name=Downstairs, entity_picture=/api/media_player_proxy/media_player.downstairs?token=16d5e62cf6b7476586910d1924a71a10e6abe35177acb776d4b4aaffd0d5bcc8&cache=de57bdfdfe487b2e, supported_features=23485 @ 2019-07-25T18:38:57.634330+02:00>>}
2019-07-25 19:04:50 DEBUG (Thread-18) [alexapy.alexawebsocket] Received WebSocket MSG.
2019-07-25 19:04:50 DEBUG (Thread-18) [alexapy.alexawebsocket] Received b'MSG 0x00000362 0x3e22561b f 0x00000001 0xce70b733 0x0000028b GWM MSG 0x0000b479 0x0000005c urn:tcomm-endpoint:service:serviceName:DeeWebsiteMessagingService:domain:prod:realm:USAmazon 0x00000081 urn:tcomm-endpoint:device:customerId:A3IMMKEUG9OBLD:deviceType:ALEGCNGL9K0HM:deviceSerialNumber:131-0869631-6077043-1564072447000 {"payload":"{\\"destinationUserId\\":\\"A3IMMKEUG9OBLD\\",\\"mediaReferenceId\\":\\"spotify:playlist:37i9dQZF1DXc8kgYqQLMfH\\",\\"dopplerId\\":{\\"deviceSerialNumber\\":\\"G090LF1175040G42\\",\\"deviceType\\":\\"A3S5BH2HU6VAYF\\"},\\"error\\":false,\\"audioPlayerState\\":\\"PLAYING\\",\\"errorMessage\\":null}","command":"PUSH_AUDIO_PLAYER_STATE"}FABE'
2019-07-25 19:04:50 DEBUG (Thread-18) [alexapy.alexawebsocket] Received Standard MSG.

No clue where to go from here, im also fairly new to homeassistant so that doesnt help either!

edit.

Logging into the webapp at alexa.amazon.com gets me to my devices, trouble is that alexa.amazon.nl redirects me to .com and ofcourse also displays my devices -_-.
I did have one of my echos set to a US zipcode (from setting them up a long time ago) but changing it to the correct NL adress doesnt seem to make any difference.

Unfortunatly not yet, been away for a few days so picking it up again today. Lets hope alandtse can help us in the right direction.

Deleted “.pickle” file and it still has the same error I should have noted which version in my OP. I’m running Rasberian Stretch with docker and have hassio installed, version 0.96.4. The Alexa addon is on 1.3.1

I just tried to install this and I can see the notiy.alexa_media… services but no media players.

I checked the logs and I too am getting the csrf key error:

2019-07-25 14:33:52 ERROR (MainThread) [homeassistant.components.media_player] Error while setting up platform alexa_media
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py", line 126, in _async_setup_platform
    SLOW_SETUP_MAX_WAIT)
  File "/usr/local/Cellar/python/3.6.4_4/Frameworks/Python.framework/Versions/3.6/lib/python3.6/asyncio/tasks.py", line 358, in wait_for
    return fut.result()
  File "/usr/local/Cellar/python/3.6.4_4/Frameworks/Python.framework/Versions/3.6/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/Users/chris/.homeassistant/custom_components/alexa_media/media_player.py", line 66, in setup_platform
    hass)
  File "/Users/chris/.homeassistant/custom_components/alexa_media/media_player.py", line 96, in __init__
    self.alexa_api = AlexaAPI(self, login)
  File "/Users/chris/.homeassistant/deps/lib/python/site-packages/alexapy/alexaapi.py", line 51, in __init__
    csrf = self._session.cookies.get_dict()['csrf']
KeyError: 'csrf'

This is on version 0.96.2 installed on a mac mini.

I just installed it via HACS and followed the Instructions. Did a bunch if restarts, but I’m also getting the csrf error.

Error while setting up platform alexa_media
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 126, in _async_setup_platform
    SLOW_SETUP_MAX_WAIT)
  File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
    return fut.result()
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/alexa_media/media_player.py", line 66, in setup_platform
    hass)
  File "/config/custom_components/alexa_media/media_player.py", line 96, in __init__
    self.alexa_api = AlexaAPI(self, login)
  File "/usr/local/lib/python3.7/site-packages/alexapy/alexaapi.py", line 51, in __init__
    csrf = self._session.cookies.get_dict()['csrf']
KeyError: 'csrf'

I’m having trouble getting past CAPTCHA. After entering and rebooting a few times, I get an email from Amazon to enter a one time password (OTP). Not sure how to deal with that.

Thoughts?

Getting this too… latest HA (96.5) through HACS.

I can see the notify services but no media devices

Exact same thing here. New cookie file, but no-joy.

(latest HA (96.5), component through HACS, I can see the notify services but no media devices, or alarm entity.)

hi all, i get this error from alexa_media:

2019-07-27 06:22:08 ERROR (MainThread) [homeassistant.setup] Error during setup of component alexa_media
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/setup.py”, line 156, in _async_setup_component
component.setup, hass, processed_config) # type: ignore
File “/usr/local/lib/python3.7/concurrent/futures/thread.py”, line 57, in run
result = self.fn(*self.args, **self.kwargs)
File “/config/custom_components/alexa_media/init.py”, line 100, in setup
account.get(CONF_DEBUG))
File “/usr/local/lib/python3.7/site-packages/alexapy/alexalogin.py”, line 46, in init
self.login_with_cookie()
File “/usr/local/lib/python3.7/site-packages/alexapy/alexalogin.py”, line 83, in login_with_cookie
self.login(cookies=cookies)
File “/usr/local/lib/python3.7/site-packages/alexapy/alexalogin.py”, line 238, in login
self._data = self.get_inputs(soup)
File “/usr/local/lib/python3.7/site-packages/alexapy/alexalogin.py”, line 110, in get_inputs
for field in form.find_all(‘input’):
AttributeError: ‘NoneType’ object has no attribute ‘find_all’

before was installed manually, but after i started to get this error, i have installed HACS and installed the v.1.3.1 via HACS. but the problem didn’t solved. I don’t know if it’s concerning, but recentlly i had changed the amazon account password (obviously i had changed also in the configuration)

thanx in advance

Same here:)

KeyError: 'csrf'

Also can see the notify services but no media devices, or alarm entity.)