Hello Community
I am looking for a clever group (items) and/or sitemap configuration (openbab 2.2) to give my wife an “at a glance” overview if, how many/what sonos player(s) are running.
Favoured would be a solution similiar to the one I have for open doors/windows as follows:
[extract]groups.items:
// offene Türen /Fenster
Group:Contact:OR(OPEN, CLOSED) gKONTAKT_OPEN "Offene Türen/Fenster [%d]" <contact> (gH, gFENSTER_DOOR_H)
[Extract_1].sitemap:
sitemap ABC label="ABC"
{
Frame label="Kontrollbereich" {
Group item=gKONTAKT_OPEN label="Offene Türen/Fenster [%d]" icon="contact"
Group item=gTEMPERATUR_IST_BEHEIZT label="Ist-Temperatur Wohnen [%.1f °C]" icon="temperature"
Group item=gTEMPERATUR_SOLL label="Soll-Temperaturen [%.1f °C]" icon="temperature"
Group item=gLUFTFEUCHTIGKEIT label="Luftfeuchtigkeit" icon="humidity"
Group item=gVENTILSTELLUNG label="Aktive Heizkörper [%d]" icon="heating"
Group item=gSONOS_STATUS label="Stauts alle Player" icon="sonos_state"
}
At first glance I see that no (or how many) door/window are open. My problem is that the status channel of sonos is a string (representing the statuses; PLAYING, STOPPED or PAUSED_PLAYBACK) and not a switch or number and I am not experienced enough to deal with this.
For our Sonos system (we have 7 Players) I created the following “overview” groups:
[extract]sonos.items:
// Sonos Spezialgruppen
Group:Number:SUM Sonos_Coords "Koordinator" (gSONOS_H)
Group:Dimmer:AVG gSONOS_VOLUME "Lautstärke" <soundvolume> (gSONOS_H)
Group gSONOS_CONTROL "Sonos Controller" <sonos_control> (gSONOS_H)
Group gSONOS_CURRENT_TITLE "Aktuelle Titel" <sonos_title> (gSONOS_H)
Group gSONOS_STOP "Alle Player Stop" <sonos_stop> (gSONOS_H)
Group gSONOS_STATUS "Stauts alle Player" <sonos_state> (gSONOS_H)
In the sitemap I created a (group) switch that (should) turn all players off (to the status STOPPED): Switch item=gSONOS_STOP…
[extraxt_2].sitemap
Frame label="Musik" {
Group item=gSONOS_STATUS label="Stauts alle Player" icon="sonos_state"
Group item=gSONOS_CONTROL label="Alle Sonos Player" icon="sonos_control"
Group item=gSONOS_VOLUME label="Lautstärken Sonos" icon="soundvolume"
Group item=gSONOS_CURRENT_TITLE label="Aktuelle Titel" icon="sonos_title"
Switch item=gSONOS_STOP label="Alle Player Stop" mappings=[ON="Alle Stop"] icon="sonos_stop"
Group item=gSONOS_EG label="Sonos Geräte im EG"
Group item=gSONOS_UG label="Sonos Geräte im UG"
Group item=gSONOS_H
Does somebody have a good idea/solution?
Furthermore I am not sure whether I should change the autoupdate"false" value in the stauts channel:
[extract_2]sonos.items
Switch P5ESZ_Sonos_Stop "P5 Essen Stop" <sonos_stop> (gSONOS_ESZ, gSONOS_STOP) {channel="sonos:PLAY5:RINCON_[123]:stop", autoupdate="false"}
Thanks for hints in advance
Daniel