Play sound with squeezebox when entering bathroom

I now have a simple solution for play the song at the last stopped position, when no other song was played between:

I check if the title is still the title of the song which always plays and if yes, send playpause to on. Else send the url and then the song begins from the beginning.

1 Like

Can i do that with a playlist as well? Or can i make a folder inside LMS and only play the songs which are inside this folder?

Only one song gets boring with the time. I want to have a playlist or folder with many songs and play them with shuffle.

But how can i check inside a rule, if this playlist is playing? There is no item for “playlist”, only artist, title, …

And how can i send a command to my squeezebox to play a special playlist or a song from a special folder? Can i send folder url or playlist url instead of direct path and name of the song?

If i can´t check for which playlist is active at the moment, i have to edit all of the mp3-tags of the songs to a special name, let´s say “openhab” and if “title” openhab is playing, i can look for this?

In LMS you can add a Playlist to the Favorites folder.

I don´t understand the playFavourites-channel description exactly.

Do i have to send a number to this item?

Paper UI doesn´t show me this channel for linking with an item. Do i have to create this on my own?

That channel was added to the binding relatively recently (it’s included starting in build 1208). So, you need to have a very recent version of the binding. And, if your server and player things were added before that, they won’t have the new channel (nor do they automatically pick it up). The normal solution is to delete and rediscover/readd the squeezebox server and player things.

The playFavorite channel is a String, so you send it a string. The link I shared above explains how to use it.

Currently i´m on #1207

Ok, will have to make another update.

Yes, the downside of a product under very active development where features are being added constantly… :slight_smile:

Can i send a folder url to my squeezebox, too? Or can i only send a urls to a file or playlist or radio-stream?

I want to play all songs in one folder and shuffle.

Is this working with just send folder url? Or do i have to make playlist to do this?

I think it works…

But can you tell me the difference between shuffle 1 and shuffle 2?

I have some different songs in one folder. How will the play shuffled? With 1 or 2?

As far as I know shuffle1 is to shuffle per album and shuffle2 is to shuffle through all songs.

See reply above: Play sound with squeezebox when entering bathroom
He already explained the shuffle modes thoroughly.

I know that, but i don´t play all songs and i don´t play album.

I play all songs from inside a folder. And i think, shuffle is not working as i want this to have.

It always starts with the first song song from folder.

So what should i use in my case “play different songs inside one folder”.

All songs or albums?

When i´m playing a song and stop this song, all mp3-tag information about album, genre and artist is removed from the sitemap.

Only the mp3-tag “title” is still visible.

Is this a bug?

Would be nice, if i could still see all information. Because when i send play/pause command, the song will start again, so the song is still saved somewhere in LMS.

EDIT:
Strange, now it seems, that the values will be kept in the items…

Any idea for some cheap switches/sensors to control the music inside the room without a smartphone?

I can buy a 8-channel-knx-sensor, but then this is more expensive then raspi3 and hifiberry amp2 together…