Ape / samsungctl

Remote control Samsung televisions via a TCP/IP connection
MIT License
713 stars 191 forks source link

Support for Text Input #23

Open achimhoth opened 7 years ago

achimhoth commented 7 years ago

Legacy TVs support text being sent through the remote. I wonder if that is also possible with the new models. Maybe through some other params in this request:

        payload = json.dumps({
            "method": "ms.remote.control",
            "params": {
                "Cmd": "Click",
                "DataOfCmd": key,
                "Option": "false",
                "TypeOfRemote": "SendRemoteKey"
            }
        })
JavaJens commented 7 years ago

As the official android Application supports this, I would assume so. I guess some traffic snooping would help here...

trainormg commented 7 years ago

I'd like to start a specific app on the smart tv (e.g.: youtube, primevideo or plex), but there is no single key for that. @Ape , where did you find the protocol description? I spent hours searching on the samsung developer site and was not able to find this protocol/api documetned anywhere? Could you share a link to the source?

Ape commented 7 years ago

@trainormg As far as I know, there is no protocol documentation publicly available.

See https://github.com/Ape/samsungctl#references. It's not much, but that's everything I have.

I have no idea if starting smart tv applications is possible. The newer websocket interface may have more commands that aren't know yet, or it simply may not have such functionality.

One way is of course to send a specific sequence of remote key presses, but it's certainly not a very clean solution and it might be even impossible to do.