Hi all:
I’m trying to set this up for my 2016 Samsung TV and the Thing is always offline, not sure what to do. I have another Homebridge connection to control the TV on the same server, would that be a problem with 2 connections from the same ip?
Below is the output from api:
{
"id": "uuid:e1e80173-b2cc-448d-88c8-bb233ee2d347",
"name": "[TV] Samsung 6 Series (40)",
"version": "2.1.0",
"device": {
"type": "Samsung SmartTV",
"duid": "uuid:e1e80173-b2cc-448d-88c8-xxxxxxxxxx",
"model": "16_JAZZL_UHD_BASIC",
"modelName": "UE40KU6075",
"description": "Samsung DTV RCR",
"networkType": "wired",
"ssid": "6a:xx:xx:xx:xx:xx",
"ip": "xxx.xx.1.2",
"firmwareVersion": "Unknown",
"name": "[TV] Samsung 6 Series (40)",
"id": "uuid:e1e80173-b2cc-448d-88c8-bb233ee2d347",
"udn": "uuid:e1e80173-b2cc-448d-88c8-bb233ee2d347",
"resolution": "3840x2160",
"countryCode": "DK",
"msfVersion": "2.1.0",
"smartHubAgreement": "true",
"VoiceSupport": "false",
"GamePadSupport": "true",
"wifiMac": "68:27:xx:xx:xx:xx",
"developerMode": "0",
"developerIP": "",
"OS": "Tizen"
},
"type": "Samsung SmartTV",
"uri": "http://xxx.xxx.xx.x:8001/api/v2/",
"remote": "1.0",
"isSupport": "{\"remote_available\":\"true\",\"remote_fourDirections\":\"true\",\"remote_touchPad\":\"true\",\"remote_voiceControl\":\"false\",\"DMP_available\":\"true\",\"DMP_DRM_PLAYREADY\":\"false\",\"DMP_DRM_WIDEVINE\":\"false\",\"EDEN_available\":\"true\"}"
}
I have tried port 8001, 8002 and 55000 without luck. When I first setup it up in Things file I forgot to turn on the TV, and afterwards I never see any pop up on TV to authorise the connection, does the binding try to re-authorize when the token was not retrieved from the previous try? I have tried:
- Enable/disable thing
- Rename the thing
However it just shows the device offline. My configuration is as below:
Thing samsungtv:tv:samsungtizentv [ hostName="xxx.xx.1.2", port=8002, macAddress="68:xx:xx:xx:xx:xx", protocol="SecureWebSocket", refreshInterval=1000, smartThingsSubscription=false ]
Currently I can control the TV from HomeBridge but would like to use OpenHAB in the future.
Any suggestion where to look? Thanks in advance!
Edit: the log I see when enable the Thing:
2025-02-03 21:49:12.582 [DEBUG] [tv.internal.handler.SamsungTvHandler] - xxx.xx.1.2: Create a Samsung TV Handler for thing 'samsungtv:tv:samsungtizentv'
2025-02-03 21:49:12.588 [DEBUG] [tv.internal.handler.SamsungTvHandler] - xxx.xx.1.2: Initializing Samsung TV handler for uid 'samsungtv:tv:samsungtizentv'
2025-02-03 21:49:12.604 [DEBUG] [tv.internal.handler.SamsungTvHandler] - xxx.xx.1.2: Updated artModeSupported: false PowerState: true(on) artMode2022: false
2025-02-03 21:49:12.605 [DEBUG] [tv.internal.handler.SamsungTvHandler] - xxx.xx.1.2: Configuration: SecureWebSocket, port: 8002, token: , MAC: 68:xx:xx:xx:xx:xx, subscription: false
2025-02-03 21:49:12.605 [DEBUG] [tv.internal.handler.SamsungTvHandler] - xxx.xx.1.2: SmartThings disabled
2025-02-03 21:49:12.605 [DEBUG] [tv.internal.handler.SamsungTvHandler] - xxx.xx.1.2: Check and create missing services
2025-02-03 21:49:12.605 [DEBUG] [tv.internal.handler.SamsungTvHandler] - xxx.xx.1.2: Received value 'artMode':'OFF' for thing 'samsungtv:tv:samsungtizentv'
2025-02-03 21:49:12.605 [DEBUG] [tv.internal.handler.SamsungTvHandler] - xxx.xx.1.2: Received value 'power':'OFF' for thing 'samsungtv:tv:samsungtizentv'
2025-02-03 21:49:12.606 [DEBUG] [tv.internal.handler.SamsungTvHandler] - xxx.xx.1.2: Received value 'artImage':'NULL' for thing 'samsungtv:tv:samsungtizentv'
2025-02-03 21:49:12.606 [DEBUG] [tv.internal.handler.SamsungTvHandler] - xxx.xx.1.2: Received value 'artLabel':'' for thing 'samsungtv:tv:samsungtizentv'
2025-02-03 21:49:12.606 [DEBUG] [tv.internal.handler.SamsungTvHandler] - xxx.xx.1.2: Received value 'sourceApp':'' for thing 'samsungtv:tv:samsungtizentv'
2025-02-03 21:49:12.607 [DEBUG] [tv.internal.handler.SamsungTvHandler] - xxx.xx.1.2: TV is OFFLINE
Edit: some more findings. I noticed even though the Thing is offline and most items don’t have value, but I can use Power switch to turn on the TV, it just that the state is not synced back so after some seconds the Power is off but the TV is indeed turned on. That shows OH can send command to TV however cannot receive state update from TV. I have checked my homebridge connection and it is port 8001 so I assume it’s WebSocket protocol.