Play YouTube on Xbox

Hi,

I want to make an automation for playing a YouTube movie on my xbox. For now I can start the app but I can’t find a way to start it with a link like: 🔥 The Best 4K Relaxing Fireplace with Crackling Fire Sounds 8 HOURS No Music 4k UHD TV Screensaver - YouTube

Yaml:

alias: Test Youtube Xbox
description: ''
trigger:
  - platform: device
    type: turned_off
    device_id: 1262aa459b49acc1b17650ac8de3b449
    entity_id: switch.midden_ground
    domain: switch
condition: []
action:
  - service: media_player.play_media
    target:
      device_id: 10bbef651ba52ce822f0cd80afc64980
    data:
      media_content_type: App
      media_content_id: 9NDP7KTLK7W3
mode: single

Please post your yaml as preformatted text (</> in the toolbar). It’s very difficult to follow otherwise.

1 Like

done, thanks!

is it possible to start youtube with a specific chosen video?