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

Switching to HDMI1 doesn't change Media Title #224

Closed
PhantomOffKanagawa opened this issue Jan 30, 2023 · 19 comments
Closed

Switching to HDMI1 doesn't change Media Title #224

PhantomOffKanagawa opened this issue Jan 30, 2023 · 19 comments

Comments

@PhantomOffKanagawa
Copy link

Describe the bug
Switching the source to HDMI1 results in no change to "New media title" or "running app" in logs or in state

Expected behavior
Switching the source to HDMI1 results in entity state of media title (and associated states) switching to HDMI1

Environment details:

  • Environment (HASSIO, Raspbian, etc): Home Assistant OS on ODROID
  • Home Assistant version installed: 2023.1.7
  • Component version installed: v0.11.3
  • Last know working version:
  • TV model: 32" Samsung M7 Smart Monitor

Output of HA logs
First set is in Youtube app, second and third are after switching to HDMI 1

2023-01-29 23:12:53.917 DEBUG (SamsungControl) [custom_components.samsungtv_smart.api.samsungws] Received WS control ping b'\x00', sending pong
2023-01-29 23:12:56.236 DEBUG (SamsungArt) [custom_components.samsungtv_smart.api.samsungws] Received WS art ping b'\x00', sending pong
2023-01-29 23:12:57.598 DEBUG (SamsungRemote) [custom_components.samsungtv_smart.api.samsungws] Received WS remote ping b'\x00', sending pong
2023-01-29 23:12:59.918 DEBUG (SamsungControl) [custom_components.samsungtv_smart.api.samsungws] Received WS control ping b'\x00', sending pong
2023-01-29 23:13:02.239 DEBUG (SamsungArt) [custom_components.samsungtv_smart.api.samsungws] Received WS art ping b'\x00', sending pong
2023-01-29 23:13:03.226 DEBUG (MainThread) [custom_components.samsungtv_smart.api.smartthings] {'deviceId': 'xxxxxxxx-xxxxxxxxx-xxxxx-xxxxxxx', 'state': 'ONLINE', 'lastUpdatedDate': '2023-01-30T04:16:01.112Z'}
2023-01-29 23:13:03.600 DEBUG (SamsungRemote) [custom_components.samsungtv_smart.api.samsungws] Received WS remote ping b'\x00', sending pong
2023-01-29 23:13:04.857 DEBUG (MainThread) [custom_components.samsungtv_smart.api.smartthings] {'main': {'logType': {'value': '["errCode","dump"]'}, 'mndt': {'value': '2020-01-01'}, 'mnfv': {'value': 'M-KSU2SMWWC-2400.9'}, 'supportsPowerOnByOcf': {'value': 'true'}, 'mnhw': {'value': None}, 'data': {'value': None}, 'di': {'value': 'xxxxxxxx-xxxxxxxxx-xxxxx-xxxxxxx'}, 'supportedPlaybackCommands': {'value': '["play","pause","stop","fastForward","rewind"]'}, 'supportedInputSources': {'value': '["HDMI1"]'}, 'mnsl': {'value': None}, 'supportedPictureModesMap': {'value': '[{"id":"modeDynamic","name":"Dynamic"},{"id":"modeFilmmakerMode","name":"FILMMAKER MODE"},{"id":"modeMovie","name":"Movie"},{"id":"modeNatural","name":"Natural"},{"id":"modeStandard","name":"Standard"}]'}, 'dmv': {'value': 'res.1.1.0,sh.1.1.0'}, 'error': {'value': None}, 'switch': {'value': 'on'}, 'dumpType': {'value': 'id'}, 'vid': {'value': 'VD-SMONITOR-2020'}, 'endpoint': {'value': 'NONE'}, 'mnpv': {'value': '5.5'}, 'supportedPictureModes': {'value': '["Dynamic","FILMMAKER MODE","Movie","Natural","Standard"]'}, 'icv': {'value': 'core.1.1.0'}, 'supportedSoundModes': {'value': '["Adaptive Sound","Amplify","Standard"]'}, 'st': {'value': '2023-01-18T03:59:32Z'}, 'minVersion': {'value': '1.0'}, 'pictureMode': {'value': 'Natural'}, 'supportedSoundModesMap': {'value': '[{"id":"modeAdaptive","name":"Adaptive Sound"},{"id":"modeAmplify","name":"Amplify"},{"id":"modeStandard","name":"Standard"}]'}, 'disabledCapabilities': {'value': '["samsungvd.ambient","samsungvd.ambientContent","samsungvd.supportsFeatures"]'}, 'soundMode': {'value': 'Standard'}, 'setupId': {'value': '401'}, 'playbackStatus': {'value': None}, 'supportedTrackControlCommands': {'value': None}, 'mobileCamSupported': {'value': None}, 'mute': {'value': 'unmuted'}, 'protocolType': {'value': 'ble_ocf'}, 'supportedAmbientApps': {'value': '[]'}, 'n': {'value': 'Bedroom TV'}, 'mnId': {'value': '0AJK'}, 'mnmo': {'value': 'LS32AM702UNXZA'}, 'volume': {'value': '5', 'unit': '%'}, 'tvChannel': {'value': ''}, 'mnmn': {'value': 'Samsung Electronics'}, 'imeAdvSupported': {'value': None}, 'mnml': {'value': None}, 'supportedInputSourcesMap': {'value': '[{"id":"HDMI1","name":"HDMI 1"}]'}, 'tvChannelName': {'value': '9Ur5IzDKqV.TizenYouTube'}, 'mnos': {'value': 'Tizen'}, 'signinPermission': {'value': None}, 'pi': {'value': 'xxxxxxxx-xxxxxxxxx-xxxxx-xxxxxxx'}, 'inputSource': {'value': 'HDMI1'}}}
2023-01-29 23:13:04.891 DEBUG (MainThread) [custom_components.samsungtv_smart.media_player] New media title is: YouTube, old media title is: YouTube, running app is: YouTube
2023-01-29 23:13:05.919 DEBUG (SamsungControl) [custom_components.samsungtv_smart.api.samsungws] Received WS control ping b'\x00', sending pong
2023-01-29 23:13:08.239 DEBUG (SamsungArt) [custom_components.samsungtv_smart.api.samsungws] Received WS art ping b'\x00', sending pong
2023-01-29 23:13:09.604 DEBUG (SamsungRemote) [custom_components.samsungtv_smart.api.samsungws] Received WS remote ping b'\x00', sending pong
2023-01-29 23:13:11.921 DEBUG (SamsungControl) [custom_components.samsungtv_smart.api.samsungws] Received WS control ping b'\x00', sending pong
2023-01-29 23:13:14.242 DEBUG (SamsungArt) [custom_components.samsungtv_smart.api.samsungws] Received WS art ping b'\x00', sending pong
2023-01-29 23:13:15.607 DEBUG (SamsungRemote) [custom_components.samsungtv_smart.api.samsungws] Received WS remote ping b'\x00', sending pong
2023-01-29 23:13:17.923 DEBUG (SamsungControl) [custom_components.samsungtv_smart.api.samsungws] Received WS control ping b'\x00', sending pong
2023-01-29 23:13:18.186 DEBUG (MainThread) [custom_components.samsungtv_smart.api.smartthings] {'deviceId': 'xxxxxxxx-xxxxxxxxx-xxxxx-xxxxxxx', 'state': 'ONLINE', 'lastUpdatedDate': '2023-01-30T04:16:01.112Z'}
2023-01-29 23:13:19.570 DEBUG (MainThread) [custom_components.samsungtv_smart.api.smartthings] {'main': {'logType': {'value': '["errCode","dump"]'}, 'mndt': {'value': '2020-01-01'}, 'mnfv': {'value': 'M-KSU2SMWWC-2400.9'}, 'supportsPowerOnByOcf': {'value': 'true'}, 'mnhw': {'value': None}, 'data': {'value': None}, 'di': {'value': 'xxxxxxxx-xxxxxxxxx-xxxxx-xxxxxxx'}, 'supportedPlaybackCommands': {'value': '["play","pause","stop","fastForward","rewind"]'}, 'supportedInputSources': {'value': '["HDMI1"]'}, 'mnsl': {'value': None}, 'supportedPictureModesMap': {'value': '[{"id":"modeDynamic","name":"Dynamic"},{"id":"modeFilmmakerMode","name":"FILMMAKER MODE"},{"id":"modeMovie","name":"Movie"},{"id":"modeNatural","name":"Natural"},{"id":"modeStandard","name":"Standard"}]'}, 'dmv': {'value': 'res.1.1.0,sh.1.1.0'}, 'error': {'value': None}, 'switch': {'value': 'on'}, 'dumpType': {'value': 'id'}, 'vid': {'value': 'VD-SMONITOR-2020'}, 'endpoint': {'value': 'NONE'}, 'mnpv': {'value': '5.5'}, 'supportedPictureModes': {'value': '["Dynamic","FILMMAKER MODE","Movie","Natural","Standard"]'}, 'icv': {'value': 'core.1.1.0'}, 'supportedSoundModes': {'value': '["Adaptive Sound","Amplify","Standard"]'}, 'st': {'value': '2023-01-18T03:59:32Z'}, 'minVersion': {'value': '1.0'}, 'pictureMode': {'value': 'Standard'}, 'supportedSoundModesMap': {'value': '[{"id":"modeAdaptive","name":"Adaptive Sound"},{"id":"modeAmplify","name":"Amplify"},{"id":"modeStandard","name":"Standard"}]'}, 'disabledCapabilities': {'value': '["samsungvd.ambient","samsungvd.ambientContent","samsungvd.supportsFeatures"]'}, 'soundMode': {'value': 'Standard'}, 'setupId': {'value': '401'}, 'playbackStatus': {'value': None}, 'supportedTrackControlCommands': {'value': None}, 'mobileCamSupported': {'value': None}, 'mute': {'value': 'unmuted'}, 'protocolType': {'value': 'ble_ocf'}, 'supportedAmbientApps': {'value': '[]'}, 'n': {'value': 'Bedroom TV'}, 'mnId': {'value': '0AJK'}, 'mnmo': {'value': 'LS32AM702UNXZA'}, 'volume': {'value': '5', 'unit': '%'}, 'tvChannel': {'value': ''}, 'mnmn': {'value': 'Samsung Electronics'}, 'imeAdvSupported': {'value': None}, 'mnml': {'value': None}, 'supportedInputSourcesMap': {'value': '[{"id":"HDMI1","name":"HDMI 1"}]'}, 'tvChannelName': {'value': ''}, 'mnos': {'value': 'Tizen'}, 'signinPermission': {'value': None}, 'pi': {'value': 'xxxxxxxx-xxxxxxxxx-xxxxx-xxxxxxx'}, 'inputSource': {'value': 'HDMI1'}}}
2023-01-29 23:13:19.610 DEBUG (MainThread) [custom_components.samsungtv_smart.media_player] New media title is: YouTube, old media title is: YouTube, running app is: YouTube
2023-01-29 23:13:20.243 DEBUG (SamsungArt) [custom_components.samsungtv_smart.api.samsungws] Received WS art ping b'\x00', sending pong
2023-01-29 23:13:21.608 DEBUG (SamsungRemote) [custom_components.samsungtv_smart.api.samsungws] Received WS remote ping b'\x00', sending pong
2023-01-29 23:13:23.924 DEBUG (SamsungControl) [custom_components.samsungtv_smart.api.samsungws] Received WS control ping b'\x00', sending pong
2023-01-29 23:13:26.245 DEBUG (SamsungArt) [custom_components.samsungtv_smart.api.samsungws] Received WS art ping b'\x00', sending pong
2023-01-29 23:13:27.611 DEBUG (SamsungRemote) [custom_components.samsungtv_smart.api.samsungws] Received WS remote ping b'\x00', sending pong
2023-01-29 23:13:29.935 DEBUG (SamsungControl) [custom_components.samsungtv_smart.api.samsungws] Received WS control ping b'\x00', sending pong
2023-01-29 23:13:32.248 DEBUG (SamsungArt) [custom_components.samsungtv_smart.api.samsungws] Received WS art ping b'\x00', sending pong
2023-01-29 23:13:33.189 DEBUG (MainThread) [custom_components.samsungtv_smart.api.smartthings] {'deviceId': 'xxxxxxxx-xxxxxxxxx-xxxxx-xxxxxxx', 'state': 'ONLINE', 'lastUpdatedDate': '2023-01-30T04:16:01.112Z'}
2023-01-29 23:13:33.613 DEBUG (SamsungRemote) [custom_components.samsungtv_smart.api.samsungws] Received WS remote ping b'\x00', sending pong
2023-01-29 23:13:34.265 DEBUG (MainThread) [custom_components.samsungtv_smart.api.smartthings] {'main': {'logType': {'value': '["errCode","dump"]'}, 'mndt': {'value': '2020-01-01'}, 'mnfv': {'value': 'M-KSU2SMWWC-2400.9'}, 'supportsPowerOnByOcf': {'value': 'true'}, 'mnhw': {'value': None}, 'data': {'value': None}, 'di': {'value': 'xxxxxxxx-xxxxxxxxx-xxxxx-xxxxxxx'}, 'supportedPlaybackCommands': {'value': '["play","pause","stop","fastForward","rewind"]'}, 'supportedInputSources': {'value': '["HDMI1"]'}, 'mnsl': {'value': None}, 'supportedPictureModesMap': {'value': '[{"id":"modeDynamic","name":"Dynamic"},{"id":"modeFilmmakerMode","name":"FILMMAKER MODE"},{"id":"modeMovie","name":"Movie"},{"id":"modeNatural","name":"Natural"},{"id":"modeStandard","name":"Standard"}]'}, 'dmv': {'value': 'res.1.1.0,sh.1.1.0'}, 'error': {'value': None}, 'switch': {'value': 'on'}, 'dumpType': {'value': 'id'}, 'vid': {'value': 'VD-SMONITOR-2020'}, 'endpoint': {'value': 'NONE'}, 'mnpv': {'value': '5.5'}, 'supportedPictureModes': {'value': '["Dynamic","FILMMAKER MODE","Movie","Natural","Standard"]'}, 'icv': {'value': 'core.1.1.0'}, 'supportedSoundModes': {'value': '["Adaptive Sound","Amplify","Standard"]'}, 'st': {'value': '2023-01-18T03:59:32Z'}, 'minVersion': {'value': '1.0'}, 'pictureMode': {'value': 'Standard'}, 'supportedSoundModesMap': {'value': '[{"id":"modeAdaptive","name":"Adaptive Sound"},{"id":"modeAmplify","name":"Amplify"},{"id":"modeStandard","name":"Standard"}]'}, 'disabledCapabilities': {'value': '["samsungvd.ambient","samsungvd.ambientContent","samsungvd.supportsFeatures"]'}, 'soundMode': {'value': 'Standard'}, 'setupId': {'value': '401'}, 'playbackStatus': {'value': None}, 'supportedTrackControlCommands': {'value': None}, 'mobileCamSupported': {'value': None}, 'mute': {'value': 'unmuted'}, 'protocolType': {'value': 'ble_ocf'}, 'supportedAmbientApps': {'value': '[]'}, 'n': {'value': 'Bedroom TV'}, 'mnId': {'value': '0AJK'}, 'mnmo': {'value': 'LS32AM702UNXZA'}, 'volume': {'value': '5', 'unit': '%'}, 'tvChannel': {'value': ''}, 'mnmn': {'value': 'Samsung Electronics'}, 'imeAdvSupported': {'value': None}, 'mnml': {'value': None}, 'supportedInputSourcesMap': {'value': '[{"id":"HDMI1","name":"HDMI 1"}]'}, 'tvChannelName': {'value': ''}, 'mnos': {'value': 'Tizen'}, 'signinPermission': {'value': None}, 'pi': {'value': 'xxxxxxxx-xxxxxxxxx-xxxxx-xxxxxxx'}, 'inputSource': {'value': 'HDMI1'}}}
2023-01-29 23:13:34.292 DEBUG (MainThread) [custom_components.samsungtv_smart.media_player] New media title is: YouTube, old media title is: YouTube, running app is: YouTube
2023-01-29 23:13:35.925 DEBUG (SamsungControl) [custom_components.samsungtv_smart.api.samsungws] Received WS control ping b'\x00', sending pong
2023-01-29 23:13:38.250 DEBUG (SamsungArt) [custom_components.samsungtv_smart.api.samsungws] Received WS art ping b'\x00', sending pong

Additional context
Add any other context about the problem here.

@PhantomOffKanagawa
Copy link
Author

Ofc as soon as I give up on debuging this myself and finally give into a bug report it... kinda works. At some point without my noticing it switched to saying HDMI 1 for the the media title, the problem being I am currently in youtube, but figured I'd post my logs from when it changed over anyways in hopes that may help illuminate something I missed.

2023-01-29 23:14:21.036 DEBUG (SamsungControl) [custom_components.samsungtv_smart.api.samsungws] Thread SamsungControl terminated
2023-01-29 23:14:21.036 DEBUG (SamsungRemote) [custom_components.samsungtv_smart.api.samsungws] Thread SamsungRemote terminated
2023-01-29 23:14:23.996 DEBUG (SamsungRemote) [custom_components.samsungtv_smart.api.samsungws] Thread SamsungRemote started
2023-01-29 23:14:25.937 DEBUG (SamsungRemote) [custom_components.samsungtv_smart.api.samsungws] {'data': {'clients': [{'attributes': {'name': 'W0hvbWUgQXNzaXN0YW50XSBBcGFydG1lbnQ=', 'token': '10261063'}, 'connectTime': 1675055664382, 'deviceName': 'W0hvbWUgQXNzaXN0YW50XSBBcGFydG1lbnQ=', 'id': 'feade26c-a0c6-4666-8bba-89b0d895dd7', 'isHost': False}], 'id': 'feade26c-a0c6-4666-8bba-89b0d895dd7'}, 'event': 'ms.channel.connect'}
2023-01-29 23:14:25.938 DEBUG (SamsungRemote) [custom_components.samsungtv_smart.api.samsungws] Message remote: received connect
2023-01-29 23:14:25.938 DEBUG (SamsungRemote) [custom_components.samsungtv_smart.api.samsungws] Request app list
2023-01-29 23:14:25.940 DEBUG (SamsungControl) [custom_components.samsungtv_smart.api.samsungws] Thread SamsungControl started
2023-01-29 23:14:25.941 DEBUG (SamsungArt) [custom_components.samsungtv_smart.api.samsungws] Thread SamsungArt started
2023-01-29 23:14:25.942 DEBUG (MainThread) [custom_components.samsungtv_smart.media_player] status_changed_callback called
2023-01-29 23:14:26.080 DEBUG (MainThread) [custom_components.samsungtv_smart.api.smartthings] {'deviceId': 'xxxxxxx-xxxxxxxxx-xxxxxxxxxx-xxxxxxxxx', 'state': 'ONLINE', 'lastUpdatedDate': '2023-01-30T05:14:24.305Z'}
2023-01-29 23:14:26.192 DEBUG (MainThread) [custom_components.samsungtv_smart.api.smartthings] {'main': {'logType': {'value': '["errCode","dump"]'}, 'mndt': {'value': '2020-01-01'}, 'mnfv': {'value': 'M-KSU2SMWWC-2400.9'}, 'supportsPowerOnByOcf': {'value': 'true'}, 'mnhw': {'value': None}, 'data': {'value': None}, 'di': {'value': 'xxxxxxx-xxxxxxxxx-xxxxxxxxxx-xxxxxxxxx'}, 'supportedPlaybackCommands': {'value': '["play","pause","stop","fastForward","rewind"]'}, 'supportedInputSources': {'value': '["HDMI1"]'}, 'mnsl': {'value': None}, 'supportedPictureModesMap': {'value': '[{"id":"modeDynamic","name":"Dynamic"},{"id":"modeFilmmakerMode","name":"FILMMAKER MODE"},{"id":"modeMovie","name":"Movie"},{"id":"modeNatural","name":"Natural"},{"id":"modeStandard","name":"Standard"}]'}, 'dmv': {'value': 'res.1.1.0,sh.1.1.0'}, 'error': {'value': None}, 'switch': {'value': 'on'}, 'dumpType': {'value': 'id'}, 'vid': {'value': 'VD-SMONITOR-2020'}, 'endpoint': {'value': 'NONE'}, 'mnpv': {'value': '5.5'}, 'supportedPictureModes': {'value': '["Dynamic","FILMMAKER MODE","Movie","Natural","Standard"]'}, 'icv': {'value': 'core.1.1.0'}, 'supportedSoundModes': {'value': '["Adaptive Sound","Amplify","Standard"]'}, 'st': {'value': '2023-01-18T03:59:32Z'}, 'minVersion': {'value': '1.0'}, 'pictureMode': {'value': 'Standard'}, 'supportedSoundModesMap': {'value': '[{"id":"modeAdaptive","name":"Adaptive Sound"},{"id":"modeAmplify","name":"Amplify"},{"id":"modeStandard","name":"Standard"}]'}, 'disabledCapabilities': {'value': '["samsungvd.ambient","samsungvd.ambientContent","samsungvd.supportsFeatures"]'}, 'soundMode': {'value': 'Standard'}, 'setupId': {'value': '401'}, 'playbackStatus': {'value': None}, 'supportedTrackControlCommands': {'value': None}, 'mobileCamSupported': {'value': None}, 'mute': {'value': 'unmuted'}, 'protocolType': {'value': 'ble_ocf'}, 'supportedAmbientApps': {'value': '[]'}, 'n': {'value': 'H Bedroom TV'}, 'mnId': {'value': '0AJK'}, 'mnmo': {'value': 'LS32AM702UNXZA'}, 'volume': {'value': '5', 'unit': '%'}, 'tvChannel': {'value': ''}, 'mnmn': {'value': 'Samsung Electronics'}, 'imeAdvSupported': {'value': None}, 'mnml': {'value': None}, 'supportedInputSourcesMap': {'value': '[{"id":"HDMI1","name":"HDMI 1"}]'}, 'tvChannelName': {'value': ''}, 'mnos': {'value': 'Tizen'}, 'signinPermission': {'value': None}, 'pi': {'value': 'xxxxxxx-xxxxxxxxx-xxxxxxxxxx-xxxxxxxxx'}, 'inputSource': {'value': 'HDMI1'}}}
2023-01-29 23:14:26.222 DEBUG (MainThread) [custom_components.samsungtv_smart.media_player] New media title is: YouTube, old media title is: YouTube, running app is: YouTube
2023-01-29 23:14:27.653 DEBUG (SamsungControl) [custom_components.samsungtv_smart.api.samsungws] {'data': {'clients': [{'attributes': {'name': 'W0hvbWUgQXNzaXN0YW50XSBBcGFydG1lbnQ='}, 'connectTime': 1675055666292, 'deviceName': 'W0hvbWUgQXNzaXN0YW50XSBBcGFydG1lbnQ=', 'id': '441197f8-57c0-4cfe-b730-de3daa83bfd5', 'isHost': False}], 'id': '441197f8-57c0-4cfe-b730-de3daa83bfd5'}, 'event': 'ms.channel.connect'}
2023-01-29 23:14:27.653 DEBUG (SamsungControl) [custom_components.samsungtv_smart.api.samsungws] Message control: received connect
2023-01-29 23:14:27.653 DEBUG (SamsungControl) [custom_components.samsungtv_smart.api.samsungws] Get app status: AppID: 111299001912, AppType: 2
2023-01-29 23:14:27.655 DEBUG (SamsungControl) [custom_components.samsungtv_smart.api.samsungws] Get app status: AppID: LBUAQX1exg.Hulu, AppType: 2
2023-01-29 23:14:29.165 DEBUG (SamsungArt) [custom_components.samsungtv_smart.api.samsungws] {'data': {'clients': [{'attributes': {'name': 'W0hvbWUgQXNzaXN0YW50XSBBcGFydG1lbnQ='}, 'connectTime': 1675055667884, 'deviceName': 'W0hvbWUgQXNzaXN0YW50XSBBcGFydG1lbnQ=', 'id': 'cbafe2be-d030-42c7-85e2-c88e22e29f1b', 'isHost': False}], 'id': 'cbafe2be-d030-42c7-85e2-c88e22e29f1b'}, 'event': 'ms.channel.connect'}
2023-01-29 23:14:29.165 DEBUG (SamsungArt) [custom_components.samsungtv_smart.api.samsungws] Message art: received connect
2023-01-29 23:14:29.166 DEBUG (SamsungControl) [custom_components.samsungtv_smart.api.samsungws] {'id': '111299001912', 'result': {'id': '111299001912', 'name': 'YouTube', 'running': True, 'version': '2.1.498', 'visible': False}}
2023-01-29 23:14:29.166 DEBUG (SamsungControl) [custom_components.samsungtv_smart.api.samsungws] app stopped: 111299001912
2023-01-29 23:14:29.167 DEBUG (MainThread) [custom_components.samsungtv_smart.media_player] status_changed_callback called
2023-01-29 23:14:29.200 DEBUG (SamsungArt) [custom_components.samsungtv_smart.api.samsungws] Thread SamsungArt terminated
2023-01-29 23:14:29.200 DEBUG (SamsungControl) [custom_components.samsungtv_smart.api.samsungws] {'id': 'LBUAQX1exg.Hulu', 'result': {'id': 'LBUAQX1exg.Hulu', 'name': 'Hulu', 'running': False, 'version': '6.0.7', 'visible': False}}
2023-01-29 23:14:29.205 DEBUG (SamsungControl) [custom_components.samsungtv_smart.api.samsungws] Thread SamsungControl terminated
2023-01-29 23:14:29.206 DEBUG (SamsungRemote) [custom_components.samsungtv_smart.api.samsungws] Thread SamsungRemote terminated
2023-01-29 23:14:32.183 DEBUG (SamsungRemote) [custom_components.samsungtv_smart.api.samsungws] Thread SamsungRemote started
2023-01-29 23:14:33.188 DEBUG (MainThread) [custom_components.samsungtv_smart.api.smartthings] {'deviceId': 'xxxxxxx-xxxxxxxxx-xxxxxxxxxx-xxxxxxxxx', 'state': 'ONLINE', 'lastUpdatedDate': '2023-01-30T05:14:32.409Z'}
2023-01-29 23:14:34.176 DEBUG (SamsungRemote) [custom_components.samsungtv_smart.api.samsungws] {'data': {'clients': [{'attributes': {'name': 'W0hvbWUgQXNzaXN0YW50XSBBcGFydG1lbnQ=', 'token': '10261063'}, 'connectTime': 1675055672543, 'deviceName': 'W0hvbWUgQXNzaXN0YW50XSBBcGFydG1lbnQ=', 'id': 'e6a9222e-801a-402e-a126-5f11e8feeb53', 'isHost': False}], 'id': 'e6a9222e-801a-402e-a126-5f11e8feeb53'}, 'event': 'ms.channel.connect'}
2023-01-29 23:14:34.176 DEBUG (SamsungRemote) [custom_components.samsungtv_smart.api.samsungws] Message remote: received connect
2023-01-29 23:14:34.177 DEBUG (SamsungRemote) [custom_components.samsungtv_smart.api.samsungws] Request app list
2023-01-29 23:14:34.178 DEBUG (SamsungControl) [custom_components.samsungtv_smart.api.samsungws] Thread SamsungControl started
2023-01-29 23:14:34.180 DEBUG (SamsungArt) [custom_components.samsungtv_smart.api.samsungws] Thread SamsungArt started
2023-01-29 23:14:34.181 DEBUG (MainThread) [custom_components.samsungtv_smart.media_player] status_changed_callback called
2023-01-29 23:14:34.913 DEBUG (MainThread) [custom_components.samsungtv_smart.api.smartthings] {'main': {'logType': {'value': '["errCode","dump"]'}, 'mndt': {'value': '2020-01-01'}, 'mnfv': {'value': 'M-KSU2SMWWC-2400.9'}, 'supportsPowerOnByOcf': {'value': 'true'}, 'mnhw': {'value': None}, 'data': {'value': None}, 'di': {'value': 'xxxxxxx-xxxxxxxxx-xxxxxxxxxx-xxxxxxxxx'}, 'supportedPlaybackCommands': {'value': '["play","pause","stop","fastForward","rewind"]'}, 'supportedInputSources': {'value': '["HDMI1"]'}, 'mnsl': {'value': None}, 'supportedPictureModesMap': {'value': '[{"id":"modeDynamic","name":"Dynamic"},{"id":"modeFilmmakerMode","name":"FILMMAKER MODE"},{"id":"modeMovie","name":"Movie"},{"id":"modeNatural","name":"Natural"},{"id":"modeStandard","name":"Standard"}]'}, 'dmv': {'value': 'res.1.1.0,sh.1.1.0'}, 'error': {'value': None}, 'switch': {'value': 'on'}, 'dumpType': {'value': 'id'}, 'vid': {'value': 'VD-SMONITOR-2020'}, 'endpoint': {'value': 'NONE'}, 'mnpv': {'value': '5.5'}, 'supportedPictureModes': {'value': '["Dynamic","FILMMAKER MODE","Movie","Natural","Standard"]'}, 'icv': {'value': 'core.1.1.0'}, 'supportedSoundModes': {'value': '["Adaptive Sound","Amplify","Standard"]'}, 'st': {'value': '2023-01-18T03:59:32Z'}, 'minVersion': {'value': '1.0'}, 'pictureMode': {'value': 'Standard'}, 'supportedSoundModesMap': {'value': '[{"id":"modeAdaptive","name":"Adaptive Sound"},{"id":"modeAmplify","name":"Amplify"},{"id":"modeStandard","name":"Standard"}]'}, 'disabledCapabilities': {'value': '["samsungvd.ambient","samsungvd.ambientContent","samsungvd.supportsFeatures"]'}, 'soundMode': {'value': 'Standard'}, 'setupId': {'value': '401'}, 'playbackStatus': {'value': None}, 'supportedTrackControlCommands': {'value': None}, 'mobileCamSupported': {'value': None}, 'mute': {'value': 'unmuted'}, 'protocolType': {'value': 'ble_ocf'}, 'supportedAmbientApps': {'value': '[]'}, 'n': {'value': 'H Bedroom TV'}, 'mnId': {'value': '0AJK'}, 'mnmo': {'value': 'LS32AM702UNXZA'}, 'volume': {'value': '5', 'unit': '%'}, 'tvChannel': {'value': ''}, 'mnmn': {'value': 'Samsung Electronics'}, 'imeAdvSupported': {'value': None}, 'mnml': {'value': None}, 'supportedInputSourcesMap': {'value': '[{"id":"HDMI1","name":"HDMI 1"}]'}, 'tvChannelName': {'value': ''}, 'mnos': {'value': 'Tizen'}, 'signinPermission': {'value': None}, 'pi': {'value': 'xxxxxxx-xxxxxxxxx-xxxxxxxxxx-xxxxxxxxx'}, 'inputSource': {'value': 'HDMI1'}}}
2023-01-29 23:14:34.944 DEBUG (MainThread) [custom_components.samsungtv_smart.media_player] New media title is: HDMI 1, old media title is: YouTube, running app is: TV/HDMI
2023-01-29 23:14:34.946 DEBUG (MainThread) [custom_components.samsungtv_smart.logo] Matching media title for HDMI 1
2023-01-29 23:14:35.224 DEBUG (MainThread) [custom_components.samsungtv_smart.logo] No match found for mi 1: best candidate was rai 1 (0.666667) https://jaruba.github.io/channel-logos/export/transparent-white/pLsnP0qF90P4QAXTKGPgDsftKDl.png
2023-01-29 23:14:35.906 DEBUG (SamsungControl) [custom_components.samsungtv_smart.api.samsungws] {'data': {'clients': [{'attributes': {'name': 'W0hvbWUgQXNzaXN0YW50XSBBcGFydG1lbnQ='}, 'connectTime': 1675055674542, 'deviceName': 'W0hvbWUgQXNzaXN0YW50XSBBcGFydG1lbnQ=', 'id': '50e93c7-bed9-4621-ab45-8f4dfffd8869', 'isHost': False}], 'id': '50e93c7-bed9-4621-ab45-8f4dfffd8869'}, 'event': 'ms.channel.connect'}
2023-01-29 23:14:35.907 DEBUG (SamsungControl) [custom_components.samsungtv_smart.api.samsungws] Message control: received connect
2023-01-29 23:14:37.283 DEBUG (SamsungArt) [custom_components.samsungtv_smart.api.samsungws] {'data': {'clients': [{'attributes': {'name': 'W0hvbWUgQXNzaXN0YW50XSBBcGFydG1lbnQ='}, 'connectTime': 1675055676125, 'deviceName': 'W0hvbWUgQXNzaXN0YW50XSBBcGFydG1lbnQ=', 'id': 'adee4b6c-b873-4440-9cb8-10e9b86797a0', 'isHost': False}], 'id': 'adee4b6c-b873-4440-9cb8-10e9b86797a0'}, 'event': 'ms.channel.connect'}
2023-01-29 23:14:37.283 DEBUG (SamsungArt) [custom_components.samsungtv_smart.api.samsungws] Message art: received connect
2023-01-29 23:14:40.185 DEBUG (SamsungRemote) [custom_components.samsungtv_smart.api.samsungws] Received WS remote ping b'\x00', sending pong
2023-01-29 23:14:41.905 DEBUG (SamsungControl) [custom_components.samsungtv_smart.api.samsungws] Received WS control ping b'\x00', sending pong
2023-01-29 23:14:43.285 DEBUG (SamsungArt) [custom_components.samsungtv_smart.api.samsungws] Received WS art ping b'\x00', sending pong
2023-01-29 23:14:46.187 DEBUG (SamsungRemote) [custom_components.samsungtv_smart.api.samsungws] Received WS remote ping b'\x00', sending pong
2023-01-29 23:14:47.911 DEBUG (SamsungControl) [custom_components.samsungtv_smart.api.samsungws] Received WS control ping b'\x00', sending pong
2023-01-29 23:14:48.192 DEBUG (MainThread) [custom_components.samsungtv_smart.api.smartthings] {'deviceId': 'xxxxxxx-xxxxxxxxx-xxxxxxxxxx-xxxxxxxxx', 'state': 'ONLINE', 'lastUpdatedDate': '2023-01-30T05:14:32.409Z'}
2023-01-29 23:14:49.298 DEBUG (SamsungArt) [custom_components.samsungtv_smart.api.samsungws] Received WS art ping b'\x00', sending pong
2023-01-29 23:14:49.530 DEBUG (MainThread) [custom_components.samsungtv_smart.api.smartthings] {'main': {'logType': {'value': '["errCode","dump"]'}, 'mndt': {'value': '2020-01-01'}, 'mnfv': {'value': 'M-KSU2SMWWC-2400.9'}, 'supportsPowerOnByOcf': {'value': 'true'}, 'mnhw': {'value': None}, 'data': {'value': None}, 'di': {'value': 'xxxxxxx-xxxxxxxxx-xxxxxxxxxx-xxxxxxxxx'}, 'supportedPlaybackCommands': {'value': '["play","pause","stop","fastForward","rewind"]'}, 'supportedInputSources': {'value': '["HDMI1"]'}, 'mnsl': {'value': None}, 'supportedPictureModesMap': {'value': '[{"id":"modeDynamic","name":"Dynamic"},{"id":"modeFilmmakerMode","name":"FILMMAKER MODE"},{"id":"modeMovie","name":"Movie"},{"id":"modeNatural","name":"Natural"},{"id":"modeStandard","name":"Standard"}]'}, 'dmv': {'value': 'res.1.1.0,sh.1.1.0'}, 'error': {'value': None}, 'switch': {'value': 'on'}, 'dumpType': {'value': 'id'}, 'vid': {'value': 'VD-SMONITOR-2020'}, 'endpoint': {'value': 'NONE'}, 'mnpv': {'value': '5.5'}, 'supportedPictureModes': {'value': '["Dynamic","FILMMAKER MODE","Movie","Natural","Standard"]'}, 'icv': {'value': 'core.1.1.0'}, 'supportedSoundModes': {'value': '["Adaptive Sound","Amplify","Standard"]'}, 'st': {'value': '2023-01-18T03:59:32Z'}, 'minVersion': {'value': '1.0'}, 'pictureMode': {'value': 'Standard'}, 'supportedSoundModesMap': {'value': '[{"id":"modeAdaptive","name":"Adaptive Sound"},{"id":"modeAmplify","name":"Amplify"},{"id":"modeStandard","name":"Standard"}]'}, 'disabledCapabilities': {'value': '["samsungvd.ambient","samsungvd.ambientContent","samsungvd.supportsFeatures"]'}, 'soundMode': {'value': 'Standard'}, 'setupId': {'value': '401'}, 'playbackStatus': {'value': None}, 'supportedTrackControlCommands': {'value': None}, 'mobileCamSupported': {'value': None}, 'mute': {'value': 'unmuted'}, 'protocolType': {'value': 'ble_ocf'}, 'supportedAmbientApps': {'value': '[]'}, 'n': {'value': 'H Bedroom TV'}, 'mnId': {'value': '0AJK'}, 'mnmo': {'value': 'LS32AM702UNXZA'}, 'volume': {'value': '5', 'unit': '%'}, 'tvChannel': {'value': ''}, 'mnmn': {'value': 'Samsung Electronics'}, 'imeAdvSupported': {'value': None}, 'mnml': {'value': None}, 'supportedInputSourcesMap': {'value': '[{"id":"HDMI1","name":"HDMI 1"}]'}, 'tvChannelName': {'value': ''}, 'mnos': {'value': 'Tizen'}, 'signinPermission': {'value': None}, 'pi': {'value': 'xxxxxxx-xxxxxxxxx-xxxxxxxxxx-xxxxxxxxx'}, 'inputSource': {'value': 'HDMI1'}}}

@ollo69
Copy link
Owner

ollo69 commented Jan 30, 2023

This is same issue we are discussing here.
Issue is related to some information not coming properly from TV.
Are you using the same way to switch application in 2 logs provided? I mean, you switch application from integration or from TV remote control?

@ollo69
Copy link
Owner

ollo69 commented Jan 31, 2023

@PhantomOffKanagawa,

you don't really have any idea of what happen from 1st log to 2nd log? May be a TV reset, firmware update or what else? This is really strange situation.

@PhantomOffKanagawa
Copy link
Author

If I recall correctly, the only difference was that I may have been using HA for the first set and the remote for the second, but the responses were so inconsistent as I was trying things that I tried both of those before and just now to little consistent effect.
I didn't notice this was mentioned in the Youtube URL issue so I am happy to collapse this thread to that one (or however github does such as I'm not overly familiar with Github)

I did try the new beta update and it seems to be working better for app_id detection and consistently updates to the right smart app or physcial source. It doesn't seem to be updating this to the media title however so this change only shows in the developer tools states section.
Thanks for your hard work.

@ollo69
Copy link
Owner

ollo69 commented Jan 31, 2023

I think that I found the problem and also understand strange behaviors in 2 logs. Because my TV returns spontaneously list of running apps on every changes, in code review done in v0.10.0 I forgot to call a specific method to query app status on interval. Unfortunately not all model works in the same ways. Please try last release and let me know if it works or still there are issue.

