You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could you add to the Youtube integration the ability to search for videos by any query and a sensor that will output code variants based on the search.
Why is this necessary? There is a speaker with a built-in voice assistant and you can ask the voice assistant to do something. Turning to the voice assistant with a request to find something, an event arrives in the Home Assistant
The problem is that not all Smart TVs are able to work with such a code https://www.youtube.com/results?search_query ={{search|replace(" ", "+")}}, and to include any content, you need to specify the content code https://www.youtube.com/watch?v=DKM9d5CZUxk . Below I have given two examples and each example is working, but for example in LG TVs. Does not work https://www.youtube.com/results?search_query ={{ trigger.event.data.book|replace(" ", "+") }}, and only DKM9d5CZUxk works (https://www.youtube.com/watch?v=DKM9d5CZUxk ) . And having created a service that will receive input text on a given topic and video options will be issued in the sensor or there will be one selected code that was selected by random method, then it can be used in TV services to launch videos through a voice assistant.
A variant of work with the indication of the video code for LG TVs
If you use several code variants, you can selectively run the video https://www.youtube.com/watch?v={{ ['shoVsQhou-8', 'shoVsQhou-8', 'Rb0UmrCXxVA', 'Rb0UmrCXxVA', 'iUohO2MSot8', 'iUohO2MSot8', 'QEDZd066a2k', 'QEDZd066a2k', 'QHl6wYCwlcQ', 'QHl6wYCwlcQ']|random }}
or https://www.youtube.com/watch?v={{ states("sensor.search_youtube_video")}}
Could you add to the Youtube integration the ability to search for videos by any query and a sensor that will output code variants based on the search.
Why is this necessary? There is a speaker with a built-in voice assistant and you can ask the voice assistant to do something. Turning to the voice assistant with a request to find something, an event arrives in the Home Assistant
Based on this event, a trigger is used
In the action, a link is indicated with the search for the desired topic and a youtube video search is launched on the TV
Thus we get a search result with the topic documentaries about space
www.youtube.com/results?search_query=documentaries+about+space
The problem is that not all Smart TVs are able to work with such a code https://www.youtube.com/results?search_query ={{search|replace(" ", "+")}}, and to include any content, you need to specify the content code https://www.youtube.com/watch?v=DKM9d5CZUxk . Below I have given two examples and each example is working, but for example in LG TVs. Does not work https://www.youtube.com/results?search_query ={{ trigger.event.data.book|replace(" ", "+") }}, and only DKM9d5CZUxk works (https://www.youtube.com/watch?v=DKM9d5CZUxk ) . And having created a service that will receive input text on a given topic and video options will be issued in the sensor or there will be one selected code that was selected by random method, then it can be used in TV services to launch videos through a voice assistant.
A variant of work with the indication of the video code for LG TVs
The option of specifying the code on request for Android-based TVs
For understanding, a link to the source Search for Youtube Videos
Where the author of the article points to a variant of the code that extracts the codes on request
and the search result is given, where there will be several variants of the code to launch the video
To start a video, the following code is usually specified
https://www.youtube.com/watch?v=Rb0UmrCXxVA
If you use several code variants, you can selectively run the video
https://www.youtube.com/watch?v={{ ['shoVsQhou-8', 'shoVsQhou-8', 'Rb0UmrCXxVA', 'Rb0UmrCXxVA', 'iUohO2MSot8', 'iUohO2MSot8', 'QEDZd066a2k', 'QEDZd066a2k', 'QHl6wYCwlcQ', 'QHl6wYCwlcQ']|random }}
or
https://www.youtube.com/watch?v={{ states("sensor.search_youtube_video")}}
Of course, you can use this option, but it does not work in all TV
https://www.youtube.com/results?search_query="{{search|replace(" ", "+")}}"
This code is pulled from this source. Here we are talking about pulling out audio, but you can also output video
The text was updated successfully, but these errors were encountered: