Guten Abend,
nachdem ich jetzt stundenlang (teils) erfolglos das Wiki und diverse Beiträge durchforstet hab,
möchte ich hier mein Problem schildern - in der Hoffnung jemand kann mir helfen.
Ich habe einen Samsung UE50H6270..
Das Token und die Session-ID konnte ich mit dem "neuen" Skript erstellen. (Die PIN Eingabe am TV kam, TextFile erstellt)
Ich verwende die 70_STV aus diesem Beitrag:
https://forum.fhem.de/index.php/topic,82890.msg750370.html#msg750370Der Fernseher hat im state reading "on" bzw. "absent" - Port ist mit 8000 konfiguriert.
Der Log mit verbose=5 sieht folgendermaßen aus:
2019.01.25 21:20:38 5: [STV] SamsungTV first websocket response: HTTP/1.1 101 Switching Protocols
Upgrade: websocket
Connection: Upgrade
Sec-WebSocket-Accept: s3pPLMBiTxaQ9kYGzzhZRbK+xOo=
2019.01.25 21:20:38 5: [STV] SamsungTV data of second websocket response: {�1::
2019.01.25 21:20:38 4: [STV] SamsungTV sending KEY_POWER
2019.01.25 21:20:38 5: [STV] SamsungTV send payload: 5::/com.samsung.companion:{"name":"callCommon","args":[{"Session_Id":1,"body":"[54,159,196,217,23,243,50,95,200,138,42,54,50,47,21,18,92,105,43,88,27,191,48,120,4,61,104,223,31,185,77,249,232,130,19,220,79,110,5,151,48,156,222,82,172,161,23,122,204,52,165,177,127,205,153,50,250,127,179,10,163,96,230,231,80,210,155,196,40,63,54,249,190,28,183,69,70,104,179,37,9,149,8,2,192,246,214,63,220,150,129,49,3,200,208,98,106,224,169,71,88,88,244,142,15,161,56,82,102,161,230,17,119,2,168,241,32,224,254,183,216,202,37,221,138,76,117,87,233,66,144,121,26,210,161,188,80,20,21,247,176,21,118,123,155,23,19,73,114,48,52,36,111,130,26,144,85,241,78,23,132,68,215,251,231,77,203,76,164,32,165,14,0,192,217,29]"}]}
2019.01.25 21:20:55 4: [STV] SamsungTV online with 192.168.178.24:8000 - HTTP-Response: 200
2019.01.25 21:21:55 4: [STV] SamsungTV online with 192.168.178.24:8000 - HTTP-Response: 200
2019.01.25 21:22:55 4: [STV] SamsungTV online with 192.168.178.24:8000 - HTTP-Response: 200
2019.01.25 21:23:55 4: [STV] SamsungTV online with 192.168.178.24:8000 - HTTP-Response: 200
2019.01.25 21:24:55 4: [STV] SamsungTV online with 192.168.178.24:8000 - HTTP-Response: 200
2019.01.25 21:25:55 4: [STV] SamsungTV online with 192.168.178.24:8000 - HTTP-Response: 200
2019.01.25 21:26:55 4: [STV] SamsungTV online with 192.168.178.24:8000 - HTTP-Response: 200
2019.01.25 21:27:17 5: [STV] SamsungTV command 0 parameter
2019.01.25 21:27:17 5: session_key: bce889f8246aab4cb587de0bd3f3fda4
2019.01.25 21:27:17 5: session_id: 1
2019.01.25 21:27:17 5: [STV] SamsungTV: generate command for key 'KEY_0'
2019.01.25 21:27:17 5: [STV] SamsungTV: command: '5::/com.samsung.companion:{"name":"callCommon","args":[{"Session_Id":1,"body":"[54,159,196,217,23,243,50,95,200,138,42,54,50,47,21,18,92,105,43,88,27,191,48,120,4,61,104,223,31,185,77,249,232,130,19,220,79,110,5,151,48,156,222,82,172,161,23,122,204,52,165,177,127,205,153,50,250,127,179,10,163,96,230,231,80,210,155,196,40,63,54,249,190,28,183,69,70,104,179,37,9,149,8,2,192,246,214,63,220,150,129,49,3,200,208,98,113,156,130,35,89,216,212,197,169,228,125,172,253,215,251,185,33,87,217,106,127,213,175,150,126,212,56,169,49,61,100,125,71,100,64,70,82,108,47,201,118,142,107,102,192,0,251,187,156,27,235,237,234,151,125,15,30,217,5,32,243,68,172,69,233,97,3,4,72,241,25,74,196,3,175,171,157,186,104,208]"}]}'
2019.01.25 21:27:17 4: [STV] SamsungTV: websocket path /socket.io/1/websocket/XGQuvpXk4SNg4xs0AO1V
2019.01.25 21:27:17 4: [STV] HTTP socket-connection to SamsungTV. Reply: 0
2019.01.25 21:27:17 4: [STV] HTTP socket-connection to SamsungTV successful.
2019.01.25 21:27:17 5: [STV] SamsungTV send to TV: GET /socket.io/1/websocket/XGQuvpXk4SNg4xs0AO1V HTTP/1.1
Upgrade: websocket
Connection: Upgrade
Host: 192.168.178.24:8000
Sec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==
Sec-WebSocket-Version: 13
2019.01.25 21:27:17 5: [STV] SamsungTV first websocket response: HTTP/1.1 101 Switching Protocols
Upgrade: websocket
Connection: Upgrade
Sec-WebSocket-Accept: s3pPLMBiTxaQ9kYGzzhZRbK+xOo=
2019.01.25 21:27:17 5: [STV] SamsungTV data of second websocket response: {�1::
2019.01.25 21:27:17 4: [STV] SamsungTV sending KEY_0
2019.01.25 21:27:17 5: [STV] SamsungTV send payload: 5::/com.samsung.companion:{"name":"callCommon","args":[{"Session_Id":1,"body":"[54,159,196,217,23,243,50,95,200,138,42,54,50,47,21,18,92,105,43,88,27,191,48,120,4,61,104,223,31,185,77,249,232,130,19,220,79,110,5,151,48,156,222,82,172,161,23,122,204,52,165,177,127,205,153,50,250,127,179,10,163,96,230,231,80,210,155,196,40,63,54,249,190,28,183,69,70,104,179,37,9,149,8,2,192,246,214,63,220,150,129,49,3,200,208,98,113,156,130,35,89,216,212,197,169,228,125,172,253,215,251,185,33,87,217,106,127,213,175,150,126,212,56,169,49,61,100,125,71,100,64,70,82,108,47,201,118,142,107,102,192,0,251,187,156,27,235,237,234,151,125,15,30,217,5,32,243,68,172,69,233,97,3,4,72,241,25,74,196,3,175,171,157,186,104,208]"}]}
2019.01.25 21:27:55 4: [STV] SamsungTV online with 192.168.178.24:8000 - HTTP-Response: 200
2019.01.25 21:28:55 4: [STV] SamsungTV online with 192.168.178.24:8000 - HTTP-Response: 200
2019.01.25 21:29:55 4: [STV] SamsungTV online with 192.168.178.24:8000 - HTTP-Response: 200
2019.01.25 21:30:55 4: [STV] SamsungTV online with 192.168.178.24:8000 - HTTP-Response: 200
2019.01.25 21:31:55 4: [STV] SamsungTV online with 192.168.178.24:8000 - HTTP-Response: 200
2019.01.25 21:32:55 4: [STV] SamsungTV online with 192.168.178.24:8000 - HTTP-Response: 200
2019.01.25 21:33:55 4: [STV] SamsungTV online with 192.168.178.24:8000 - HTTP-Response: 200
2019.01.25 21:34:55 4: [STV] SamsungTV online with 192.168.178.24:8000 - HTTP-Response: 200
2019.01.25 21:35:55 4: [STV] SamsungTV online with 192.168.178.24:8000 - HTTP-Response: 200
2019.01.25 21:36:55 4: [STV] SamsungTV online with 192.168.178.24:8000 - HTTP-Response: 200
2019.01.25 21:37:55 4: [STV] SamsungTV online with 192.168.178.24:8000 - HTTP-Response: 200
2019.01.25 21:37:57 5: [STV] SamsungTV command 7 parameter
2019.01.25 21:37:57 5: session_key: bce889f8246aab4cb587de0bd3f3fda4
2019.01.25 21:37:57 5: session_id: 1
2019.01.25 21:37:57 5: [STV] SamsungTV: generate command for key 'KEY_7'
2019.01.25 21:37:57 5: [STV] SamsungTV: command: '5::/com.samsung.companion:{"name":"callCommon","args":[{"Session_Id":1,"body":"[54,159,196,217,23,243,50,95,200,138,42,54,50,47,21,18,92,105,43,88,27,191,48,120,4,61,104,223,31,185,77,249,232,130,19,220,79,110,5,151,48,156,222,82,172,161,23,122,204,52,165,177,127,205,153,50,250,127,179,10,163,96,230,231,80,210,155,196,40,63,54,249,190,28,183,69,70,104,179,37,9,149,8,2,192,246,214,63,220,150,129,49,3,200,208,98,243,80,130,55,112,240,137,139,143,210,70,169,168,46,93,220,33,87,217,106,127,213,175,150,126,212,56,169,49,61,100,125,71,100,64,70,82,108,47,201,118,142,107,102,192,0,251,187,156,27,235,237,234,151,125,15,30,217,5,32,243,68,172,69,233,97,3,4,72,241,25,74,196,3,175,171,157,186,104,208]"}]}'
2019.01.25 21:37:57 4: [STV] SamsungTV: websocket path /socket.io/1/websocket/J5W00wkGSU2XGf6dAO1W
2019.01.25 21:37:57 4: [STV] HTTP socket-connection to SamsungTV. Reply: 0
2019.01.25 21:37:57 4: [STV] HTTP socket-connection to SamsungTV successful.
2019.01.25 21:37:57 5: [STV] SamsungTV send to TV: GET /socket.io/1/websocket/J5W00wkGSU2XGf6dAO1W HTTP/1.1
Upgrade: websocket
Connection: Upgrade
Host: 192.168.178.24:8000
Sec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==
Sec-WebSocket-Version: 13
2019.01.25 21:37:57 5: [STV] SamsungTV first websocket response: HTTP/1.1 101 Switching Protocols
Upgrade: websocket
Connection: Upgrade
Sec-WebSocket-Accept: s3pPLMBiTxaQ9kYGzzhZRbK+xOo=
2019.01.25 21:37:57 5: [STV] SamsungTV data of second websocket response: {�1::
2019.01.25 21:37:57 4: [STV] SamsungTV sending KEY_7
2019.01.25 21:37:57 5: [STV] SamsungTV send payload: 5::/com.samsung.companion:{"name":"callCommon","args":[{"Session_Id":1,"body":"[54,159,196,217,23,243,50,95,200,138,42,54,50,47,21,18,92,105,43,88,27,191,48,120,4,61,104,223,31,185,77,249,232,130,19,220,79,110,5,151,48,156,222,82,172,161,23,122,204,52,165,177,127,205,153,50,250,127,179,10,163,96,230,231,80,210,155,196,40,63,54,249,190,28,183,69,70,104,179,37,9,149,8,2,192,246,214,63,220,150,129,49,3,200,208,98,243,80,130,55,112,240,137,139,143,210,70,169,168,46,93,220,33,87,217,106,127,213,175,150,126,212,56,169,49,61,100,125,71,100,64,70,82,108,47,201,118,142,107,102,192,0,251,187,156,27,235,237,234,151,125,15,30,217,5,32,243,68,172,69,233,97,3,4,72,241,25,74,196,3,175,171,157,186,104,208]"}]}
2019.01.25 21:38:55 4: [STV] SamsungTV online with 192.168.178.24:8000 - HTTP-Response: 200
2019.01.25 21:39:55 4: [STV] SamsungTV online with 192.168.178.24:8000 - HTTP-Response: 200
2019.01.25 21:40:55 4: [STV] SamsungTV online with 192.168.178.24:8000 - HTTP-Response: 200
2019.01.25 21:41:55 4: [STV] SamsungTV online with 192.168.178.24:8000 - HTTP-Response: 200
2019.01.25 21:42:55 4: [STV] SamsungTV online with 192.168.178.24:8000 - HTTP-Response: 200
Die Daten aus dem TextFile werden scheinbar erkannt, jedoch ist keine Steuerung möglich!
Hat hier noch jemand eine Ahnung woran es liegen könnte?
Ist eine Portfreigabe in der Fritzbox nötig?
Viele Grüße!