I created an automation on HA to work with Alexa. To explain what I want to do, I want to tell alexa to put my LG TV (with LG WebOS already integrated on HA) on Netflix app.
Make it a script, not an automation since there’s no trigger. You would also want to name it what you want to ask Alexa to do. For Alexa, start Netflix use alias: Netflix
I have the HA Cloud, and I had to force sync to expose the new script to Alexa.
But on Alexa, it appears like a Scene.
And I still need to create a Routine but now I look fot the scene. And it worked like a charm.
Thanks @popboxgun
Hi, i mean only script.yaml, sorry about that, because i follow your idea and i have a trouble about the dictionary, like the script don´t recognise my media player. I´ll put the code:
configuration.yaml
Thank you men, its works without errors, but i have a question, I said to alexa to turn on the tv, and done, but i don´t how to invocate the script in Alexa, i read before the u say Alexa, start Netflix and execute the script, but in my case, it said that i don´t have a skill to deploy that invocation, can you tell me how to invocate?
Sorry for have done incorrectly the question, i mean, the process of turn on the tv actually works, but the next step will be invocate the script(i guess), so, how i should say to alexa to execute the script that we develop? Because when i said Alexa, start or turn on netflix, doesn´t work Alexa, it said that i don´t have a skill to do that invocation. Are you understand what i mean?
Whatever you name the script (in my example netflix) is what you would use.
For mine, I say “Alexa turn on Netflix”.
You do have to add scripts to include_domain as mentioned above then refresh your Echos so they see the new skill. There’s a time period before Amazon searched for new skills, but there’s also something you can say that will have it refresh and look for new smart devices, but I can’t remember what it is.