@ozpac I think I used the DLNA integration to allow the players to show up in HA as a media player. As soon as the player shows as playing it triggers the automation below to switch on the amp. Use Developer Tools to check the media_player.kitchen shows up and is working correctly. Works really well for me. I found the DLNA was the fastest response than alternative integrations. From memory in LMS you MIGHT need to install one of the bridges to allow the player to show in DLNA.
alias: Kitchen Amp Turn On
description: ""
trigger:
- platform: state
entity_id:
- media_player.kitchen_2
to: playing
condition: []
action:
- service: switch.turn_on
data: {}
target:
entity_id: switch.kitchen_amp_power
mode: single
edit: I run my LMS separately from HA as it works so well and my family after ten years has almost got comfortable with the lovely material interface!!! “Over my dead body” is anything going to change!
You will need to know the full path to your given music folder item as seen by Logitech Media Server (LMS). This will derive from whatever you added to the basic settings as your media folder when you set LMS up:
service: squeezebox.call_method
target:
entity_id: media_player.<your_player_here>
data:
command: playlist
parameters:
- add # Adds folder to end of playlist. Can also be 'play' (clears entire playlist), or 'insert' (inserts it as next item)
- "/path/to/your/music/folder/Enigma"
To be extra sure, wrap your folder path in quotes if it contains spaces.
Hi @python, i just implemented the HA Squeezebox integration and connected it to my LMS. This seems to be working fine.
But currently i’m missing “Favorites” and “My Apps”. I see in your screenshot that you were able to add “Favourites”. Can you help me how to achieve this.
I’m new to HA so only
experience via the web console so far.
And in here, if i select “Browse Media (Blader door Media)” i cannot see my LMS “favorites” or “my apps” like i have on the players or via SqueezePlay.
Would you mind sharing your code for playing from Favorites? I’m failing to get this to work.
alias: BBC Radio 6 Music
sequence:
- action: squeezebox.call_method
target:
entity_id: media_player.office
data:
command: favorites
parameters:
- play
- BBC Radio 6 Music
description: ""
For anyone interested and using the BBC Sounds App in LMS. I achieved the desired result by creating a script and then using a button to call the script
alias: BBC Radio 6 Music
sequence:
- action: squeezebox.call_method
target:
entity_id: media_player.office
data:
command: playlist
parameters:
- play
- >-
sounds://_LIVE_bbc_6music
description: ""