bafplus2

Player example

Oct 10th, 2021 (edited)
369
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.29 KB | None | 0 0
  1. type: vertical-stack
  2. cards:
  3.   - type: media-control
  4.     entity: media_player.chromecast3287
  5.   - type: vertical-stack
  6.     cards:
  7.       - type: button
  8.         tap_action:
  9.           action: call-service
  10.           service: media_player.play_media
  11.           service_data:
  12.             entity_id: media_player.chromecast3287
  13.             media_content_type: cast
  14.             media_content_id: ' { "app_name": "youtube", "media_id": "xGN0iBi1zUY" }'
  15.         name: youtube example
  16.         entity: media_player.chromecast3287
  17.         show_icon: false
  18.         show_state: false
  19.       - type: button
  20.         tap_action:
  21.           action: call-service
  22.           service: media_player.play_media
  23.           service_data:
  24.             media_content_type: audio/mp3
  25.             entity_id: media_player.chromecast3287
  26.             media_content_id: https://ice.cr1.streamzilla.xlcdn.com:8000/sz=Hallokidsradio=mp3
  27.             extra:
  28.               metadata:
  29.                 metadataType: 3
  30.                 title: HalloKids Radio
  31.                 images:
  32.                   - url: >-
  33.                       https://www.hallokidsradio.nl/wp-content/uploads/2021/03/Logo_HKR-300x150.png
  34.         entity: media_player.chromecast3287
  35.         name: Online Radio Example
  36.         show_icon: false
  37.         show_state: false
Add Comment
Please, Sign In to add comment