-
-
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
[samsungtv] Fix reconnect after first connection to TV is lost #11487
Merged
lolodomo
merged 2 commits into
openhab:main
from
jlaur:7055-samsungtv-recover-from-tv-offline
Nov 15, 2021
Merged
[samsungtv] Fix reconnect after first connection to TV is lost #11487
lolodomo
merged 2 commits into
openhab:main
from
jlaur:7055-samsungtv-recover-from-tv-offline
Nov 15, 2021
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Fixes openhab#7055 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
…es per second. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
martinvw
approved these changes
Nov 4, 2021
I just received confirmation that this PR also fixes #7406. |
lolodomo
approved these changes
Nov 14, 2021
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@paulianttila ; any comment? |
kaikreuzer
added
the
bug
An unexpected problem or unintended behavior of an add-on
label
Nov 15, 2021
Let's go for a merge. |
NickWaterton
pushed a commit
to NickWaterton/openhab-addons
that referenced
this pull request
Dec 30, 2021
…ab#11487) * Fix reconnect after first connection to TV is lost. Fixes openhab#7055 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Reduced log level to TRACE for logging of entered methods several times per second. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> Signed-off-by: Nick Waterton <n.waterton@outlook.com>
mischmidt83
pushed a commit
to mischmidt83/openhab-addons
that referenced
this pull request
Jan 9, 2022
…ab#11487) * Fix reconnect after first connection to TV is lost. Fixes openhab#7055 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Reduced log level to TRACE for logging of entered methods several times per second. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> Signed-off-by: Michael Schmidt <mi.schmidt.83@gmail.com>
nemerdaud
pushed a commit
to nemerdaud/openhab-addons
that referenced
this pull request
Jan 28, 2022
…ab#11487) * Fix reconnect after first connection to TV is lost. Fixes openhab#7055 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Reduced log level to TRACE for logging of entered methods several times per second. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
marcfischerboschio
pushed a commit
to bosch-io/openhab-addons
that referenced
this pull request
May 5, 2022
…ab#11487) * Fix reconnect after first connection to TV is lost. Fixes openhab#7055 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Reduced log level to TRACE for logging of entered methods several times per second. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
andan67
pushed a commit
to andan67/openhab-addons
that referenced
this pull request
Nov 6, 2022
…ab#11487) * Fix reconnect after first connection to TV is lost. Fixes openhab#7055 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Reduced log level to TRACE for logging of entered methods several times per second. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #7055
Fixes #7406
Signed-off-by: Jacob Laursen jacob-github@vindvejr.dk
Initially the binding will start RemoteControllerService in non-UPnP mode by calling createNonUpnpService.
When device is added, some additional services are started and RemoteControllerService is replaced by new UPnP instance from createUpnpService.
When device is removed, the binding would stop all services, including the RemoteControllerService - without restarting the non-UPnP service. This made it unable to detect when device would be added again.
This has been fixed by calling checkCreateManualConnection after stopping all services in order to go back to original state listening for devices being added - like after initialize(). See comment in linked issue for additional information.
Tested with Samsung UE55D8005 (legacy protocol).
Additionally reduced log level from DEBUG to TRACE for some specific logging of methods that would be entered once per second: