#[SOLVED] Blueprint not loading

1 messages · Page 1 of 1 (latest)

pure copper
#

What am I doing wrong here? I have reloaded my configuration but it doesn't show up when I go to create a script in the UI, though my other blueprints in the same folder do. Thanks in advance 🙂

Edit: figured it out; there were issues with (a) using "string" instead of text (forgot to change that placeholder after I looked up the term), and (b) target/entity/multiple keys.

blueprint:
  name: Play Media
  description: >-
    Set volume, optionally shuffle, and play some media.
  author: Californian
  domain: script
  input:
    volume:
      name: Volume
      description: The volume to which the speaker should be set.
      default: 0.35
      selector:
        number:
          min: 0
          max: 1
          step: 0.05
          mode: slider
    shuffle:
      name: Shuffle
      description: Determines whether the media should be shuffled when playing.
      default: false
      selector:
        boolean:
    media_player:
      name: Media Player
      description: The target device on which the media should be played.
      selector:
        target:
          entity:
            domain: media_player
    media_id:
      name: Media
      description: The media that should be played.
      selector:
        text:
          type: url

sequence:
  - action: media_player.shuffle_set
    metadata: {}
    data:
      shuffle: !input shuffle
    target: !input media_player
  - action: media_player.volume_set
    metadata: {}
    data:
      volume_level: !input volume
    target: !input media_player
  - action: music_assistant.play_media
    metadata: {}
    data:
      media_type: auto
      media_id: !input media_id
      enqueue: replace
    target: !input media_player

mode: single
#

Blueprint not loading