Remote Key Codes

In remote controlling Samsung TVs programmatically via WiFi, I have a list of valid key codes like KEY_POWEROFF, KEY_POWERON, etc. On some physical remotes there is a “dash” key at the bottom left of the numeric pad that is used to input OTA channels like “2-1”. I can’t find the key code corresponding to this button. Does anyone know the right code?
Thanks.

I found it by trial and error. The correct code is KEY_PLUS100.

Hi okimselim!

You seem to have experience with the exact challenge I have: I’m trying to turn on or off a Samsung qe65q60a via the network. Specifically I’m using Zoom Rooms Room Controls.

Do you know if that’s possible? And, if so, would you mind sharing how you’d go about it?

(I’m a network engineer and fairly confident establishing TCP connections and the like…)

Kind regards,

Marc

HI Marc,
I am going to assume you misstated this. But to be clear you can not turn the TV on or off remotely, you can only put it waken it or put it into standby mode.

Ron
Samsung Developer Relations

I’m controlling a UN50F6400 (2013) TV by an app I wrote in Python on top of an open source framework you can find here. The app displays an image of a Samsung TV Remote. Mouse clicks are tested for being over the various buttons which sends the appropriate key code over TCP/IP to the TV. The main issue is that you can turn off these older TVs via network but then they go offline so you can’t turn them back on via network, only by IR signal. As a workaround, when the power button is clicked in my app, it tries to open a connection to the TV and if that fails the TV is off so it sends a message to an old android phone I have with an IR blaster and a remote app that can fire off the power on IR signal. It’s worth all the hoops because it lets me control the TV without needing line of sight or having to reach for a remote while working on my laptop. Also, I just wanted to see if I could get it to work.

Not sure how much of this applies to your project, but using the resource I linked to and a free Python IDE like PyCharm you can probably do what you’re trying to do pretty quickly.