Hi folks,
I’m trying to make my LG WebOS to start a video via script, my script:
# Turn on fireplace on youtube!
start_fireplace_youtube:
alias: 'Turn on Fireplace'
sequence:
- service: wake_on_lan.send_magic_packet
data:
mac: "74-A0-CE-28-FF-12"
broadcast_address: 192.168.0.255
- delay:
seconds: 6
- service: webostv.command
target:
entity_id: media_player.tv
data:
command: system.launcher/launch
payload:
id: youtube.leanback.v4
contentId: cdKop6aixVE
entity_id: media_player.tv
in theory it works. TV turns on, youtube start, however instead of video, I get the youtube welcome screen asking ‘who is watching? USER_A / guest / add user’
and i have to with my tv remote select it’s me then… my video starts playing. is there any way to avoid that ‘welcome screen’ from youtube app ?
WallyR
(Wally)
December 10, 2021, 2:03am
2
I think that occur because you have set up an account on the TV already.
I do not get that box, but I have no accounts, so I am just guest always.
avd706
(Avd706)
December 11, 2021, 12:50am
3
I get that on RoKU not chromecast
usermm45
(usermm45)
December 26, 2021, 8:49am
4
Have you managed to resolve this yet?
Thanks
Hey, y’all. I got around this by having a delay, and then sending the Enter
button (to select the account).
Here’s my Yule Log:
sequence:
- service: webostv.command
data:
entity_id: media_player.lg_basement_tv
command: system.launcher/launch
payload:
id: youtube.leanback.v4
contentId: v=6VB4bgiB0yA
- delay:
hours: 0
minutes: 0
seconds: 5
milliseconds: 0
- service: webostv.button
data:
entity_id: media_player.lg_basement_tv
button: ENTER
mode: single
alias: Yule Log
icon: mdi:fire
Is this still working for everyone? I’m able to get the youtube to load but can’t get the video to play. Here is my test script.
tv_youtube:
alias: TV YouTube
mode: single
sequence:
- service: webostv.command
data:
entity_id: media_player.lg_tv
command: system.launcher/launch
payload:
id: youtube.leanback.v4
contentId: ppsWSYth0rE
Figured it out. I was missing the v= in the contentId
section.
tv_youtube:
alias: TV YouTube
mode: single
sequence:
- service: webostv.command
data:
entity_id: media_player.lg_tv
command: system.launcher/launch
payload:
id: youtube.leanback.v4
contentId: v=ppsWSYth0rE
1 Like
mlh
(Mlh)
January 29, 2023, 6:55pm
9
I don’t know if it will be of any use to anybody but I made a Lovelace card, where you can paste the URL and it will play it on your screen. It is based on the Webos Keyboard Input which can be found in HACS.
Here is the script.
You can also use ‘Repeat Until’ to run YouTube after the TV is turned on.
alias: Play YouTube (wookingwoo)
sequence:
- service: wake_on_lan.send_magic_packet
data:
mac: AA:BB:CC:DD:EE:FF // your mac address
- repeat:
sequence:
- delay:
hours: 0
minutes: 0
seconds: 3
milliseconds: 0
- service: webostv.command
data:
entity_id: {your_entity_id}
command: system.launcher/launch
payload:
id: youtube.leanback.v4
contentId: v=pbhAc27H0
until:
- condition: device
device_id: {your_device_id}
domain: media_player
entity_id: {your_entity_id}
type: is_on
mode: single
icon: mdi:youtube
zupdaz
(Zupdaz)
January 18, 2025, 10:25pm
11
This is not working anymore? My webos YT app just says Something went wrong each time I run:
action: webostv.command
data:
entity_id: media_player.lg_webos_smart_tv
command: system.launcher/launch
payload:
id: youtube.leanback.v4
contentId: v=VEUZ6oX6Akg
fmilani
(Felipe)
January 22, 2025, 2:07am
12
I got it working by removing the v=