Music Assistant - Get Queue Items #5596
-
|
I'm trying to get the total items in a media player queue to know if I can skip to the next track in a script. I am using the get_queue action and the action response variable to hold the results. When I query the JSON variable for 'items' (the total items in the queue) I get ' <built-in method items of dict object at 0x7f691efb40>' instead of a number. A query on the current_index correctly returns the index of the currently running item in the queue. The test yaml I am using is listed below. Any assistance would be appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Try
|
Beta Was this translation helpful? Give feedback.
Try
{{action_response['media_player.family_room']['items']}}