Skip to content

HACS only

MA get_queue Action

This action allows you to retrieve the full details of a queue

image

The returned JSON is extensive and includes information about the current and next item in the queue. The returned data can be used in templates.

Example

script:
  get_now_playing:
    mode: queued
    alias: "Get Now Playing Track Name"
    sequence:
      - action: mass.get_queue
        data:
          entity_id: media_player.ma_kitchen_speaker
        response_variable: queue_info
      - service: input_text.set_value
        data:
          entity_id: input_text.now_playing
          value: '{{ queue_info['media_player.ma_kitchen_speaker'].current_item.name[:50] }}'
HACS only