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:
- Environment: HASSIO
- Home Assistant version installed: 0.115.1
- Component version installed: v0.3.13
- Last know working version: with another custom_components (I don't remember which one)
- TV model: UE40MU6470
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