-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[chromecast] STOP channel not accepting commands in 3.4.2 #14516
Comments
If there was an extra Did you consider that this commit, which actually modified the handling of the stop channel, might be in play as well? |
Thanks, @mhilbush! I thought that would be the case, but I'm not a programmer. I only saw #14191 listed in the 3.4.2 release notes, so I didn't think to look for anything else. Apologies, as I don't know my way around Github very well. |
No worries. I can see how you easily could've drawn that conclusion given the absence of that other commit from the release notes. |
That PR did fix an issue, but might have introduced this. Are you able to provide a debug log ? Had a quick ook at the code. What app are you trying to stop? Probably not MEDIA_PLAYER ? |
I'll provide a debug log later today. No need to rush on my part, as the 3.4.1 binding is working for me. I don't think I've run into the offline issue you fixed, but I suspect that's due to how I'm set up. I use a group item to manage the STOP channels for all of my Chromecasts. I'm guessing that when I trigger it, the group only passes the |
Is that the same as "Default Media Player"? I use that and Spotify regularly, but I can only be certain that it didn't work with Spotify. |
Oke in that case i allready know what is going on. That commit checks if the app is running before closing it. But the check is only for media_player, not for others. So if media_player is not running it exits. In your case spotify is running and it exits. I'll try to come up with a fix, not sure when, a bit busy now. |
Sounds good. I'll test it with the Default Media Player and generate a debug log to confirm. Thanks! |
I tested the 3.4.2 binding with Default Media Player, TuneIn Free, and Spotify. As expected, the STOP channel worked for the Default Media Player, but did not work for the other two apps. I set the binding to debug, but nothing shows up when I trigger STOP to Here's a brief log. I definitely sent an Let me know when you want to test, but like I said before, I'm in no hurry. I can use the 3.4.1 binding for now. |
We are at version 3.4.4, unfortunately the bug still exists. Anyone know a workaround? |
The workaround is to manually install the 3.4.1 binding. |
Can you please give me a rough description of how this works? |
|
Still have this on my todo list. If someone can ccome up with a fix, don;t wait for me. Otherwise i will fix this as soon as i have some hours of free time. |
Got it fixed. Test jar is here: https://1drv.ms/u/s!AnMcxmvEeupwjq1Zw3n0MTdrkMY4ZQ?e=lEs4Uz It should work as before (and a little better). When an ON command is send to the STOP channel, it stops the running app. |
Signed-off-by: lsiepel <leosiepel@gmail.com>
Cool. Does the test jar work in 3.4? If so, I'll test it this weekend. I haven't upgraded to OH4 yet. |
You could give it a try in 3.4, but i think it won't work as some xml files have changes name/structure. |
Gotcha. I won't be able to test for awhile then, as I probably won't get to 4 for a few weeks (maybe longer). Thanks! |
Fixes #14516 Signed-off-by: lsiepel <leosiepel@gmail.com>
Fixes openhab#14516 Signed-off-by: lsiepel <leosiepel@gmail.com>
This issue has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/chromecast-stop-command-does-not-work-anymore/150081/2 |
Fixes #14516 Signed-off-by: lsiepel <leosiepel@gmail.com>
Test JAR fixes the STOP command for me. OH 4.0.2, Nest Hub. |
Fixes openhab#14516 Signed-off-by: lsiepel <leosiepel@gmail.com> Signed-off-by: Jørgen Austvik <jaustvik@acm.org>
Expected Behavior
Sending an
ON
command to the STOP channel will stop casting to a Chromecast device.Current Behavior
After upgrading to 3.4.2, the STOP channel no longer accepts
ON
commands. After downgrading to the 3.4.1 binding, the STOP channel works again.Possible Solution
I suspect this is related to [chromecast] Fix for NPE when playerState is null #14191. I think there may be an extra } on line 177.
Steps to Reproduce (for Bugs)
ON
command to the device's STOP channelYour Environment
The text was updated successfully, but these errors were encountered: