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

OSErrors when using send media key #308

Open
Daniel-dev22 opened this issue Mar 9, 2024 · 11 comments
Open

OSErrors when using send media key #308

Daniel-dev22 opened this issue Mar 9, 2024 · 11 comments

Comments

@Daniel-dev22
Copy link

Describe the bug
A clear and concise description of what the bug is.

I noticed when trying to send media keys I'm getting OSErrors in the log. If I reload the integration sending keys works for awhile and eventually it stops and I get OSError.

It looks like Smartthings sees the TV as offline when it's not so the keys don't send which may be the cause of the OSError? Are the keys sent locally or to smart things API?

Expected behavior
If applicable, a clear and concise description of what you expected to happen.

Send media keys to always send when the TV is on.

Screenshots
If applicable, add screenshots to help explain your problem.

Environment details:

  • Environment (HASSIO, Raspbian, etc): Home assistant Docker container
  • Home Assistant version installed: 2024.4.0
  • Component version installed: 0.13.1
  • Last know working version:
  • TV model: Q90CA

Output of HA logs
Paste the relavant output of the HA log here.

2024-02-25 16:46:00.455 DEBUG (SyncWorker_14) [custom_components.samsungtv_smart.api.samsungws] Sending key KEY_ENTER
2024-02-25 16:46:00.455 DEBUG (SyncWorker_14) [custom_components.samsungtv_smart.media_player] Error in send_command() -> OSError
2024-02-25 16:46:00.602 DEBUG (MainThread) [custom_components.samsungtv_smart.api.smartthings] {'deviceId': 'mytvid', 'state': 'OFFLINE', 'lastUpdatedDate': '2024-01-16T00:29:41.710Z'}
2024-02-25 16:46:05.267 DEBUG (MainThread) [custom_components.samsungtv_smart.api.smartthings] {'deviceId': 'mytvid', 'state': 'OFFLINE', 'lastUpdatedDate': '2024-02-15T06:39:50.790Z'}
2024-02-25 16:46:05.468 DEBUG (MainThread) [custom_components.samsungtv_smart.api.upnp] 
2024-02-25 16:46:05.669 DEBUG (MainThread) [custom_components.samsungtv_smart.api.upnp] 

Additional context
Add any other context about the problem here.

Copy link

This issue is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale label Apr 24, 2024
Copy link

github-actions bot commented May 1, 2024

This issue was closed because it has been stalled for 7 days with no activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale May 1, 2024
@Daniel-dev22
Copy link
Author

Still an issue can we re-open it?

@Daniel-dev22
Copy link
Author

@ollo69 should I open a new issue because this is still an issue and I can't reopen this one.

@ollo69
Copy link
Owner

ollo69 commented Jul 12, 2024

Ok, I reopen.
Sorry but I'm very busy with my job on last months so my activity on this repository is very limited.
Please next time remember just to give an "up" on the issue when you receive stale notification to avoid auto-closure.

@ollo69 ollo69 reopened this Jul 12, 2024
@ollo69 ollo69 removed the Stale label Jul 12, 2024
@Daniel-dev22
Copy link
Author

Ok, I reopen.
Sorry but I'm very busy with my job on last months so my activity on this repository is very limited.
Please next time remember just to give an "up" on the issue when you receive stale notification to avoid auto-closure.

No worries thank you. I'll make sure to give a up when I get the stale notification.

Copy link

This issue is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale label Aug 27, 2024
@Daniel-dev22
Copy link
Author

Not stale

@github-actions github-actions bot removed the Stale label Aug 28, 2024
Copy link

This issue is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale label Oct 12, 2024
@Daniel-dev22
Copy link
Author

This issue is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 7 days.

Still an issue

@github-actions github-actions bot removed the Stale label Oct 13, 2024
@returnofthem
Copy link

I'm also having this issue, but running HAOS directly on a raspberry pi.

  • Environment (HASSIO, Raspbian, etc): HAOS on Raspberry Pi 4b
  • Home Assistant version installed: 2024.10.3
  • Component version installed: 0.13.5
  • Last know working version: unknown, only just trying this now
  • TV model: QE55S90C

Example debug log output

2024-10-20 23:32:02.944 DEBUG (SyncWorker_15) [custom_components.samsungtv_smart.api.samsungws] Sending key KEY_CHUP
2024-10-20 23:32:02.946 DEBUG (SyncWorker_15) [custom_components.samsungtv_smart.media_player] Error in send_command() -> OSError
2024-10-20 23:32:02.994 DEBUG (MainThread) [custom_components.samsungtv_smart.api.smartthings] {'deviceId': '46926259-97a8-3916-d744-067be2082a93', 'state': 'ONLINE', 'lastUpdatedDate': '2024-10-20T22:16:44.752Z'}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants