Just updated from v2.0.1 to v2.1.0, working great, no issues for me apart from the Event is not JSON serializable:
recorder error on startup
Looks like there is some bug with include_devices
. When, I use:
alexa_media:
accounts:
- email: !secret amazon_user
password: !secret amazon_pass
url: amazon.com
include_devices:
- "Echo Dot Gen2"
it does not work for me. I get the following in my logs:
2019-09-03 13:10:31 DEBUG (MainThread) [custom_components.alexa_media] a*******o@g*******m: Websocket succesfully connected
2019-09-03 13:10:35 DEBUG (MainThread) [custom_components.alexa_media] a*******o@g*******m: Found 20 devices, 1 bluetooth
2019-09-03 13:10:35 DEBUG (MainThread) [custom_components.alexa_media] Locale en-us found for G************6XR
2019-09-03 13:10:35 DEBUG (MainThread) [custom_components.alexa_media] DND False found for G************6XR
2019-09-03 13:10:35 DEBUG (MainThread) [custom_components.alexa_media] a*******o@g*******m: Existing: [] New: ['Echo Dot Gen2']; Filtered out by not being in include: ["Rashmi's Alexa Apps", "Alok's 2nd Fire TV", "Alok's 4th Fire TV", 'Master AFTV', "Alok's 2nd Fire", "Alok's 3rd Fire", 'My Dash', "Alok's 4th Fire", "Alok's 5th Fire", "Alok's 6th Fire", "William's TAB🗼", 'Family Room', 'LivingRoomSonos', "Alok's Echo Dot", "Alok's 2nd Fire TV Stick", 'AFTVMaster', 'AFTV4kStick', 'This Device', "Alok's Alexa Apps"] or in exclude: []
2019-09-03 13:10:36 DEBUG (MainThread) [custom_components.alexa_media] a*******o@g*******m: Updated last_called: {'serialNumber': 'G************6XR', 'timestamp': 1567432857731}
2019-09-03 13:10:36 DEBUG (MainThread) [custom_components.alexa_media] a*******o@g*******m: last_called changed: to {'serialNumber': 'G************6XR', 'timestamp': 1567432857731}
2019-09-03 13:10:36 DEBUG (MainThread) [custom_components.alexa_media.switch] Loading switches
2019-09-03 13:10:36 DEBUG (MainThread) [custom_components.alexa_media.switch] Media Players not loaded yet; delaying load
2019-09-03 13:10:36 DEBUG (MainThread) [custom_components.alexa_media.media_player] a*****o@g*******m: Refreshing Echo Dot Gen2
2019-09-03 13:10:36 DEBUG (MainThread) [custom_components.alexa_media.media_player] Echo Dot Gen2: Last_called check: self: G************6XR reported:
2019-09-03 13:10:36 DEBUG (MainThread) [custom_components.alexa_media.helpers] a*******o@g*******m: Adding [<Entity Echo Dot Gen2: standby>]
2019-09-03 13:10:36 DEBUG (MainThread) [custom_components.alexa_media.alarm_control_panel] a*******o@g*******m: Discovered Alexa Guard 227b3: AAA_OnGuardSmartHomeBridgeService_eXYZ01-9XYf-3XY2-9701-13XYZb3 07XYZ8-daa1-45c5-ac7e-51XYZe1
2019-09-03 13:10:36 DEBUG (MainThread) [custom_components.alexa_media.helpers] a*****o@g*******m: Excluding device: <Entity Alexa Guard 227b3: None>
2019-09-03 13:10:51 DEBUG (MainThread) [custom_components.alexa_media.media_player] a*******o@g*******m: Refreshing Echo Dot Gen2
2019-09-03 13:10:51 DEBUG (MainThread) [custom_components.alexa_media.media_player] Echo Dot Gen2: Last_called check: self: G************6XR reported: G************6XR
2019-09-03 13:10:51 DEBUG (MainThread) [custom_components.alexa_media.switch] Loading switches
2019-09-03 13:10:51 DEBUG (MainThread) [custom_components.alexa_media.switch] a*******o@g*******m: Found G************6XR dnd switch with status: False
2019-09-03 13:10:51 DEBUG (MainThread) [custom_components.alexa_media.switch] a*******o@g*******m: Found G************6XR shuffle switch with status: None
2019-09-03 13:10:51 DEBUG (MainThread) [custom_components.alexa_media.switch] a*******o@g*******m: Found G************6XR repeat switch with status: None
2019-09-03 13:10:51 DEBUG (MainThread) [custom_components.alexa_media.helpers] a*******o@g*******m: Excluding device: <Entity Echo Dot Gen2 do not disturb switch: off>
2019-09-03 13:10:51 DEBUG (MainThread) [custom_components.alexa_media.helpers] a*******o@g*******m: Excluding device: <Entity Echo Dot Gen2 shuffle switch: off>
2019-09-03 13:10:51 DEBUG (MainThread) [custom_components.alexa_media.helpers] a*******o@g*******m: Excluding device: <Entity Echo Dot Gen2 repeat switch: off>
2019-09-03 13:10:52 DEBUG (MainThread) [custom_components.alexa_media.media_player] Disabling polling for Echo Dot Gen2
However, when I use exclude_devices
and include all the unwanted devices, it works for me in 2.1.0.
Since that is the only device in the include that is the only thing that will be loaded. The logs show everything else is filtered away and I’m not seeing any errors. Are you saying even that isn’t showing up as a media?player?
Hi I keep getting this:
Event is not JSON serializable: <Event platform_discovered[L]: service=load_platform.alarm_control_panel, platform=alexa_media, discovered=name=alexa_media, [email protected], password=xxxxxx, url=amazon.com, exclude_devices=["Henning's Sonos One", "Henning's 2nd Sonos One", "Henning's Alexa Apps", 'This Device_2', 'living_room_4'], scan_interval=0:01:00, include_devices=[], debug=False>
I am running HA 98.3 and Alexa v2.1.0. What is wrong?
Ha setup:
alexa_media:
accounts:
- email: [email protected]
password: xxxxxxx
url: amazon.com
exclude_devices:
- "Henning's Sonos One"
- "Henning's 2nd Sonos One"
- "Henning's Alexa Apps"
- "This Device_2"
- "living_room_4"
Yes, earlier I would get an alarm_control_panel
related to that Echo (Entity Alexa Guard 227b3
). With include_devices
that is excluded.
I have this errors with Alexa Media Player 2.1:
Event is not JSON serializable: <Event platform_discovered[L]: service=load_platform.alarm_control_panel, platform=alexa_media, discovered=name=alexa_media, [email protected], password=PASSWORD, url=amazon.com, include_devices=['Echo Plus'], exclude_devices=["Maciej's Alexa Apps", 'This Device'], debug=False, scan_interval=0:01:00>
Does the component have to send a email and password in the event content? It’s not safe to save such things in a database or log.
Hello, hilghlighting for your reference.
Call to configurator.configure service was failing under 2.1.0 when trying to connect to to amazon.it.
I had to roll back to 1.4.1 to be able to login.
I had no issue to log to amazon.com, however devices state was unknown.
Matteo
Have the same issue
Event is not JSON serializable: <Event platform_discovered[L]: service=load_platform.notify, platform=alexa_media, discovered=name=alexa_media, [email protected], password=f####, url=amazon.com, exclude_devices=['This Device'], debug=False, scan_interval=0:01:00, include_devices=[]>
8:24 AM components/recorder/__init__.py (WARNING)
Event is not JSON serializable: <Event platform_discovered[L]: service=load_platform.media_player, platform=alexa_media, discovered=name=alexa_media, [email protected], password=#### url=amazon.com, exclude_devices=['This Device'], debug=False, scan_interval=0:01:00, include_devices=[]>
8:24 AM components/recorder/__init__.py (WARNING)
Event is not JSON serializable: <Event platform_discovered[L]: service=load_platform.alarm_control_panel, platform=alexa_media, discovered=name=alexa_media, [email protected], password=f###, url=amazon.com, exclude_devices=['This Device'], debug=False, scan_interval=0:01:00, include_devices=[]>
8:23 AM components/recorder/__init__.py (WARNING)
Same here, not entirely thrilled my password that resides in my secrets.yaml is printed in plain text in the log…
It’s a bug with known workaround and fix staged. It’s also mentioned in the release post.
Yes, that’s the intended behavior. If it’s not in the included_devices
it won’t be included. The fact it wasn’t excluded before was a bug. I updated the post and documentation to address that.
Thanks, I’ll see if it’s something I can reproduce, but may need logs to really fix it.
Why Alexa media_player entity shows icon and data about last playing radio after Alexa, stop
command?
In this example I stoped playing radio “RMF FM” about hour ago but media_player entity still has “RMF FM” icon and data.
Any solution for that?
The webapp does this. We follow that behavior. Basically it takes about 2 hours for Alexa to decide you are stopped instead of paused and at that point the data is cleared when you query the media player state. Thinking about it more, there’s no push notification for that timeout so, we don’t have an efficient way to know when it clears on Amazon’s side.
Looking for some advanced testers to test a potential fix. If you’re still having trouble logging in to non-US sites like amazon.it
, this may address it. By advanced, you should be comfortable pulling logs and know how to replace alexapy
files.
Updated to 2.1 and seem to have lost the announce feature. Can still see the devices as media players. TTS still works just none of my announce automations
guys I have just installed alexa media player through HACS. Restarted HA and alexa media player shows in HA. However I do not get the Captcha in my notifications.
I tried to TTS using alexa media player but I get alexa saying something about configuration?
Can anyone help please?
Oh my url is amazon.co.uk not sure if this is causing the problem but I have also used amazon.com and get the same issue.
Thanks.
Following Dr.Zz’s video, I get to the point were I get the Notification, click on “Configure”, then get the following;
Anyone, have an idea what may Not be happening here, why the “Captcha” picture, is not being displayed???
Please provide more details. Can you do a service call for tts but not announce?
Captcha timed out, hit confirm and get a new one.
@alandtse When I hit Confirm, the whole dialogue box, just disappears. I even tried different browsers, on 2 different computers. still no joy…
Will need logs to know what’s happening. Other option is to run 1.4.1 to generate the cookie file.
Hi, I’m still on 1.4.1. Everything workes fine.
But during the night I receive this error
Fri Sep 06 2019 00:47:38 GMT+0200 (Mitteleuropäische Sommerzeit)
An error occured accessing AlexaAPI: An exception of type JSONDecodeError occurred. Arguments: ('Expecting value: line 8 column 1 (char 7)',)
alexa did not work. I had to restart HA, input the capture and everything workes again.
This happens once a month. Can I do something to avoid this or can I produce an automation which pushes a message to my phone?