{
  "config": {
    "step": {
      "auth_manual": {
        "data": {
          "token": "Long-lived access token"
        },
        "data_description": {
          "token": "Create a long-lived access token in your Music Assistant server settings and paste it here"
        },
        "title": "Enter long-lived access token"
      },
      "init": {
        "data": {
          "url": "URL of the Music Assistant server"
        }
      },
      "manual": {
        "title": "Manually add Music Assistant server",
        "description": "Enter the URL to your already running Music Assistant server. If you do not have the Music Assistant server running, you should install it first.",
        "data": {
          "url": "URL of the Music Assistant server"
        }
      },
      "discovery_confirm": {
        "description": "Do you want to add the Music Assistant server `{url}` to Home Assistant?",
        "title": "Discovered Music Assistant server"
      },
      "hassio_confirm": {
        "description": "Do you want to add the Music Assistant server to Home Assistant?",
        "title": "Discovered Music Assistant add-on"
      },
      "reauth_confirm": {
        "description": "The authentication token for Music Assistant server `{url}` is no longer valid. Please re-authenticate to continue using the integration.",
        "title": "Reauthentication required"
      }
    },
    "error": {
      "auth_failed": "[%key:component::music_assistant::config::abort::auth_failed%]",
      "cannot_connect": "[%key:common::config_flow::error::cannot_connect%]",
      "invalid_server_version": "[%key:component::music_assistant::config::abort::invalid_server_version%]",
      "unknown": "[%key:common::config_flow::error::unknown%]"
    },
    "abort": {
      "already_configured": "[%key:common::config_flow::abort::already_configured_device%]",
      "already_in_progress": "[%key:common::config_flow::abort::already_in_progress%]",
      "auth_error": "Authentication error, please try again",
      "auth_failed": "Authentication failed, please try again",
      "cannot_connect": "[%key:common::config_flow::error::cannot_connect%]",
      "invalid_server_version": "The Music Assistant server is not the correct version",
      "reauth_successful": "[%key:common::config_flow::abort::reauth_successful%]",
      "unknown": "[%key:common::config_flow::error::unknown%]"
    }
  },
  "options": {
    "step": {
      "init": {
        "data": {
          "download_local": "Attempt fallback support for local media images. May cause performance issues. Only enable if you cannot see media images for your players."
        }
      }
    },
    "error": {
      "invalid_det_rules": "Invalid state detection rules"
    }
  },
  "issues": {
    "invalid_server_version": {
      "title": "The Music Assistant server is not the correct version",
      "description": "Check if there are updates available for the Music Assistant server and/or integration."
    }
  },
  "services": {
    "get_queue_items": {
      "name": "Get Queue Items",
      "description": "Returns a list of the current items in a player's queue.",
      "fields": {
        "limit": {
          "name": "Limit",
          "description": "Limit on the number of items in queue to return."
        },
        "offset": {
          "name": "Offset",
          "description": "Location in queue to start where zero equals the first item in queue, not the current item.."
        },
        "limit_before": {
          "name": "Limit Before",
          "description": "Number of items to pull before current active item in queue.."
        },
        "limit_after": {
          "name": "Limit After",
          "description": "Number of items to pull after current active item in queue.."
        },
        "entity": {
          "name": "Entity",
          "description": "Music Assistant Media Player Entity."
        }
      }
    },
    "remove_queue_item": {
      "name": "Remove Queue Item",
      "description": "Removes an item from the current active queue for a player.",
      "fields": {
        "queue_item_id": {
          "name": "Queue Item ID",
          "description": "ID for the item to remove."
        },
        "entity": {
          "name": "Entity",
          "description": "Music Assistant Media Player Entity."
        }
      }
    },
    "move_queue_item_up": {
      "name": "Move Queue Item Up",
      "description": "Moves an item up in a player's queue.",
      "fields": {
        "queue_item_id": {
          "name": "Queue Item ID",
          "description": "ID for the item to move up."
        },
        "entity": {
          "name": "Entity",
          "description": "Music Assistant Media Player Entity."
        }
      }
    },
    "move_queue_item_down": {
      "name": "Move Queue Item Down",
      "description": "Moves an item down in a player's queue.",
      "fields": {
        "queue_item_id": {
          "name": "Queue Item ID",
          "description": "ID for the item to move down."
        },
        "entity": {
          "name": "Entity",
          "description": "Music Assistant Media Player Entity."
        }
      }
    },
    "move_queue_item_next": {
      "name": "Move Queue Item Next",
      "description": "Moves an item next in a player's queue.",
      "fields": {
        "queue_item_id": {
          "name": "Queue Item ID",
          "description": "ID for the item to move next."
        },
        "entity": {
          "name": "Entity",
          "description": "Music Assistant Media Player Entity."
        }
      }
    },
    "play_queue_item": {
      "name": "Play Queue Item",
      "description": "Plays an item that's currently in a player queue.",
      "fields": {
        "queue_item_id": {
          "name": "Queue Item ID",
          "description": "ID for the item to play."
        },
        "entity": {
          "name": "Entity",
          "description": "Music Assistant Media Player Entity."
        }
      }
    },
    "send_command": {
      "name": "Send Command",
      "description": "Sends a command to the Music Assistant API.",
      "fields": {
        "command": {
          "name": "Command",
          "description": "Command to send to Music Assistant."
        },
        "data": {
          "name": "Data",
          "description": "Command data to send."
        },
        "config_entry_id": {
          "name": "Config Entry ID",
          "description": "Config Entry ID for the Music Assistant Queue Items instance."
        }
      }
    },
    "unfavorite_current_item": {
      "name": "Unfavorite Current Item",
      "description": "Unfavorites the currently playing item in a player queue.",
      "fields": {
        "entity": {
          "name": "Entity",
          "description": "Music Assistant Media Player Entity."
        }
      }
    },
    "get_recommendations": {
      "name": "Get Recommendations",
      "description": "Get recommendations from your music providers.",
      "fields": {
        "entity": {
          "name": "Entity",
          "description": "Music Assistant Media Player Entity."
        },
        "providers": {
          "name": "Providers",
          "description": "Limit recommendations to the specified providers."
        }
      }
    },
    "get_group_volume": {
      "name": "Get Group Volume",
      "description": "Returns the volume for a player group.",
      "fields": {
        "entity": {
          "name": "Entity",
          "description": "Music Assistant Media Player Entity."
        }
      }
    },
    "set_group_volume": {
      "name": "Set Group Volume",
      "description": "Sets the volume for a player group.",
      "fields": {
        "entity": {
          "name": "Entity",
          "description": "Music Assistant Media Player Entity."
        },
        "volume_level": {
          "name": "Volume Level",
          "description": "Volume level to set the player to."
        }
      }
    },
    "clear_queue_from_here": {
      "name": "Clear Queue From Here",
      "description": "Clears all items before/after the current track in a queue.",
      "fields": {
        "entity": {
          "name": "Entity",
          "description": "Music Assistant Media Player Entity."
        }
      }
    },
    "get_playlist_tracks": {
      "name": "Get Playlist Tracks",
      "description": "Returns all tracks for the playlist given.",
      "fields": {
        "config_entry_id": {
          "name": "Config Entry ID",
          "description": "Config Entry ID for the Music Assistant Queue Items instance."
        },
        "uri": {
          "name": "Playlist URI",
          "description": "URI for the playlist."
        },
        "page": {
          "name": "Page",
          "description": "Page of results to return. If not provided, returns all."
        }
      }
    },
    "get_album_tracks": {
      "name": "Get Album Tracks",
      "description": "Returns all tracks for the album given.",
      "fields": {
        "config_entry_id": {
          "name": "Config Entry ID",
          "description": "Config Entry ID for the Music Assistant Queue Items instance."
        },
        "uri": {
          "name": "Album URI",
          "description": "URI for the album."
        },
        "page": {
          "name": "Page",
          "description": "Page of results to return. If not provided, returns all."
        }
      }
    },
    "get_artist_tracks": {
      "name": "Get Artist Tracks",
      "description": "Returns all tracks for the artist given.",
      "fields": {
        "config_entry_id": {
          "name": "Config Entry ID",
          "description": "Config Entry ID for the Music Assistant Queue Items instance."
        },
        "uri": {
          "name": "Artist URI",
          "description": "URI for the artist."
        },
        "page": {
          "name": "Page",
          "description": "Page of results to return. If not provided, returns all."
        }
      }
    },
    "get_podcast_episodes": {
      "name": "Get Podcast Episodes",
      "description": "Returns all episodes for the podcast given.",
      "fields": {
        "config_entry_id": {
          "name": "Config Entry ID",
          "description": "Config Entry ID for the Music Assistant Queue Items instance."
        },
        "uri": {
          "name": "Podcast URI",
          "description": "URI for the podcast."
        }
      }
    },
    "get_playlist": {
      "name": "Get Playlist",
      "description": "Returns information about a playlist from the server.",
      "fields": {
        "config_entry_id": {
          "name": "Config Entry ID",
          "description": "Config Entry ID for the Music Assistant Queue Items instance."
        },
        "uri": {
          "name": "Playlist URI",
          "description": "URI for the playlist."
        }
      }
    },
    "get_album": {
      "name": "Get Album",
      "description": "Returns information about an album from the server.",
      "fields": {
        "config_entry_id": {
          "name": "Config Entry ID",
          "description": "Config Entry ID for the Music Assistant Queue Items instance."
        },
        "uri": {
          "name": "Album URI",
          "description": "URI for the album."
        }
      }
    },
    "get_artist": {
      "name": "Get Artist",
      "description": "Returns information about an artist from the server.",
      "fields": {
        "config_entry_id": {
          "name": "Config Entry ID",
          "description": "Config Entry ID for the Music Assistant Queue Items instance."
        },
        "uri": {
          "name": "Artist URI",
          "description": "URI for the artist."
        }
      }
    },
    "get_podcast": {
      "name": "Get Podcast",
      "description": "Returns information about a podcast from the server.",
      "fields": {
        "config_entry_id": {
          "name": "Config Entry ID",
          "description": "Config Entry ID for the Music Assistant Queue Items instance."
        },
        "uri": {
          "name": "Podcast URI",
          "description": "URI for the podcast."
        }
      }
    },
    "remove_playlist_tracks": {
      "name": "Remove Playlist Tracks",
      "description": "Removes one or more tracks from a playlist based on position.",
      "fields": {
        "config_entry_id": {
          "name": "Config Entry ID",
          "description": "Config Entry ID for the Music Assistant Queue Items instance."
        },
        "playlist_id": {
          "name": "Playlist ID",
          "description": "ID of the playlist."
        },
        "positions_to_remove": {
          "name": "Positions to remove",
          "description": "Position(s) of items to remove from the playlist."
        }
      }
    }
  }
}