@PhantomOffKanagawa
Copy link
Author

I updated to the latest release and after some initial weirdness with the source on the tv not changing in accordance with change on home assistant everything looks like it is working perfectly as intended. Unless such is taboo, I am going to leave the issue open for another 12-24 hours just to make sure that the initial issues I saw with source changes were a one time thing and then hopefully I'll close it completely resolved.

Sorry for the slow response, I've been rather busy but eager to try the updates and thank you so much for your incredibly fast responses.

@PhantomOffKanagawa
Copy link
Author

Been spending some time trying a whole bunch of things while checking states (I can work to add logs but that takes much longer and doesn't seem to add much more but I don't know) and saw some weird interactions

  • Choosing YouTube app with remote or HA (in application list): as expected opens YouTube and updates source, appID, and media_title (Expected)
  • Choosing HDMI1 with HA (auto generated sources): opens hdmi1 and updates source, appID, and media_title but occasionally gets stuck on a screen with the hdmi icon for 10 seconds to seemingly stuck and requires switching out and back to get to actual hdmi1 content (Not Expected, possibly not actionable by code)
  • Choosing KEY_HDMI with HA (written in source list): opens hdmi1 and updates source, appID, and sets media title to "TV/HDMI" (Not Expected? Everything seems to work but the title cannot be manually changed in sources list with keyHDMI but that seems the only key code that works)
  • Choosing Hulu app with remote or HA (in application list): switches to Hulu app and updates appID to LBUAQX1exg.Hulu but source and media_title update to HDMI 1 (Not Expected)

I'm not sure why Hulu doesn't work. I only have Hulu, and YouTube in my application list so I used the remote to test them but I tested the YouTube, Dropout, Netflix, Prime Video, Disney+, Apple TV, HBO Max, and Peacock smart apps and all of them updated the appID and the media_title when Hulu only updated the appID

@ollo69
Copy link
Owner

ollo69 commented Feb 2, 2023

Please share your application list

@PhantomOffKanagawa
Copy link
Author

YouTube: 111299001912/9Ur5IzDKqV.TizenYouTube
Hulu: LBUAQX1exg.Hulu

@ollo69
Copy link
Owner

ollo69 commented Feb 3, 2023

Problem is that you are not providing numeric app ID for Hulu app, Right value could be (not sure) 3201601007625

@PhantomOffKanagawa
Copy link
Author

Ahhh, thank you I didn't realize it interacted that way. Is there a way to find those programmatically?

@PhantomOffKanagawa
Copy link
Author

Ahhh, thank you I didn't realize it interacted that way. Is there a way to find those programmatically?

Nevermind, found that info at the bottom of https://github.com/tavicu/homebridge-samsung-tizen/wiki/Applications

@PhantomOffKanagawa
Copy link
Author

Last question (almost certainly): Is there a way to rename the TV/HDMI source when setting HDMI1 with buttons instead of ST_HDMI1 since that is giving me an error?

