#Selector Media

1 messages · Page 1 of 1 (latest)

teal lantern
#

(In the blueprint...)

  input:
    file_2_play:
      name: Media File to play
      description: 'stuff here'
      default: []
      selector:
        media: {}
mode: queued
sequence:
- alias: Media Player Blueprint Script
  service: media_player.play_media
  data:
    !input 'file_2_play'
#

That's what looked the most promising... but fails

#

Media Player test2: Error executing script. Invalid data for call_service at pos 1: extra keys not allowed @ data['metadata']]

#

This is the resulting script from the blueprint called script trace...

alias: Media Player Blueprint Script
service: media_player.play_media
data:
  entity_id: media_player.common_group_2
  media_content_id: media-source://media_source/local/mp3/FireTruck.mp3
  media_content_type: audio/mpeg
  metadata:
    title: FireTruck.mp3
    thumbnail: null
    media_class: music
    children_media_class: null
    navigateIds:
      - {}
      - media_content_type: app
        media_content_id: media-source://media_source
      - media_content_type: ''
        media_content_id: media-source://media_source/local/mp3
#

How do I strip that out, or is this a bug? I will report as a bug but not if I'm being an idiot here missing something.

teal lantern
#

If anyone has a solution other than manually deleting the stuff below metadata:, let me know.