Hi
I had my internet radio working fine … then through a combination of faffing around broke it This is what I am trying to do…
HASS > Mopidy Server > Snapserver > Snapclient > Amp
So what I have first is a card for the media player like this
entities:
- entity: media_player.mopidy
icon: mdi:radio
name: Internet Radio
type: custom:mini-media-player
info: scroll
toggle_power: false
source: full
scale: '1.5'
volume: 50
hide:
volume: true
source: true
power: true
name: false
icon: true
info: false
next: true
prev: true
shortcuts:
columns: 4
buttons:
- name: null
image: >-
https://static.wikia.nocookie.net/tvfanon6528/images/3/36/BBC_World_News_(2022-.n.v.).png/revision/latest?cb=20220426080337
type: playlist
id: media-source://radio_browser/98adecf7-2683-4408-9be7-02d3f9098eb8
I have a list of radio channel buttons. The entity is a “entity: media_player.mopidy” - this connects to a Mopidy server integration which is configured with this output in the configuration file
[core]
cache_dir = /home/mopidy/.config/mopidy
config_dir = /home/mopidy/.config/mopidy
data_dir = /home/mopidy/.config/mopidy
[mpd]
hostname = ::
[http]
hostname = mopidy
enabled = true
port = 6680
[spotify]
enabled = false
client_id =
client_secret =
[ytmusic]
enabled = false
auth_json =
[local]
enabled = true
media_dir = /media/music
[audio]
# Comment out this line for mopidy to use the default audio device
#output = audioresample ! audioconvert ! audio/x-raw,rate=48000,channels=2,format=S16LE ! wavenc ! tcpclientsink host=snapserver
#output = audioresample ! audioconvert ! audio/x-raw,rate=48000,channels=2,format=S16LE ! wavenc ! tcpclientsink host=192.168.1.196
output = audioresample ! audioconvert ! audio/x-raw,rate=48000,channels=2,format=S16LE ! wavenc ! tcpclientsink host=192.168.6.199 port=3333
#output = wavparse ! audioresample ! audioconvert ! audio/x-raw,rate=48000,channels=2,format=S16LE ! wavenc ! tcpclientsink host=192.168.6.199 port=3333
[file]
enabled = false
media_dir = /media|Media
[logging]
verbosity = 4
format = %(levelname)-8s %(asctime)s [%(process)d:%(threadName)s] %(name)s\n %(message)s
color = true
config_file =
When I select a radio station I can see in the Mopidy web interface the station is “playing”
my SnapServer is configured like this
[server]
[http]
enabled = true
bind_to_address = 0.0.0.0
port = 1780
doc_root = /usr/share/snapserver/snapweb
[tcp]
enabled = true
bind_to_address = 0.0.0.0
port = 1705
[stream]
# For Airplay
#source = airplay:///shairport-sync?name=Airplay&devicename=Multiroom
stream = tcp://127.0.0.1:3333?name=source1
source = spotify:///librespot?name=Spotify&us...
this server runs on this IP 192.168.6.199 … it also has a Spotify source and that seems to work fine with the Spotify integration.
In the HASS webapp I can add the media-control for the snapclient like this
type: media-control
entity: media_player.odroid_snapcast_client
the drop down to select source has the 2 options from the snapserver conf
“source1” and “Spotify”
I think I am close… but tailing the log for the Snapserver I never see anything coming in from Mopidy > Snapserver and I don’t know why
anyone got an idea what is wrong or point me to a guide online please.