Samsung TV Binding (Beta)

@jwiseman

Thanks, Jay.

As far as I understand it, the TV’s that use port 8001 do not use the secure token method. They should prompt you to accept the remote connection though, regardless.

Normally, when you turn the TV on, the binding will detect the TV via UPNP (hence it goes ONLINE), and attempt to connect to the remote control websocket on port 8001. The TV should at this point prompt you to accept the remote connection (you have 30 seconds to accept). If accepted, the TV will remember the combination of ip address and “name” (openHAB) and allow the websocket to connect. If the TV supports “secureToken”, it is at this point it returns the token. Not all TV’s return a token (in which case you leave the “webSocketToken” blank (or leave it out altogether). The port and websocket type have nothing to do with whether a token is used or not, except if the TV does use tokens, you have to use port 8002 (not 8001). if it doesn’t you can use either port.

When the TV turns off, the binding detects this (via UPNP) and puts the Thing OFFLINE.

First thing to do is check your TV under “External Device Manager”, there should be an entry somewhere that lists devices, and you should be able to see if there is an entry for openHAB, and whether it is "allowed’ or “denied”.

The other thing is an entry for whether the TV prompts you to allow external devices. This should be “First time only”, if it’s disabled, it won’t prompt you, and you can’t connect. There is another setting on the TV that you need to set called something like “allow remote IP control” which also has to be enabled.

I can’t remember if you have given me the output before, but can you post the results of http://ip_address:8001/api/v2/ so I can see what is supported on your 8001 port TV’s?

Could you post a TRACE log of you turning the TV On, so I can confirm the remoteControl is attempting to connect?

To turn the TV ON, the TV has to have WOL enabled, there is a setting on the TV for this also, it’s something like “allow IP power on”. Turning the TV on from your power item should work, as it just sends WOL packets to the mac address of your TV. I don’t know if all TV’s support WOL over WiFi though.

Thanks.