-
Notifications
You must be signed in to change notification settings - Fork 779
SONOS PLAYBAR support TV optical input #2410
Comments
@Marty56 To be investigated, but if I remember well this is implemented by Sonos by means of a special grouping of Sonos players, rather than a 'switch' that is toggled |
@Marty56 is it only the playbar you want to switch or also a sub and play:1's? Sent from my iPhone
|
I found information again: |
@kgoderis |
Please note that a general support for the optical line-in is requested by this issue, meaning the notication mechanism should work as well. The playbar has only 1 line-in that is the optical line-in ? Or 2 line-in, one digital + one analog ? |
@Marty56 : if I update the code iand provide it through a new branch in my fork, would you be able to compile and test it ? |
No, I cannot compile. I do not have the IDE installed nor do I know how to do this |
The instructions for the IDE setup could be found here: http://www.eclipse.org/smarthome/documentation/development/ide.html |
I am aware on these documentation but I since I am not using Java in my profession this amount of engagement is not justified for the time being. |
@Marty56 : I tried to implement this feature for you but I need you for testing. Please download and deploy the following jar (first uninstall the Sonos feature): http://lg.hc.free.fr/openHAB/org.eclipse.smarthome.binding.sonos-0.9.0-SNAPSHOT.jar
|
Great!
|
also I do not really understand your third point. |
I see nothing relative to Sonos in your logs !
|
My third point is the use of the channel in order to ask the playback of the line-in. |
I have to leave now and have to postpone further analysis until tomorrow. |
No problem, I will wait for the result of your commands.
I am curious to see if susbcription to HTControl succeeded. |
I have created a new OH2 instance on another computer, have added your binding in the addons folder, additional I have added a things, items and a small rule file. The computer is a Macbook Air running macOS Sierra |
also feature:list | grep onos esh-binding-sonos | 0.9.0.SNAPSHOT | | Uninstalled | openhab-aggregate-xml | |
@Marty56 : are you confortable with new jar deployment in OH 2 ?
I am using this jar in my production environment with no such problem. Anyone else to give it a try ? |
@Marty56 : First install OH 2 without the jar. When OH 2 is running well, stop it. Put my jar in addons subdirectory and restart OH. |
Did exactly this using standard package. Restarted same result. see log. |
Please run the requested commands. Here is what you should get:
and please confirm what OH version you are running. |
openhab> bundle:list -s | grep oogle the last "org.eclipse.smarthome.io.transport.upnp" seems to be missing |
@lolodomo I own some Sonos devices and also a Playbar, too. |
com.google.guava is active so I don't understand your resolv error. |
@maggu2810 : excellent, I will push my branch. |
The changes are now available in my branch "sonos" in https://github.com/lolodomo/smarthome.git |
Need to check again later, but ATM I don't see that channel (I used the PaperUI and also looked at the advanced channels). |
Note that the Sonos binding is not yet able to update channels immediately after a new item is linked. The REFRESH command is even not handled in handleCommand(). |
@maggu2810 : you have clearly identified a new problem with this binding: the channels are not immediately updated when a new item is linked to a channel. PS: I was not aware about this limit of the simple mode (I don't use it). |
In fact, the current connection status of the line-in is already stored and what we have to implement is the handling of the REFRESH command. |
@maggu2810 : I created the issue #2669 for your problem. |
Thanks @lolodomo, I will test your other points tomorrow...
|
Please note that there is no "content" in the channel names. I corrected my initial message. |
An additional check would be to check the value of the channel currenttransporturi when the line-in is playing: it should be x-sonos-htastream:RINCON_XXXXXXXXXXXX01400:spdif. |
linein does not seems to be changed while running (but set on first time)
Now I changed from line-in to a amazon prime stream.
Now I changed from a amazon prime stream to line-in.
|
That's normal, linein channel is not expected to be updated when you change source of playback. It is just expected to show whether the line-in is connected or not. I assume (to be checked) that it should be updated when you disconnect or reconnect your line-in. To be honest, I have not checked the same thing for the analog line-in of a Play:5 for example but I should. This channel is not set to ON when the line-in is being played but when the line-in is (physically) connected. Your logs confirm the expected URI when the optical line-in is playing. Another good point. I am now relatively confident that everything should work well. |
Ah okay, sorry. Didn't know the meaning of all that channels. 😉 I tried to play the doorbell.mp3 using the command line, but it does not succeed. |
To play a sound from the console, you need to define your Sonos as the default audio sink. I do it with Paper UI. |
Really? As i tested the Chromecast binding it has been enough to add the correct sink on the command line itself. |
Yes, you are probably right, I probably do a mismatch with the say command. |
@lolodomo It seems the smarthome audio play implementation of the Sonos binding needs further testing. That's just for your information, I don't think it is related to your Playbar changes, but I will test again and open an issue if your PR has been merged (otherwise stack traces with line numbers will be very confusion). Perhaps it would be also better to wait for your "adding things at runtime" fix, too. Thanks for all your work. |
Signed-off-by: Laurent Garnier <[email protected]>
I am using the say feature daily and it is working well with my Play:5 and my Connect:amp. |
@maggu2810 : I just tried playing the doorbell with my 2 Sonos and it works well without any error in the logs. |
@lolodomo Thanks for testing. After your recent PR has been merged, I will start further analysis and open a separate issue if there is one. |
Apparently my PR #2410 was unfortunately not enough because you are at least 3 to report the sound notification is still not working with the playbar when the line-in is played. |
Hi lolodomo, The binding could switch to the sound file but would not return to TV. Switching between radio stream and say is working perfectly. |
…2410) (eclipse-archived#2681) Signed-off-by: Laurent Garnier <[email protected]>
Meanwhile I am using the following workaround:
|
While testing the workaround I discovered that I can simplify the above procedure by Wohnzimmer_playqueue.sendCommand(ON) This is working if the sound is already cached and does not have to be translated into the respective mp3 file anymore. Also I noted that Wohnzimmer_linein.sendCommand(ON) does not work. |
@Marty56 Thanks for your report but I assume we need a volunteer that owns a Playbar and has the time to debug and fix / improve / implement that code. |
I will do that asap.
K
…Sent from my iPhone
On 9 Mar 2017, at 08:24, Markus Rathgeb ***@***.***> wrote:
I let someone owning a playbar finishing the work.
@Marty56 Thanks for your report but I assume we need a volunteer that owns a Playbar and has the time to debug and fix / improve / implement that code.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Great! |
Any update so far? |
asap = never ? |
asap = never. |
The sonos PLAYBAR supports a TV optical input which should be made usable by openhab probably similar like the "playlinein" command for PLAY5, CONNECT, CONNECTAMP.
Use Case: User watches TV and PLAYBAR is getting a notification. After the notification SONOS should be set back by OH to TV optical input reception.
The text was updated successfully, but these errors were encountered: