Skip to content
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 incorrect power state #17715

Merged
merged 1 commit into from
Nov 7, 2024

Conversation

NickWaterton
Copy link
Contributor

Bugfix for #17542

On some TV's, sending ON to turn the TV on, would result in the TV immediately turning OFF a few seconds later.

This was caused by the POJO which is used for decoding the json from the TV being changed to camelCase (don't know when this happened). Some of the json values are in UpperCamelCase though, so were not being decoded, specifically OS and PowerState.

This bug fix changes the POJO back to match the received json, and should resolve a number of similar issues.

Signed-off-by: Nick Waterton <n.waterton@outlook.com>
@lsiepel lsiepel added the bug An unexpected problem or unintended behavior of an add-on label Nov 7, 2024
Copy link
Contributor

@lsiepel lsiepel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

For future PR, best to seperate these POJO's from the handler.

@lsiepel lsiepel merged commit b7380b5 into openhab:main Nov 7, 2024
5 checks passed
@lsiepel lsiepel added this to the 4.3 milestone Nov 7, 2024
@lsiepel lsiepel linked an issue Nov 7, 2024 that may be closed by this pull request
@NickWaterton NickWaterton deleted the samsungtv_fix_power branch November 7, 2024 15:08
@jlaur jlaur changed the title [samsungtv] Fix for incorrect PowerState [samsungtv] Fix incorrect power state Nov 7, 2024
@openhab-bot
Copy link
Collaborator

This pull request has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/samsung-tv-binding-beta/130551/1

KaaNee pushed a commit to KaaNee/openhab-addons that referenced this pull request Nov 8, 2024
Signed-off-by: Nick Waterton <n.waterton@outlook.com>
matchews pushed a commit to matchews/openhab-addons that referenced this pull request Dec 16, 2024
Signed-off-by: Nick Waterton <n.waterton@outlook.com>
cipianpascu pushed a commit to cipianpascu/openhab-addons that referenced this pull request Jan 2, 2025
Signed-off-by: Nick Waterton <n.waterton@outlook.com>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior of an add-on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[SamsungTV] Wake up on lan Power ON/OFF
3 participants