Hey guys, thank you for this awesome release of HA. My system just got updated and everything went fine and very smooth for me. The only thing that still doesn’t work for me is my “alexa Media” custom component where i’m getting “invalid config”. The info page showed this error
“Unable to prepare setup for platform alexa_media.media_player: Platform not found (cannot import name ‘MEDIA_PLAYER_SCHEMA’ from ‘homeassistant.components.media_player’ (/usr/src/app/homeassistant/components/media_player/init.py)).
5:03 PM setup.py (ERROR)”
There was a change a few releases back related to how custom components are handled. Does your folder match the one in the install instructions?
thank you for the fast reply. As far as I can tell yes. I did use the “HASC” installation procedure a few weeks back and has been working since.
its because MEDIA_PLAYER_SCHEMA
got changed to PLATFORM_SCHEMA
, but this is not mentioned in the release notes
thank you very much for that hint. Do you happen to know how I can fix that?
Wait until the component gets updated
Thank you for your help
If you’re confident, in custom_components/alexa_media/media_player.py
on line 15 you can change MEDIA_PLAYER_SCHEMA
to PLATFORM_SCHEMA
That fixes the issue.
ok i’ll give that a try and thank you.
thanks a million guys. that did it
Just wanted to chime in, that fixed it for me as well.
For anyone else who reads this, the fix has been pushed to the custom component now so you can just update using HACS etc.
The config problem went away but I no longer have the the service, media_player.alexa_tts in my automations. None of my notifications to Alexa work.
Instead of media_player.alexa_tts try it this way:
- service: notify.alexa_media
data:
data:
type: announce
target:
- Your Entity_id Here
message: "Your message here"
I updated now my whole thing is broken… “Refused to connect” I think it was my fault somehow
I tried this using both announce and tts neither one works.
That’s the way i have it configured in my environment and it’s been working for me. Can you please post your config.
Having the same issue. I can’t find MEDIA_PLAYER_SCHEMA anywhere in the code. Line 15 says:
from homeassistant.components.media_player import (MediaPlayerDevice)
Am I looking in the wrong place?
My Entity_ids media_player.echo_2 plus 3 others are all showing unavailable. When I go back to 0.96.5 my media_player.echo_2 plus 3 others all show standby.
Check the developer section, see if you get the notification service for alexa_media. It should look like this