there are a lot of times that i get confused, but at least your confusion has nothing to do with this topic.
so to get less confused you better open a new topic in the configuration forum and ask there what you want to know.
just stating that a part of text confuses you doesnt help, because there is no question in it.
it doesnt tell what you are confused about.
but like i said, if its not about alexa media, please do it in another topic.
I set it up this weekend. Took 10 minutes. Basically a guy made a custom_component that uses the calls this thread came up with. Basically don’t need to spend the time doing all this and you get HA elements that work great.
I don’t see what you’d be able to do in this vrs the other. The nice thing about the alexa media player is that it’s easy to set up and you get all controls. Play media, turn up / down volume, tts, detect meida playing, change the source, pause, stop, next song… Not sure what else you’d need.
For me, i played around with the custom component but didn’t really care for it. Extra steps to set up TTS which was annoying, and also it exposed all my devices when really all i need is 2-3 of them for TTS. So I’ve stuck with this option and deal with the cookie issue.
Those extra steps for tts are gone btw. There’s no extra steps anymore. It’s just place the .py file, add the config, done. It’s as easy as any custom component. You do need to complete 1 captcha.
with the mediaplayer you also get a lot of mediaplayers that you dont want (alexa installed on tablets, mobiles, firesticks, echo sim, etc.)
home assistant will get a lot of extra load because of it (all devices incl the one you dont want get scanned all the time)
your network will get a lot of extra load from it
so yeah the component is convinient, but it also has a lot of disadvantages at the moment.
and for sure when you are not interested in a mediaplayer and only want tts.
I’ve been using both for a while. I only use this one for the -lastalexa though. I do feel like having both run is a bit of overkill, but already had everything set up using the media player, and TTS was really my main goal.
I dont really care that all my devices show up in HA, I just ignore the ones I dont want to use, but I never considered the “extra load”. Is it really that much “extra load” on your network, or just “more load” than this script. I get it. I have close to 40 devices on my network, and a bit of an addiction to echo’s. I have a 5 dots, one echo, one show and a spot. Plus a fire TV, and one of those wands with the bar code reader that never took off. I think I have 10+ Amazon media players. I do see noise in my logs, but again, have not noticed any slowness in HA, or my network.
The one thing I’ve ran into with this was the hassle with the cookie. 1st time took me a while to figure out, was so happy when I got it “working”, in /tmp, only to find it missing a few days later when I rebooted. Next time took 30 minutes to remember exactly what I did to get the cookie, which I lost again when I rebooted. 3rd time I put the cookie somewhere else so if I rebooted I could copy it back, which was still a bit of a hassle, but much less than the 1st 2 times. haha.
I guess my questions are
Does this script use a different way of interfacing with the echos, as in if Amazon ever makes changes could this break and the media player still work, or would they both break.
If they are different, which one do you think has the highest chance of breaking in the future.
How much “overhead” do you really feel like the media player component has.
Thanks again, you’ve helped me several times on here and I appreciate it greatly.
I have a several notifiactions that go to specific or all echos, such as water leak, etc. But other ones I want to speak from the one that I just spoke to.
I’m pretty sure this would work, but just checking. then something like so in an automation
all of those are scanned by the mediaplayer component every second.
when TTS is all you want from that you got 60 or more scans a minute more then you need
even if you dont notice it now, there will come a time in home automating that those are exactly the things you want to avoid.
both hack the alexa app, by sending json to the alexa servers pretending to be the app. they use a different way to send it but the result is the same.
the difference in the way they send doesnt make a difference in how the amazon server recieves it, so i dont think that breaking changes on the amazon site would make a difference.
i guess in your case quite a lot.
i did get a warning that the component did take over 10 secs all the time in my logs. maybe because of other stuff i have going on.
like i said above, if you dont need the mediaplayers then you get send a reqeust form HA to the amazon server at least 1 time every second.
thats a high price for avoiding to create your own service.
i dont know if you use HAdashboard or appdaemon, but with a simple app you can send tts to all devices just as well, without all that scanning.
no you cant that way.
the command
/home/homeassistant/.homeassistant/alexa_wrapper.sh -lastalexa
asks what the last alexa is
so you cant send commands to that.
you would need to use the speak command (and if possible with a template part in it that puts in last alexa sensor) to send the notify