- Platform information:
- Hardware: PI 4, 4GB Ram
- OS: debian / buster
- Java Runtime Environment: openjdk version “11.0.11” 2021-04-20
version_ - openHAB version: 3.1.0
Hello,
I am working on the migration of my OH2 installation to OH3. I have some Squeezebox player running and integrated in openhab. 1:1 migration is finished. With the old style sitemap I can access the player.
With OH3 I will use a layout page for some player. But i have no idea, how to integrate the „playFavorite“ element in the page.
Can someone give me an example how to integrate a squeezebox „playFavorite“ element?
Best regards
Ralf
squeezebox.sitemap
sitemap squeezebox label="Squeeze"
{
Frame label="Boom" {
Default item=SPBoomControl
Slider item=SPBoomVolumen
Selection item=SPBoomPlayFavorite
}
}
squeezebox.items
Group gSQBox "SQ Music Server" <player> ["Equipment"]
Group gSQPlayerBoom "SQ Player Boom" <player> (gSQBox) ["Equipment"]
Switch SPBoomPlay "Boom Pause/Play" <player> (gSQPlayerBoom,gSqueezebox) ["Point"] {channel="squeezebox:squeezeboxplayer:badsrv:boom:playPause"}
Switch SPBoomStop "Boom Stop" <player> (gSQPlayerBoom,gSqueezebox) ["Point"] {channel="squeezebox:squeezeboxplayer:badsrv:boom:stop"}
Player SPBoomControl "Boom Control" <player> (gSQPlayerBoom,gSqueezebox) ["Point"] {channel="squeezebox:squeezeboxplayer:badsrv:boom:control"}
Dimmer SPBoomVolumen "Boom Volumen [%d %%]" <player> (gSQPlayerBoom,gSqueezebox) ["Point"] {channel="squeezebox:squeezeboxplayer:badsrv:boom:volume"}
String SPBoomSource "Boom Source [%s]" <player> (gSQPlayerBoom,gSqueezebox) ["Point"] {channel="squeezebox:squeezeboxplayer:badsrv:boom:source"}
String SPBoomTitle "Boom Title [%s]" <player> (gSQPlayerBoom,gSqueezebox) ["Point"] {channel="squeezebox:squeezeboxplayer:badsrv:boom:title"}
String SPBoomAlbum "Boom Album [%s]" <player> (gSQPlayerBoom,gSqueezebox) ["Point"] {channel="squeezebox:squeezeboxplayer:badsrv:boom:album"}
String SPBoomCoverArt "Boom CoverArt [%s]" <player> (gSQPlayerBoom,gSqueezebox) ["Point"] {channel="squeezebox:squeezeboxplayer:badsrv:boom:coverart"}
String SPBoomPlayFavorite "Boom Play Favorite [%s]" <player> (gSQPlayerBoom,gSqueezebox) ["Point"] {channel="squeezebox:squeezeboxplayer:badsrv:boom:playFavorite"}
Image SPBoomCoverArtData "Boom CoverArt" <player> (gSQPlayerBoom,gSqueezebox) ["Point"] {channel="squeezebox:squeezeboxplayer:badsrv:boom:coverartdata"}
String SPBoomFavoritesList "Boom Favorites list" <player> (gSQPlayerBoom,gSqueezebox) ["Point"] {channel="squeezebox:squeezeboxplayer:badsrv:boom:favoritesList"}
squeezebox.things
Bridge squeezebox:squeezeboxserver:badsrv "SB Server" @ "Bad" [ ipAddress="192.168.1.30", webport=9000, cliport=9090 ]
{
Thing squeezeboxplayer wohnzimmer "SB Wohnzimmer " @ "Wohnzimmer" [ mac="74:da:38:58:30:32" , notificationTimeout=30, notificationVolume=50 ] // Wohnzimmer
Thing squeezeboxplayer mobile "SB Mobile" @ "Mobile" [ mac="00:00:00:00:00:00" , notificationTimeout=30, notificationVolume=50 ] // Mobile - WLAN dongle
Thing squeezeboxplayer bad "SB Bad" @ "Bad" [ mac="b8:27:eb:73:c0:bf" , notificationTimeout=30, notificationVolume=50 ] // Bad
Thing squeezeboxplayer display "SB Display" @ "Kueche" [ mac="b8:27:eb:95:28:71" , notificationTimeout=30, notificationVolume=50 ] // Display
Thing squeezeboxplayer schlafzimmer "SB Boxen" @ "Schlafz" [ mac="ac:ab:13:64:58:57" , notificationTimeout=30, notificationVolume=50 ] // WHITE
Thing squeezeboxplayer boom "SB Boom" @ "Boom" [ mac="c0:28:8d:f0:f9:87" , notificationTimeout=30, notificationVolume=50 ] // BOOM
Thing squeezeboxplayer jbl "SB JBL" @ "JBL" [ mac="04:fe:a1:01:1c:df" , notificationTimeout=30, notificationVolume=50 ] // JBL
Thing squeezeboxplayer kueche "SB Technisat" @ "Kueche" [ mac="40:ef:4c:17:dc:dd" , notificationTimeout=30, notificationVolume=50 ] // Kueche
}
The squeeze Sitemap is working
A selection in the sitemap is fine
The layout: