Closed giuseppeg88 closed 3 years ago
This seems to be quite old model, not sure that is supported. Looking at the log web socket comunication fail both on port 8001 and 8002. Are you running HA inside a docker on different subnet? This configuration is not supported!!! As additional suggestion, did you check the configuration related to connection of external device? Must be set to "Ask only first time".
I don't know if it can be useful to understand the problem: until last month I was able to control the TV through another custom_components (I have to check which one I used), but this stopped working with the update to Home Assistant 0.113.
Regarding my configuration maybe I am in the scenario not supported by this project: I have Home Assistant Supervised installed on Debian GNU/Linux 10. Eventually, is there any possibility of making it compatible?
More info about my system: _ | _ |
---|---|
arch | x86_64 |
chassis | vm |
dev | false |
docker | true |
docker_version | 19.03.6 |
hassio | true |
host_os | Debian GNU/Linux 10 (buster) |
installation_type | Home Assistant Supervised |
os_name | Linux |
os_version | 4.19.0-6-amd64 |
python_version | 3.8.5 |
supervisor | 245 |
timezone | Europe/Rome |
version | 0.115.1 |
virtualenv | false |
Thanks so much!
Will help a lot have a reference of the component that was working. I see that you are running in a doscker, so probably this is the issue.
Closing this issue due to inactivity from long time.
Describe the bug
I can't configure my Smart TV Samsung UE40MU6470. Trying to add using the web interface I receive the message: "Unknown error occurred"
Environment details:
The IP address inserted in the form was correct (I checked it in the dashboard router). I repeated to add it with and without "SmartThings token".
Output of HA logs
I enabled the debug log in Home Assistant; here it is:
2020-09-19 18:55:26 DEBUG (MainThread) [custom_components.samsungtv_smart.api.smartthings] SmartThings available devices: {'items': [{'deviceId': 'xxxxx', 'name': "xxx's xxxx", 'label': "xxxx's xxxx", 'manufacturerName': 'SmartThings', 'presentationId': 'SmartThings-smartthings-Mobile_Presence', 'locationId': 'xxxxx', 'ownerId': 'xxxx', 'deviceTypeId': '8a9d4b1e3bfce38a013bfce42d360015', 'deviceTypeName': 'Mobile Presence', 'deviceNetworkType': 'UNKNOWN', 'components': [{'id': 'main', 'capabilities': [{'id': 'presenceSensor', 'version': 1}, {'id': 'sensor', 'version': 1}, {'id': 'occupancySensor', 'version': 1}], 'categories': [{'name': 'MobilePresence'}]}], 'dth': {'deviceTypeId': '8a9d4b1e3bfce38a013bfce42d360015', 'deviceTypeName': 'Mobile Presence', 'deviceNetworkType': 'UNKNOWN', 'completedSetup': False, 'networkSecurityLevel': 'UNKNOWN'}, 'type': 'DTH', 'restrictionTier': 0}, {'deviceId': 'xxxxx', 'name': '[TV] Samsung 6 Series (40)', 'label': '[TV] Samsung 6 Series (40)', 'presentationId': 'VD-STV_2017_K', 'locationId': 'xxxx', 'roomId': 'xxxx', 'components': [{'id': 'main', 'capabilities': [{'id': 'switch', 'version': 1}, {'id': 'audioVolume', 'version': 1}, {'id': 'audioMute', 'version': 1}, {'id': 'tvChannel', 'version': 1}, {'id': 'mediaInputSource', 'version': 1}, {'id': 'mediaPlayback', 'version': 1}, {'id': 'custom.picturemode', 'version': 1}, {'id': 'custom.error', 'version': 1}, {'id': 'custom.soundmode', 'version': 1}, {'id': 'custom.accessibility', 'version': 1}, {'id': 'custom.launchapp', 'version': 1}, {'id': 'custom.recording', 'version': 1}, {'id': 'custom.tvsearch', 'version': 1}, {'id': 'samsungtv.firmwareVersion', 'version': 1}, {'id': 'samsungtv.supportsPowerOnByOcf', 'version': 1}, {'id': 'refresh', 'version': 1}, {'id': 'execute', 'version': 1}, {'id': 'ocf', 'version': 1}, {'id': 'mediaTrackControl', 'version': 1}], 'categories': [{'name': 'Other'}]}], 'profile': {'id': 'xxxxx'}, 'type': 'OCF', 'restrictionTier': 0}], '_links': {}}
2020-09-19 18:55:26 INFO (MainThread) [custom_components.samsungtv_smart.api.smartthings] SmartThings discovered TV devices: {'xxxxxx': {'name': '[TV] Samsung 6 Series (40)', 'label': '[TV] Samsung 6 Series (40)'}}
2020-09-19 18:55:26 DEBUG (SyncWorker_19) [custom_components.samsungtv_smart] Try config with port: 8001
2020-09-19 18:55:26 DEBUG (SyncWorker_19) [custom_components.samsungtv_smart.api.samsungws] WS url ws://192.168.0.6:8001/api/v2/channels/samsung.remote.control?name=W0hvbWUgQXNzaXN0YW50XSBIb21l
2020-09-19 18:56:11 DEBUG (SyncWorker_19) [custom_components.samsungtv_smart] Failing config with port: 8001, error: timed out
2020-09-19 18:56:11 DEBUG (SyncWorker_19) [custom_components.samsungtv_smart] Try config with port: 8002
2020-09-19 18:56:11 DEBUG (SyncWorker_19) [custom_components.samsungtv_smart.api.samsungws] WS url wss://192.168.0.6:8002/api/v2/channels/samsung.remote.control?name=W0hvbWUgQXNzaXN0YW50XSBIb21l
2020-09-19 18:56:22 ERROR (MainThread) [homeassistant.components.ipp] Error fetching ipp data: Invalid response from API: Error occurred while communicating with IPP server.
2020-09-19 18:56:56 DEBUG (SyncWorker_19) [custom_components.samsungtv_smart] Failing config with port: 8002, error: The read operation timed out