Since my original post Iāve been working on getting this up and running. Mostly dissecting the bash script posted by @AlmostSerious.
I know that many have had issues getting the bash/shell script to work (myself included) so I went with the route of creating a node.js application using nightmare to ensure that logging in is seamless and doesnāt get you stuck against endless captchas.
I plan to make a dedicated post showing what I have, how to set it up (as an hassio plugin with auto discovery ) so keep on the lookout.
Essentially my component code creates a media player device in HA for each device associated with your Alexa account (including whole home audio). Play/Pause/Next/Previous/Volume all work
Hi Keaton. For some reason I cannot get the Alexa_media to show up in services
I have all the media_player.play.shuffle.volume.turn etc all showing unde Services. However I cannot see the Alexa_media in services. I want to be able to TTS to my Echo and Echo Dot
Have the following files in custom_components/alexa init.py pycache (Folder)
const.py
manifest.json
media_player.py
notify.py
services.yaml
From what I can tell itās not currently possible, but wanted to ask anyway in case thereās a chance someoneās found a workaround
Is there a way to get an Alexa speaker group to play a custom alert sound, read an announce message, and then go back to whatever it was doing previously (like streaming music from Amazon or Spotify)
Use case: I have a script that polls for severe weather alerts, and if specific alerts are active it will fire an announce TTS to my āEverywhereā speaker group. But the beep before the announcement isnāt very loud/noticeable, so for an alert like that Iād like to play a different tone first.
find a tone/mediaplayer file that you like on amazon music (there are sounds available)
then create a routine that first plays the sound and then says the text, or
make an automation that plays the amazon sound and then speaks the TTS.
That wouldnāt be able to resume other music if it were already playing, would it? We often have a station streaming from Amazon music, or music playing from Spotify
tts doesnt stop the music, but a tone/music file does.
the only way to restart the music that was playing, is by gettin the info what is playing before you send the tone (i think thats possible with the alexa mediaplayer component) and start it again afterwards.
but if you have a playlist playing, that will restart if you do that.
the automation would be like
retrieve what is playing with mediaplayer component and store that info somewhere
start the tone that you want
pause for as long is needed
send the TTS
pause for as long as needed
get the retrieved value and start the music again.
but i personally find it easier to set volume to max short before the TTS and then start the alert text with something like āAlert, alert, alert, please pay attention ā¦ā
the music wont be stopped that way and will just play on.
dont forget to set the volume back afterwards
is there any way to make alexa open a skill? I have an surveillance camera that can be viewed by Alexa using a skill so Iād like to make Alexa Media Player open a skill when there is a motion triggered.
@keatontaylor btw thanks for this great skill and the work you put in!
all you can do is what you can do with the app.
you cant start a skill by a routine, so you cant start a skill with anything but voice.
when a video call is active, probably a notification is blocked.
try if it is possible by using the alexa app to start a notification when a video call is active.
if nothing happens its not possible
Any solution for playing to the everywhere group of echos?
I can play to one and to the last one used but not to all echos at once using the everywhere group.
no error, just doesnt do anything