Music Assistant stop playback after 2hrs

Hello,

I hope this message finds you well. I am reaching out to ask a question about the Music Assistant program. We have been using it for some time now, and we absolutely love it—thank you for creating such a fantastic tool!

I do have one issue that, while not critical, can be a bit of a hassle. When playing a local radio station using the Radio Browser, the stream stops after two hours. There are no crashes or errors; it simply stops playing. I can restart it immediately, and it will play for another two hours, but this interruption is inconvenient, especially since we like to leave it on overnight.

I suspect there might be a two-hour timer somewhere in the settings that I am not aware of. Below is the YAML configuration I use to call the radio station, and I don’t see any timer settings:

Code

alias: Play Froggy On the Basement Voice
description: Play Froggy In The Basement
triggers:
  - trigger: conversation
    command:
      - play froggy basement
conditions: []
actions:
  - action: media_player.play_media
    target:
      entity_id: media_player.voice_bedroom_media_player
    data:
      media_content_id: library://radio/1
      media_content_type: music
    metadata:
      title: Froggy 94.9
      thumbnail: http://cdn-radiotime-logos.tunein.com/s296107q.png
      media_class: music
      children_media_class: null
      navigateIds:
        - {}
        - media_content_type: music_assistant
          media_content_id: radio
mode: single

Any assistance you could provide would be greatly appreciated. As I mentioned, this is not a deal breaker for us; we love the setup and will continue using it. However, it would be wonderful if we could avoid having to restart the stream.

Thank you for your help!

Best regards,
John G

I dont think MA have such a timer, but I know sone radio stations do on their streams.
Streams eats data and data creates traffic and traffic cost money, so the radio stations wants active listeners.

1 Like

What hardware are you running HA/MA on?

Have you checked the logs @ ha settings > addons > music assistant > logs ?

I found on my home assistant blue, that I was running out of RAM and it would get killed.

If you have a provider configured that has a large library (ie plex or whatever), or possibly many smaller providers, that it can take larger amounts of ram.

thanks for the help i think it is the redio station that is stopping the stream. thought it was some kind of a timer as it was always 2hrs

knew it will not my system:
ASRock Z390 PRO4 Intel LGA1151 DDR4 ATX Motherboard
RAM 64GB DDR4, i7-9700k 8 core 3.6GHz, [ Samsung 990 PRO SSD NVMe M.2 PCIe Gen4, M.2 2280 Internal Solid State Hard Drive, Seq. Read Speeds Up to 7,450 MB

i know over kill so I should never have any problem … i have plans to do a lot with the system and i never wanted it to slow down that why i knew it was not here but on something that i could not control

andwhy that a lot got some ideas … i will see if i can keep it running

thanks again John G

well I would try something different than the radio station to see if it last longer, it sounds quite plausible that a free radio stream could be cut off remotely after certain time.

i think i found out it is the radio station. they stop it ever 2h. is there a way to keep it running?

You would have to make an automation, but you would then need something that can be used to detect the state of a stopped or idle connection.
See if you can find that way to detect it.

Alternatively you can add a timer that starts when your station is playing and then when teaching 1:59 stops and starts the music automatically, but you need to know if it is enough to just restart the same stream or you need to start a new stream from the start link.