# Help ! Samsung TV Bindings with \>2016 Samsung TV

**URL:** <https://community.openhab.org/t/help-samsung-tv-bindings-with-2016-samsung-tv/67053>\
**Category:** Bindings\
**Tags:** samsungtv\
**Created:** [February 8, 2019, 2:42pm UTC](https://community.openhab.org/t/help-samsung-tv-bindings-with-2016-samsung-tv/67053 "2019-02-08T14:42:05Z")\
**Posts on this page:** 20\
**Page:** 6

<div class="post-metadata">

**Author:** ![brizzik](https://community.openhab.org/user_avatar/community.openhab.org/brizzik/32/51273_2.png) [@brizzik](https://community.openhab.org/u/brizzik)\
**Post date:** [April 11, 2020, 9:29am UTC](https://community.openhab.org/t/help-samsung-tv-bindings-with-2016-samsung-tv/67053/102 "2020-04-11T09:29:58Z")

</div>

In paper UI there is allready a token entered. So it probably does that automatically.  
So not sure what happens when rebooting. in some way it removes it i think.

But its not at all a problem for me, just know now that when i reboot i have to accept the tv notification otherwise websocket doesnt work. And i dont reboot that often.

---

<div class="post-metadata">

**Author:** ![arjanmels](https://community.openhab.org/letter_avatar_proxy/v4/letter/a/5daacb/32.png) [@arjanmels](https://community.openhab.org/u/arjanmels)\
**Post date:** [April 11, 2020, 11:24am UTC](https://community.openhab.org/t/help-samsung-tv-bindings-with-2016-samsung-tv/67053/103 "2020-04-11T11:24:28Z")

</div>

It is indeed a security token for the websocket communication, that will be obtained automatically. It should be retained during reboots, if not the TV will ask for confirmation again.

---

<div class="post-metadata">

**Author:** ![omatzyo](https://community.openhab.org/user_avatar/community.openhab.org/omatzyo/32/58210_2.png) [@omatzyo](https://community.openhab.org/u/omatzyo)\
**Post date:** [April 11, 2020, 11:42am UTC](https://community.openhab.org/t/help-samsung-tv-bindings-with-2016-samsung-tv/67053/104 "2020-04-11T11:42:21Z")

</div>

> [@arjanmels](#):
>
> It should be retained during reboots

Hello there! I think quite a few of us have seen the token disappear on reboots, unfortunately. Do you have any idea what could be causing this? Is there any information you need to help solve this problem? Thanks for taking time to look into this!

---

<div class="post-metadata">

**Author:** ![Jonas88](https://community.openhab.org/user_avatar/community.openhab.org/jonas88/32/92069_2.png) [@Jonas88](https://community.openhab.org/u/Jonas88)\
**Post date:** [April 12, 2020, 5:34pm UTC](https://community.openhab.org/t/help-samsung-tv-bindings-with-2016-samsung-tv/67053/105 "2020-04-12T17:34:03Z")

</div>

> [@mstormi](#):
>
> eatures work and which ones do not, and, which models is functionality eventually limited to.  
> And I believe this is something this community can help to enhance better than the developers themse

EDIT: Now i feel dumb …  
It worked with the sourceapp item by just forwarding the name as string …  
Thanks mate

Hi!  
It did something … My TV asked me if my mac is allowed to control. i hit yes but i am not getting netflix to run. the respond from the terminal is:

```csv
<html><body>401</body></html> **%**

```

What does that mean?  
I own a 2019 the frame …

---

<div class="post-metadata">

**Author:** ![arjanmels](https://community.openhab.org/letter_avatar_proxy/v4/letter/a/5daacb/32.png) [@arjanmels](https://community.openhab.org/u/arjanmels)\
**Post date:** [April 15, 2020, 6:01pm UTC](https://community.openhab.org/t/help-samsung-tv-bindings-with-2016-samsung-tv/67053/106 "2020-04-15T18:01:05Z")

</div>

I use the configuration of the BaseThingHandler: [getConfig](https://www.eclipse.org/smarthome/documentation/javadoc/org/eclipse/smarthome/core/thing/binding/BaseThingHandler.html#getConfig--). No clue how that works internally, so I am afraid I can’t really follow up on this.

---

<div class="post-metadata">

**Author:** ![Andrea\_Viscovich](https://community.openhab.org/user_avatar/community.openhab.org/andrea_viscovich/32/51546_2.png) [@Andrea\_Viscovich](https://community.openhab.org/u/Andrea_Viscovich)\
**Post date:** [April 20, 2020, 8:33am UTC](https://community.openhab.org/t/help-samsung-tv-bindings-with-2016-samsung-tv/67053/107 "2020-04-20T08:33:31Z")

</div>

Hi there,  
I have OH 2.5, installed the last binding and I have:  
java.lang.ClassNotFoundException: org.eclipse.smarthome.io.net.http.TrustAllTrustMananger cannot be found by org.openhab.binding.samsungtv\_2.5.4.202004190717

I have 3 samsung \>2016 , with the 2.4 binding they didn’t work, as u already know.  
Any hint to bypass this problem?  
Thank you for everything you are doing.  
Andrea

---

<div class="post-metadata">

**Author:** ![Andrea\_Viscovich](https://community.openhab.org/user_avatar/community.openhab.org/andrea_viscovich/32/51546_2.png) [@Andrea\_Viscovich](https://community.openhab.org/u/Andrea_Viscovich)\
**Post date:** [April 20, 2020, 9:59am UTC](https://community.openhab.org/t/help-samsung-tv-bindings-with-2016-samsung-tv/67053/108 "2020-04-20T09:59:29Z")

</div>

Hi,  
now I Installed binding 2.5.5.  
I tried both secure web socket and web socket: both fails: see log:  
2020-04-20 11:46:44.436 [INFO] [g.discovery.internal.PersistentInbox] - Added new thing ‘samsungtv:tv:550df167\_06e9\_4da5\_a622\_5611ad550b20’ to inbox.  
2020-04-20 11:47:16.168 [INFO] [rnal.service.RemoteControllerService] - Using SecureWebSocket interface  
2020-04-20 11:48:17.047 [WARN] [l.protocol.RemoteControllerWebSocket] - WebSocketClient failure: java.lang.RuntimeException: java.lang.InterruptedException  
2020-04-20 11:50:34.725 [WARN] [tv.internal.handler.SamsungTvHandler] - Cannot send WOL packet to 192.168.1.170 MAC address unknown  
2020-04-20 11:51:22.637 [INFO] [rnal.service.RemoteControllerService] - Using WebSocket interface  
2020-04-20 11:51:52.741 [WARN] [l.protocol.RemoteControllerWebSocket] - WebSocketClient failure: java.lang.RuntimeException: java.lang.InterruptedException  
2020-04-20 11:51:52.743 [WARN] [l.protocol.RemoteControllerWebSocket] - WebSocketClient failure: java.util.concurrent.RejectedExecutionException: org.eclipse.jetty.io.ManagedSelector$$Lambda$373/677340463@2b0dedff  
2020-04-20 11:51:52.743 [WARN] [l.protocol.RemoteControllerWebSocket] - Cannot connect to websocket remote control interface: org.eclipse.jetty.io.ManagedSelector$$Lambda$373/677340463@2b0dedff

I hope it can be useful.  
Andrea

---

<div class="post-metadata">

**Author:** ![execcr](https://community.openhab.org/user_avatar/community.openhab.org/execcr/32/52871_2.png) [@execcr](https://community.openhab.org/u/execcr)\
**Post date:** [April 25, 2020, 3:55pm UTC](https://community.openhab.org/t/help-samsung-tv-bindings-with-2016-samsung-tv/67053/109 "2020-04-25T15:55:44Z")

</div>

Hi, i have a UE50NU7400  
I have just upgraded openhab2 to 2.5.4

When i discover the TV and add as a thing, it configure automatically to the port 8002, with Secure Websocket but without the Token field filled.I cannot change any parameter and i didn’t get any info from it, but i receive the change (es The volume get changed via the remote and the change propagate to openhab).

If i change the Protocol to Websocket and the port to 8001, i can change TV volume and set mute via openhab but i cannot turn off and on the tv or do anything else. No data of the application running or program is sent to openhab.

The TV is connected via Wired RJ45, not wifi.

Any hint?

---

<div class="post-metadata">

**Author:** ![execcr](https://community.openhab.org/user_avatar/community.openhab.org/execcr/32/52871_2.png) [@execcr](https://community.openhab.org/u/execcr)\
**Post date:** [April 25, 2020, 4:34pm UTC](https://community.openhab.org/t/help-samsung-tv-bindings-with-2016-samsung-tv/67053/110 "2020-04-25T16:34:13Z")

</div>

Little update: i uninstalled completely the samsung binding and installed from scratch.  
Now the TV get founded correctly and i can do anything (volumes, keys, ecc) except turning it on from being off. From log i see that the magic packet get sent (6 or 7 times).

Any hint then on how call application (Like Netflix or Plex) from openhab?

---

<div class="post-metadata">

**Author:** ![mstormi](https://community.openhab.org/user_avatar/community.openhab.org/mstormi/32/55857_2.png) [@mstormi](https://community.openhab.org/u/mstormi)\
**Post date:** [April 25, 2020, 6:03pm UTC](https://community.openhab.org/t/help-samsung-tv-bindings-with-2016-samsung-tv/67053/111 "2020-04-25T18:03:33Z")

</div>

> [@execcr](#):
>
> Any hint then on how call application (Like Netflix or Plex) from openhab?

Read the thread. [Post 91](https://community.openhab.org/t/help-samsung-tv-bindings-with-2016-samsung-tv/67053/91)

---

<div class="post-metadata">

**Author:** ![Master79](https://community.openhab.org/letter_avatar_proxy/v4/letter/m/bcef8e/32.png) [@Master79](https://community.openhab.org/u/Master79)\
**Post date:** [May 3, 2020, 7:41pm UTC](https://community.openhab.org/t/help-samsung-tv-bindings-with-2016-samsung-tv/67053/112 "2020-05-03T19:41:24Z")

</div>

Hi,  
get this error, if i search on the TV after apps:

```
2020-05-03 21:36:53.483 [WARN] [tv.internal.protocol.WebSocketRemote] - WebSocketRemote: Error (java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 39 path $.data) in message: {"event":"ms.remote.imeStart","data":"input"}

com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 39 path $.data

	at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:224) ~[bundleFile:?]

	at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:129) ~[bundleFile:?]

	at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:220) ~[bundleFile:?]

	at com.google.gson.Gson.fromJson(Gson.java:888) ~[bundleFile:?]

	at com.google.gson.Gson.fromJson(Gson.java:853) ~[bundleFile:?]

	at com.google.gson.Gson.fromJson(Gson.java:802) ~[bundleFile:?]

	at com.google.gson.Gson.fromJson(Gson.java:774) ~[bundleFile:?]

	at org.openhab.binding.samsungtv.internal.protocol.WebSocketRemote.onWebSocketText(WebSocketRemote.java:94) [bundleFile:?]

	at org.eclipse.jetty.websocket.common.events.JettyListenerEventDriver.onTextMessage(JettyListenerEventDriver.java:231) [bundleFile:9.4.20.v20190813]

	at org.eclipse.jetty.websocket.common.message.SimpleTextMessage.messageComplete(SimpleTextMessage.java:69) [bundleFile:9.4.20.v20190813]

	at org.eclipse.jetty.websocket.common.events.AbstractEventDriver.appendMessage(AbstractEventDriver.java:65) [bundleFile:9.4.20.v20190813]

	at org.eclipse.jetty.websocket.common.events.JettyListenerEventDriver.onTextFrame(JettyListenerEventDriver.java:179) [bundleFile:9.4.20.v20190813]

	at org.eclipse.jetty.websocket.common.events.AbstractEventDriver.incomingFrame(AbstractEventDriver.java:150) [bundleFile:9.4.20.v20190813]

	at org.eclipse.jetty.websocket.common.WebSocketSession.incomingFrame(WebSocketSession.java:321) [bundleFile:9.4.20.v20190813]

	at org.eclipse.jetty.websocket.common.extensions.ExtensionStack.incomingFrame(ExtensionStack.java:202) [bundleFile:9.4.20.v20190813]

	at org.eclipse.jetty.websocket.common.Parser.notifyFrame(Parser.java:226) [bundleFile:9.4.20.v20190813]

	at org.eclipse.jetty.websocket.common.Parser.parseSingleFrame(Parser.java:262) [bundleFile:9.4.20.v20190813]

	at org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection.readParse(AbstractWebSocketConnection.java:582) [bundleFile:9.4.20.v20190813]

	at org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection.onFillable(AbstractWebSocketConnection.java:441) [bundleFile:9.4.20.v20190813]

	at org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection.onFillable(AbstractWebSocketConnection.java:428) [bundleFile:9.4.20.v20190813]

	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311) [bundleFile:9.4.20.v20190813]

	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103) [bundleFile:9.4.20.v20190813]

	at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117) [bundleFile:9.4.20.v20190813]

	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336) [bundleFile:9.4.20.v20190813]

	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313) [bundleFile:9.4.20.v20190813]

	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171) [bundleFile:9.4.20.v20190813]

	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129) [bundleFile:9.4.20.v20190813]

	at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:367) [bundleFile:9.4.20.v20190813]

	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:782) [bundleFile:9.4.20.v20190813]

	at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:918) [bundleFile:9.4.20.v20190813]

	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_232]

Caused by: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 39 path $.data

	at com.google.gson.stream.JsonReader.beginObject(JsonReader.java:385) ~[bundleFile:?]

	at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:213) ~[bundleFile:?]

	... 30 more

```

WebSocket is connected but after this i get the warning:

`[WARN] [l.protocol.RemoteControllerWebSocket] - Cannot retrieve current app webSocketV2 is not connected`

The only thing that works is the Power Switch.

Can someone help??  
Greettings,  
Markus

---

<div class="post-metadata">

**Author:** ![menzy](https://community.openhab.org/letter_avatar_proxy/v4/letter/m/35a633/32.png) [@menzy](https://community.openhab.org/u/menzy)\
**Post date:** [May 13, 2020, 2:23pm UTC](https://community.openhab.org/t/help-samsung-tv-bindings-with-2016-samsung-tv/67053/113 "2020-05-13T14:23:29Z")

</div>

Hi Guys

I wanted to report that after restarting Openhab 2.5.4 running on Windows 10 I have to remove the Samsung TV binding restart again & re install it in order to keep it working.

For me I only use it to detect when the TV(s) is turned on & off to control other lights in the room which works perfectly except after I have restarted Openhab.

---

<div class="post-metadata">

**Author:** ![jwiseman](https://community.openhab.org/user_avatar/community.openhab.org/jwiseman/32/97501_2.png) [@jwiseman](https://community.openhab.org/u/jwiseman)\
**Post date:** [May 13, 2020, 2:49pm UTC](https://community.openhab.org/t/help-samsung-tv-bindings-with-2016-samsung-tv/67053/114 "2020-05-13T14:49:19Z")

</div>

> [@menzy](#):
>
> remove the Samsung TV binding restart again & re install it in order to keep it working.

I had similiar issues with the updated SamsungTV binding from this GitHub version. I rolled back to 2.4 RC1.

> <https://github.com/openhab/openhab-addons/issues/5892#issuecomment-626691704>
>
> \<a alt="bounty" href="https://www.bountysource.com/issues/80365719"\>\<img src="ht…tps://api.bountysource.com/badge/issue?issue\_id=80365719"\>\</a\>
> 
> Refer to https://community.openhab.org/t/too-much-time-before-a-sonos-thing-becomes-definitively-online/62214
> 
> For no observed reason, JuPnP seems to fail randomly and cause things to go offline. Sonos speakers seem to be the biggest culprit. Once this condition is reached, all things that rely on JuPnP seem to fall offline quickly. I've seen this happen between 3 days and 2 weeks, no specific time length causes the failure.
> 
> This can be mitigated currently by having a rule monitor getThingStatusInfo(mything).getStatus().toString() and when it goes offline it executes "executeCommandLine(”/usr/bin/ssh -p 8101 -i /home/openhab/karaf\_keys/openhab.id\_rsa openhab@localhost bundle:restart org.jupnp", 120000)"

Best, Jay

---

<div class="post-metadata">

**Author:** ![alexxio](https://community.openhab.org/user_avatar/community.openhab.org/alexxio/32/37692_2.png) [@alexxio](https://community.openhab.org/u/alexxio)\
**Post date:** [May 14, 2020, 12:24pm UTC](https://community.openhab.org/t/help-samsung-tv-bindings-with-2016-samsung-tv/67053/115 "2020-05-14T12:24:56Z")

</div>

Hi @jwiseman,  
I suffer this bug with my samsung TV (I really need to get it working because we heavy rely on rules I created to manage TV for kids),  
Where do I find the 2.4 RC1 version of the binding? Does it work with openhab 2.5.4 ? What version of JuPnP is suggested?

Thank you very much

---

<div class="post-metadata">

**Author:** ![jwiseman](https://community.openhab.org/user_avatar/community.openhab.org/jwiseman/32/97501_2.png) [@jwiseman](https://community.openhab.org/u/jwiseman)\
**Post date:** [May 14, 2020, 1:40pm UTC](https://community.openhab.org/t/help-samsung-tv-bindings-with-2016-samsung-tv/67053/116 "2020-05-14T13:40:55Z")

</div>

> [@alexxio](#):
>
> Where do I find the 2.4 RC1 version of the binding?

> **[JFrog](https://openhab.jfrog.io/ui/)**

Search using this → \* samsungtv-2.4.0.RC1 \* ← remove the spaces before/after the \*'s

I’m running jupnp 2.5.2, I’m assuming the version your running will work fine.

Keep in mind, basic functionality is with 2.4 RC1 based on the model of your SamsungTV.

Best, Jay

---

<div class="post-metadata">

**Author:** ![INT5749](https://community.openhab.org/user_avatar/community.openhab.org/int5749/32/45464_2.png) [@INT5749](https://community.openhab.org/u/INT5749)\
**Post date:** [May 25, 2020, 5:10am UTC](https://community.openhab.org/t/help-samsung-tv-bindings-with-2016-samsung-tv/67053/117 "2020-05-25T05:10:00Z")

</div>

> [@alexxio](#):
>
> Where do I find the 2.4 RC1 version of the binding?

I’m running openHAB 2.5.5 stable, assuming that Binding is also on v2.5.5? So is there a difference/enhancement to use 2.4 RC1 ???

And apologies for stupid question, do I have to install kind of jupnp in addition to binding??

Rgds,  
Joerg

---

<div class="post-metadata">

**Author:** ![jwiseman](https://community.openhab.org/user_avatar/community.openhab.org/jwiseman/32/97501_2.png) [@jwiseman](https://community.openhab.org/u/jwiseman)\
**Post date:** [May 25, 2020, 1:30pm UTC](https://community.openhab.org/t/help-samsung-tv-bindings-with-2016-samsung-tv/67053/118 "2020-05-25T13:30:06Z")

</div>

> [@INT5749](#):
>
> is there a difference/enhancement to use 2.4 RC1 ???

Yes, lots of differences between the two version. The 2.4 is stable but doesn’t have all the functionality of the 2.5.x version. You would just uninstall Samsung 2.5.x and drop the 2.4.0 RC1 into the Addon’s directory.

No, you don’t need to change the jupnp versions.

Best, Jay

---

<div class="post-metadata">

**Author:** ![INT5749](https://community.openhab.org/user_avatar/community.openhab.org/int5749/32/45464_2.png) [@INT5749](https://community.openhab.org/u/INT5749)\
**Post date:** [May 25, 2020, 4:42pm UTC](https://community.openhab.org/t/help-samsung-tv-bindings-with-2016-samsung-tv/67053/119 "2020-05-25T16:42:55Z")

</div>

> [@jwiseman](#):
>
> No, you don’t need to change the jupnp versions.

Hi Jay,  
thanks for swift feedback. I don’t have anything specific installed and just imagine if my system would be run[quote=“jwiseman, post:118, topic:67053”]  
and drop the 2.4.0 RC1  
[/quote]

Before this I shall be able to find this on frog-repository :-/ but I’m not. Neither package nor quick search or any other brings this one up :-/ HAs it been moved, or do I make something wrong in my search?? I looked for samsungtv-2.4.0.RC1, just as descibed above

Solved, got it. Wasn’t clear to me that I had to include \*'s 😉

---

<div class="post-metadata">

**Author:** ![INT5749](https://community.openhab.org/user_avatar/community.openhab.org/int5749/32/45464_2.png) [@INT5749](https://community.openhab.org/u/INT5749)\
**Post date:** [May 25, 2020, 6:49pm UTC](https://community.openhab.org/t/help-samsung-tv-bindings-with-2016-samsung-tv/67053/120 "2020-05-25T18:49:57Z")

</div>

:-/ Same behavior =\> online for few minutes, then going offline.

btw: this version of binding is from 2018 already??

rgds  
int5749

---

<div class="post-metadata">

**Author:** ![rockit4](https://community.openhab.org/user_avatar/community.openhab.org/rockit4/32/43610_2.png) [@rockit4](https://community.openhab.org/u/rockit4)\
**Post date:** [August 5, 2020, 10:47am UTC](https://community.openhab.org/t/help-samsung-tv-bindings-with-2016-samsung-tv/67053/121 "2020-08-05T10:47:03Z")

</div>

Did you solve this?  
I have the exact same problem and it seems that it is the slash that causes problems.  
Try the URL without any slashes “192.168.1.134:81”  
It doesn’t solve the problem but it isolates it 🙂  
Any URL with slashes causes my TV to do a google search where the slash has an backslash before.  
Example:  
“192.168.2.134:81/ui3.htm” will generate the same OH-error log message as you got and the TV will open a browser for the address “192.168.2.134:81/ui3.htm”

The binding is also going offline, but thats another problem 🙂

[Previous page](https://community.openhab.org/t/help-samsung-tv-bindings-with-2016-samsung-tv/67053.md?page=5)

[Next page](https://community.openhab.org/t/help-samsung-tv-bindings-with-2016-samsung-tv/67053.md?page=7)
