-
Notifications
You must be signed in to change notification settings - Fork 189
No Token received on UE43RU7400UXXU #117
Comments
I'm not sure if this requires a change in samsungctl |
I have the exact same issue with a UE60J6289. Output from {
"id": "uuid:bd816fe9-5a03-48f2-8cbd-c048378e5645",
"name": "[TV] UE60J6289",
"version": "2.0.25",
"device": {
"type": "Samsung SmartTV",
"duid": "uuid:bd816fe9-5a03-48f2-8cbd-c048378e5645",
"model": "15_HAWKM_2D",
"modelName": "UE60J6240",
"description": "Samsung DTV RCR",
"networkType": "wired",
"ssid": "",
"ip": "192.168.2.103",
"firmwareVersion": "Unknown",
"name": "[TV] UE60J6289",
"id": "uuid:bd816fe9-5a03-48f2-8cbd-c048378e5645",
"udn": "uuid:bd816fe9-5a03-48f2-8cbd-c048378e5645",
"resolution": "1920x1080",
"countryCode": "DE",
"msfVersion": "2.0.25",
"smartHubAgreement": "true",
"wifiMac": "5c:49:7d:21:14:27",
"developerMode": "0",
"developerIP": ""
},
"type": "Samsung SmartTV",
"uri": "http://192.168.2.103:8001/api/v2/"
} With my other Samsung TV (UE43KU6079) it works fine. {
"id": "uuid:b7dc3810-668b-4b29-990f-509aa954ae2b",
"name": "[TV] Samsung 6 Series (43)",
"version": "2.1.0",
"device": {
"type": "Samsung SmartTV",
"duid": "uuid:b7dc3810-668b-4b29-990f-509aa954ae2b",
"model": "16_JAZZL_UHD_BASIC",
"modelName": "UE43KU6079",
"description": "Samsung DTV RCR",
"networkType": "wired",
"ssid": "",
"ip": "192.168.2.108",
"firmwareVersion": "Unknown",
"name": "[TV] Samsung 6 Series (43)",
"id": "uuid:b7dc3810-668b-4b29-990f-509aa954ae2b",
"udn": "uuid:b7dc3810-668b-4b29-990f-509aa954ae2b",
"resolution": "3840x2160",
"countryCode": "DE",
"msfVersion": "2.1.0",
"smartHubAgreement": "true",
"VoiceSupport": "false",
"GamePadSupport": "true",
"wifiMac": "f8:3f:51:fd:ae:b2",
"developerMode": "0",
"developerIP": "",
"OS": "Tizen"
},
"type": "Samsung SmartTV",
"uri": "http://192.168.2.108: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\"}"
} |
did u get any fix ? |
@cyclops1982 johnjaiharjose unfortunately not yet. Is there a way to re-trigger the "Allow Control" handshake ? Its too sad that samsung dosnt document this API |
@mStirner - you can remove the provided permissions in one of the settings of the TV. Then you'll get that dialog again. What my problem is is that i basically want to start/stop the TV. I do power it down in between (so i'ts not evne on stand-by) and it seems that the token is just not accepted, or the commands are majorly different. So, after the first accepted, i want to be able to shut down and start the tv again (even if this is only into stand-by or not). I can't get that to work, which is my major use-case here. For me it feels like samsung is missing out here. There's no good app or anything to control the new TV's anymore, i even wonder how well it works with samsungs own home-automation, because i don't see how that can even work at the moment. |
The smarthub app works flawless on the new 7 series samsung led tv. I think it uses IFTTT. Full remote control is embedded in that app. I can provide any help if u guys need. |
With my UE60J6289 it just dosnt work. When i connect to the WebSocket endpoint, only the unprotected url works. (ws + port 8001) , with wss + 8002 nothing happens, no My other TV (UE43KU6079) works witerror: WebSocket was closed before the connection was establishedh protected & unprocted url (ws + 8001 & wss + 8002). Only my UE60J6289 bitches around EDIT: With
(Program terminated with CTRL+C after nothing happend) I just dont get it why there is in no way a possible connection to port 8002... |
ok so try WOL on ur UE60J6289 on different ports like 8080, 7678 try a port scan and check for http protocol. On my UN55RU7470 WOL works on 8080. |
WOL works normal on UDP port 7 or 9. Why should samsung implement this on a different port and what has this todo with http ? That are the result of a nmap scan (tcp):
To test the open ports i wrote a litle test script: const wol = require('wol');
// 5C:49:7D:21:14:27
[
7236,
7237,
7676,
7677,
7678,
8000,
8001,
8002,
8080,
8187,
9197,
9999,
15500
].forEach((port) => {
wol.wake('5C-49-7D-21-14-27', {
port: 7678
}, (err, res) => {
console.log("port: %d, err: %s, result: %j", port, err, res);
});
});
Unfortunately the TV dosn't start. Are there some settings like "quick start" or "instant on" that need to be enabled/disabled ? |
Hopefully this helps someone.. Turns out my TV doesn't even require a token. I have full control using port 8001, with no token provided. My model is UN40KU6270 |
I tried this many time but couldn't get it to work ([TV] Samsung 7 Series (55)) Then I found https://github.com/andrewsayre/pysmartthings that makes use of the SmartThings app with use of the API and Python. I got both of my TV's in the app and now i'm able the control them via python in domoticz. Maybe somebody find this usefull |
@PatrickStel correct link is https://github.com/andrewsayre/pysmartthings |
Hi,
I've been having trouble getting things to work. Now, i tried to debug things a bit with some JS and websockets.
From what i understand, we connect to:
"ws://192.168.1.22:8001/api/v2/channel/samsung.remote.control?name="+appname
or
"wss://192.168.1.22:8002/api/v2/channel/samsung.remote.control?name="+appname
and should then get some JSON back with a 'token' after you've approved it on the TV itself.
Now, i don't get a token back. All i get is:
{"data":{"clients":[{"attributes":{"name":"U2Ftc3VuZyBTbWFydFRWIGFwcDIzMjM="},"connectTime":1565448405613,"deviceName":"U2Ftc3VuZyBTbWFydFRWIGFwcDIzMjM=","id":"cff93d38-c95a-49ce-a7a2-26ab541cdd10","isHost":false}],"id":"cff93d38-c95a-49ce-a7a2-26ab541cdd10"},"event":"ms.channel.connect"}
So, i simply don't get a token. I've tried to perform the same request with a dummy token, and then i do get a token back int he attributes object, but i'm still unable to run commands:
send:{"method":"ms.remote.control","params":{"Cmd":"Click","DataOfCmd":"KEY_MUTE","Option":"false","TypeOfRemote":"SendRemoteKey"}} Received:{"data":{"message":"unrecognized method value : ms.remote.control"},"event":"ms.error"}
Now, i did all of this in some nodejs after looking at all the code, so i might easily do something wrong! Any advise would be appreciated.
The text was updated successfully, but these errors were encountered: