This is a modified version of SqueezePlayAdmin plugin from Erland to control Line-in on Squeezebox Radio remotely. (and may be others like Squeezebox Boom but not tested)
add this plugin repository :
https://raw.githubusercontent.com/schmurtzm/erlandplugins/master/repository/trunk/testing.xml
Then activate the plugin "SqueezePlay Admin Client + Line-In control Beta"
Settings -> Advanced -> Applet Installer -> unselect "Recommanded Applets Only" and then install "SqueezePlay Admin + Line-In control Beta"
Then You can switch to line in with CLI with these commands (00:xx:xx:xx:xx:xx is the mac address of the Squeezebox Radio) :
Reminder for the CLI : telnet IP_LMS_Server 9090
squeezeplayadmin enable_linein 00:xx:xx:xx:xx:xx
squeezeplayadmin disable_linein 00:xx:xx:xx:xx:xx
OR
http://IP_LMS_Server:9000/status.html?p0=squeezeplayadmin&p1=enable_linein&p2=00:xx:xx:xx:xx:xx
For Home Assistant : (switch to line-in on the squeezebox when Google Home is playing spotify)
alias: Spotify_GoogleHome_To_Squeezebox_Automation
description: Enable Squeezebox Radio input when Google Home Mini is playing Spotify
trigger:
- platform: state
entity_id: media_player.MyGoogleHome
attribute: app_name
to: Spotify
condition: []
action:
- service: squeezebox.call_query
data:
parameters:
- enable_linein
- 00:xx:xx:xx:xx:xx
command: squeezeplayadmin
target:
entity_id: media_player.MySqueezebox
mode: single
official topic :
Official Website :
http://downloads.isaksson.info/download/do/viewapplication?name=slimserver-squeezeplayadmin
Official Github :
applet :
https://github.com/erland/squeezebox-squeezeplayadmin
plugin :
https://github.com/erland/lms-squeezeplayadmin
alternative for plugin :
https://github.com/erland/erlandplugins/tree/master/SqueezePlayAdminClient/trunk/src
https://forums.slimdevices.com/showthread.php?96099-Enable-Line-In-via-SSH&highlight=line-in
https://forums.slimdevices.com/showthread.php?100212-Turn-on-Line-in-via-CLI-interface
Line-In Plugin :
https://github.com/Logitech/slimserver/blob/public/8.3/Slim/Plugin/LineIn/Plugin.pm
Line-In Button Applet for Radio (shortcut to activate line-in quickly) :
https://forums.slimdevices.com/showthread.php?109870-ANNOUNCE-Line-In-Button-Applet-for-Radio
Have Squeezebox logs when executing applets functions :
activate remote admin on the squeezebox, SSH -> root/1234 , then to see logs : "tail -f /var/log/messages"
Path of the applet once installed on the squeezebox (use WinSCP with SCP protocol) :
/usr/share/jive/applets
Official documentation about applets :
https://wiki.slimdevices.com/index.php/SqueezePlay_Applets.html
Modify and test an applet : use Winscp to edit then to test it is faster to restart squeezeplay process than restarting the Squeezebox :
bash/etc/init.d/squeezeplay stopwdog && /etc/init.d/squeezeplay restart