This is really cool! Thank you very much for sharing this awesome piece of code. Played a bit with it and got it up and running. The only thing I was wondering, would it be possible to combine the Pause icon and the Play icon into one? So when it plays it shows a Pause or Stop icon and when it’s stopped it shows a Play icon to resume?
Thank you again for this wonderful template. Really appreciate it.
I’m trying to get this widget to work. I think I’ve got all the controlls to work, but I cant seem to get the widget to show the favorites images. Where shall I put them? I’ve tested to put them in every folder under conf and in the conf folder, but nothing seems to work. Hope someone can help me with this. Is there anything else I have to do to get it to work?
This is exactly what I’m looking for. A way to select stations but that is the part I can’t get to work.
How do I configure radio stations to work? I added one image for testing.
Thank you for sharing this. I got it set up and working I just need to decide what stations I want to use. One question with your rules what does this line do and mean? “var Number v_volume = dim_sonos_bad_volume.state as DecimalType”
Hello,
I’m just starting with OH2 2.3 and found this control. It took me a while to get it to work - mainly the sonos.items file was mostly not needed, as I used OH2 auto discovery and updated the references to the items from PaperUI.
I even tried to a rule to initials, but that did not help either
sonos.rules snippet
rule "Sonos System Started"
when
System started
then
str_sonos_radio_radio2.postUpdate("BBC Radio 2")
str_sonos_radio_radio4.postUpdate("BBC Radio 4 93.5 (National News)")
end
Any idea how I go about creating an item to store the station name?
Next step is to get an item with the Sonos favourite name that I can retrieve in to the HABPanel Widget, later on, I’ll try to have an input to add new favourites.
Firstly, I believe that the radio station you want openHAB to access has to be set-up within ‘My Radio Stations’ in the SONOS app/desktop app/etc.
Then the reference to the radio station in openHAB has to exactly match how it’s worded in ‘My Radio Stations’. (I have ‘BBC Radio 2’ set-up myself, worded as exactly that)
in my rules (triggered when a scene is set; not required for HABpanel use) I have:-
Sonos_2_playradio.sendCommand("BBC Radio 2")
Sonos_2_Volume.sendCommand(10)
Sonos_2_Controller.sendCommand("PLAY")
thank you very much for sharing this as i really like the approach on using Sonos via Habpanel.
I’ve invested a couple of hours now but i just cannot get it to run completely. I seem still to be much too noob…sorry for that.
for now i have been entering following configuration.
HapPanel Code:
I did not enter any rules as i do not have any groups enabled yet - just running with a playbase at the moment. so i’ve shortened the code…
This is how my panel looks like at the moment. I’ve also copied the png’s in, but it still does not work at all. i’ve tried it in the sitemap where i could get it to work switching on and off - but thats all.
i cannot do anything - i am really clueless.
i would be really thankfut if somebody could look over and help me get out of stucking here…thank you so much!
Hello and thanks a lot for your work. I have a small question who is a bit “offtopic”. As I can supose because of the items definition you also use the sonos for annauncements: Switch sw_sonos_kitchen_doorbell “Rule Trigger Kitchen Doorbell” (grSonos)
How can I do a Announcement like “Windows toilet still open”
I allready have a roule who send a push-message.
sorry i was away quite a long time, and did not see your responses here earlier.
i am a bit technical - so if there is anything to help i am happy of doing so.
great to see that there is support in 2.5 already. i will try out the binding as i do not want to upgrade my production system to that early snapshot at the moment.
will let you know how my experience was. thank you so much for your efforts!
Does anyone know how to build Sonos favorites widget? I’m trying to build a widget that displays everything in the favorite channel. I know there’s a way to use Habpanel’s selection widget but I’d like to create my own widget. If I use ng-repeat I’m able to display favorites list but can’t seem to find a way to parse the information correctly:
Thanks for the inspiration - I used your code and applied some improvements.
Since this is my first contribution to this platform I created a seperate post to share those improvements back to the community (to not mess up this thread):