Skip to content

NOTE

This action is used from Home Assistant scripts and automations and requires the Home Assistant integration. See Home Assistant scripts and automations for examples.

This action does a global search across all providers

image

This will return something like this

image

You could then use a template to extract what you need and then use the play_media service call. For example:

script:
search_ma:
mode: queued
alias: "Jukebox MA search"
sequence:
- action: music_assistant.search
data:
limit: 8
name: "{{ states.input_text.jukebox_search.state}}"
response_variable: results
- action: input_text.set_value
data:
entity_id: input_text.jukebox_track_1
value: '{{ results.tracks[0].name }}'
- action: input_text.set_value
data:
entity_id: input_text.jukebox_artist_1
value: '{{ results.tracks[0].artists[0].name }}'

This website uses privacy-first analytics to help us improve the site. You can view all data in our public dashboard.