1
0
mirror of https://github.com/natekspencer/hacs-oasis_mini.git synced 2025-11-18 18:13:41 -05:00

Adjust media player to allow adding multiple tracks at a time

This commit is contained in:
Nathan Spencer
2025-01-10 21:48:31 +00:00
parent ddabccc4a8
commit 51c4c8a6a2
4 changed files with 74 additions and 24 deletions

View File

@@ -56,6 +56,20 @@ Alternatively:
After this integration is set up, you can configure the integration to connect to the Kinetic Oasis cloud API. This will allow pulling in certain details (such as track name and image) that are otherwise not available.
# Actions
The media player entity supports various actions, including managing the playlist queue. You can specify a track by its ID or name. If using a track name, it must match an entry in the [tracks list](custom_components/oasis_mini/pyoasismini/tracks.json). To specify multiple tracks, separate them with commas. An example is below:
```yaml
action: media_player.play_media
target:
entity_id: media_player.oasis_mini
data:
media_content_id: 63, Turtle
media_content_type: track
enqueue: replace
```
---
## Support Me