@ollo69
Copy link
Owner

ollo69 commented Feb 3, 2023

I do not understand the question

@PhantomOffKanagawa
Copy link
Author

20230203_124804

Currently I have an issue where if I don't specify the source list or use "ANY CHOSEN NAME: ST_HDMI1" and select HDMI1's source it changes and has the right media_title but gets stuck on a screen of just the icon for the source (attatched) and can get stuck there until the source is changed and no remote button seems to fix it

Alternatively my current fix is using "ST_HDMI1+ST_HDMI1+KEY_EXIT" for the keys but this makes the media_title "TV/HDMI" which is a separate source from the labeled one unless I make the source list "TV/HDMI: ST_HDMI11+KEY_EXIT"

I would like to be able to change the name of TV/HDMI without running into this icon issue

@ollo69
Copy link
Owner

ollo69 commented Feb 5, 2023

This is really strange, I don't know exactly how to manage this. Did you try, for instance, to change the HDMI port on TV? The command to select HDMI go through SmartThings, I do not understand why you have to call it 2 times followed by exit,

@PhantomOffKanagawa
Copy link
Author

In testing the stuck icon just happened while selecting HDMI with the remote not through HA so I think it is definitely an issue on Samsung's side.

  • I tried switching HDMI ports and the behavior is all the same.
  • KEY_HDMI works but has the same issue with defaulting the media_title to "TV/HDMI" and I don't know how behavior would work with multiple HDMI inputs.
  • Using just ST_HDMI# has the correct media_title but the frozen icon often appears.
  • Using anything more than just "ST_HDMI#" causes the media_title to default back to "TV/HDMI"
  • "ST_HDMI1+ST_HDMI1+KEY_EXIT" therefore breaks the media_title but doesn't run into the frozen icon issue

Unfortunately it looks like as of now my model has an intermittent issue with freezing when returning to hdmi inputs. On the side of this integration I was hoping there would be a way to map the correct current source to the correct chosen name in the Source List.
TL;DR for my source change to work I have to use "ST_HDMI1+ST_HDMI1+KEY_EXIT" but anything more than just "ST_HDMI" causes the media_title to default to "TV/HDMI" when HDMI1 is the current input. Is there a way to map HDMI1 as the current input to the renamed source in source list if the key commands are more than 1 long

@ollo69
Copy link
Owner

ollo69 commented Feb 5, 2023

Source name is based on information provided by SmartThings, TV does not return directly this information. So whatever method you use to select the source, the only way to provide a source name <> from "TV/HDMI" is to define it in the source list associated with the key ST_HDMI# and that this information is properly reported by SmartThings.
It's really strange this bug. Did you check for a firmware update that could solve the issue? You could also try to ask in the Samsung support forum, maybe they could give a suggestion.

@PhantomOffKanagawa
Copy link
Author

No firmware update sadly so I'll probably turn to Samsung forums. Thanks for the rest of the help tho, luckily it's just a small thing now.

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

2 participants