Sequence of instructions node-red and python script, for play youtube from Alexa to LG tv.
Tools needed:
Node-red https://github.com/node-red/node-red
necessary pallets:
*node-red-contrib-alexa-remote2-applestrudel https://github.com/bbindreiter/node-red-contrib-alexa-remote2-applestrudel
*node-red-contrib-lgtv https://github.com/hobbyquaker/node-red-contrib-lgtv
*mqtt broker
*platform (example raspberry pi) to host Python scripts
Principle of operation:
* Starting with an alexa voice command containing the word "youtube and the name of the video".
* Node red reads the command Alexa and sends an mqtt message, containing the name of the video.
* The python script reads the mqtt message, and performs a search on youtube.
* Found the video, it transmits the address (via mqtt) useful to the lgtv node.