Skip to content

AndroidTV Binding ​

This binding is designed to emulate different protocols to interact with the AndroidTV platform. Currently it emulates the Google Video App to interact with a variety of AndroidTVs for purposes of remote control. It also currently emulates the Nvidia ShieldTV Android App to interact with an Nvidia ShieldTV for purposes of remote control. It also currently emulates the PhilipsTV App to interact with a 2016+ PhilipsTV for purposes of remote control.

Supported Things ​

This binding supports two thing types:

  • googletv - An AndroidTV running Google Video
  • shieldtv - An Nvidia ShieldTV
  • philipstv - A 2016+ Philips TV

Discovery ​

All relevant thing types should be added automatically to the inbox through the mDNS discovery process.

In the case of the ShieldTV or PhilipsTV, openHAB will likely create an inbox entry for both a GoogleTV and a ShieldTV or PhilipsTV device. Only the ShieldTV or PhilipsTV device should be configured, the GoogleTV can be ignored. There is no benefit to configuring two things for a ShieldTV or PhilipsTV device. This could cause undesired effects.

Binding Configuration ​

This binding does not require any special configuration files.

This binding does require a PIN login process (documented below) upon first connection.

This binding requires GoogleTV to be installed on the device. The binding also requires Android TV Remote Service to be installed on the device.

Thing Configuration ​

The is one required field to connect to the devices. All other fields are optional.

NameTypeDescriptionDefaultRequiredAdvanced
ipAddresstextIP address of the deviceN/Ayesno
googletvPorttextTCP Port for GoogleTV6466noyes
shieldtvPorttextTCP Port for ShieldTV8987noyes
philipstvPorttextTCP Port for PhilipsTV1926noyes
keystoreFileNametextLocation of the Java KeystoreN/Anoyes
keystorePasswordtextPassword of the Java KeystoreN/Anoyes
reconnecttextDelay between reconnections60noyes
heartbeattextFrequency of heartbeats5noyes
delaytextDelay between messages0noyes
refreshRatetextRefresh interval of PhilipsTV10noyes
useUpnpDiscoverybooleanEnables UPnP Discovery for PhilipsTVtruenoyes
gtvEnabledbooleanEnable/Disable the GoogleTV protocoltruenoyes
skipPowerRefreshbooleanSkip additional power state refresh for PhilipsTVfalsenoyes
dsl
Thing androidtv:shieldtv:livingroom [ ipAddress="192.168.1.2" ]
Thing androidtv:googletv:theater [ ipAddress="192.168.1.3" ]
Thing androidtv:philipstv:bedroom [ ipAddress="192.168.1.4" ]

Channels ​

ChannelTypeDescriptionGoogleTVShieldTVPhilipsTV
keyboardStringKeyboard Data EntryRWRWRW
keypressStringManual Key Press EntryRWRWRW
keycodeStringDirect KEYCODE EntryRWRWRW
pincodeStringPIN Code EntryRWRWRW
appStringApp ControlRORWRW
appnameStringApp NameN/ARWRW
appurlStringApp URLN/ARON/A
appiconImageApp IconN/AN/ARO
playerPlayerPlayer ControlRWRWRW
powerSwitchPower ControlRWRWRW
volumeDimmerVolume ControlRORORW
muteSwitchMute ControlRWRWRW
tvChannelStringTV Channel ControlN/AN/ARW
brightnessDimmerBrightness ControlN/AN/ARW
contrastDimmerContrast ControlN/AN/ARW
sharpnessDimmerSharpness ControlN/AN/ARW
searchContentStringGoogle Assistant searchN/AN/ARW
ambilightPowerSwitchAmbilight power controlN/AN/ARW
ambilightHuePowerSwitchAmbilight + Hue power controlN/AN/ARW
ambilightStyleStringAmbilight Style plus algorithm usedN/AN/ARW
ambilightColorColorColor for all Ambilight SidesN/AN/ARW
ambilightLeftColorColorColor for left Ambilight SideN/AN/ARW
ambilightRightColorColorColor for right Ambilight SideN/AN/ARW
ambilightTopColorColorColor for top Ambilight SideN/AN/ARW
ambilightBottomColorColorColor for bottom Ambilight SideN/AN/ARW
dsl
String ShieldTV_KEYBOARD "KEYBOARD [%s]" { channel = "androidtv:shieldtv:livingroom:keyboard" }
String ShieldTV_KEYPRESS "KEYPRESS [%s]" { channel = "androidtv:shieldtv:livingroom:keypress" }
String ShieldTV_KEYCODE "KEYCODE [%s]" { channel = "androidtv:shieldtv:livingroom:keycode" }
String ShieldTV_PINCODE  "PINCODE [%s]" { channel = "androidtv:shieldtv:livingroom:pincode" }
String ShieldTV_APP "APP [%s]" { channel = "androidtv:shieldtv:livingroom:app" }
String ShieldTV_APPNAME "APPNAME [%s]" { channel = "androidtv:shieldtv:livingroom:appname" }
String ShieldTV_APPURL "APPURL [%s]" { channel = "androidtv:shieldtv:livingroom:appurl" }
Player ShieldTV_PLAYER "PLAYER [%s]" { channel = "androidtv:shieldtv:livingroom:player" }
Switch ShieldTV_POWER "POWER [%s]" { channel = "androidtv:shieldtv:livingroom:power" }
Dimmer ShieldTV_VOLUME "VOLUME [%s]" { channel = "androidtv:shieldtv:livingroom:volume" }
Switch ShieldTV_MUTE "MUTE [%s]" { channel = "androidtv:shieldtv:livingroom:mute" }

String PhilipsTV_KEYBOARD "KEYBOARD [%s]" { channel = "androidtv:philipstv:bedroom:keyboard" }
String PhilipsTV_KEYPRESS "KEYPRESS [%s]" { channel = "androidtv:philipstv:bedroom:keypress" }
String PhilipsTV_KEYCODE "KEYCODE [%s]" { channel = "androidtv:philipstv:bedroom:keycode" }
String PhilipsTV_PINCODE  "PINCODE [%s]" { channel = "androidtv:philipstv:bedroom:pincode" }
String PhilipsTV_APP "APP [%s]" { channel = "androidtv:philipstv:bedroom:app" }
String PhilipsTV_APPNAME "APPNAME [%s]" { channel = "androidtv:philipstv:bedroom:appname" }
Image  PhilipsTV_APPICON "APPICON [%s]" { channel = "androidtv:philipstv:bedroom:appicon" }
Player PhilipsTV_PLAYER "PLAYER [%s]" { channel = "androidtv:philipstv:bedroom:player" }
Switch PhilipsTV_POWER "POWER" { channel = "androidtv:philipstv:bedroom:power" }
Dimmer PhilipsTV_VOLUME "VOLUME [%s]" { channel = "androidtv:philipstv:bedroom:volume" }
Switch PhilipsTV_MUTE "MUTE [%s]" { channel = "androidtv:philipstv:bedroom:mute" }
String PhilipsTV_TVCHANNEL "TVCHANNEL [%s]" { channel = "androidtv:philipstv:bedroom:tvChannel" }
String PhilipsTV_SEARCHCONTENT "SEARCH CONTENT [%s]" { channel = "androidtv:philipstv:bedroom:searchContent" }
Switch PhilipsTV_AMBILIGHTPOWER "AMBILIGHT POWER [%s]" { channel = "androidtv:philipstv:bedroom:ambilightPower" }
Switch PhilipsTV_AMBILIGHTHUEPOWER "AMBILIGHT HUE POWER [%s]" { channel = "androidtv:philipstv:bedroom:ambilightHuePower" }
Switch PhilipsTV_AMBILIGHTLOUNGEPOWER "AMBILIGHT LOUNGE POWER" { channel = "androidtv:philipstv:bedroom:ambilightLoungePower" }
String PhilipsTV_AMBILIGHTSTYLE "AMBILIGHT STYLE" { channel = "androidtv:philipstv:bedroom:ambilightStyle" }
Color PhilipsTV_AMBILIGHTALLCOLOR "ALL SIDES AMBILIGHT COLOR [%s]" { channel = "androidtv:philipstv:bedroom:ambilightColor" }
Color PhilipsTV_AMBILIGHTLEFTCOLOR "LEFT SIDE AMBILIGHT COLOR [%s]" { channel = "androidtv:philipstv:bedroom:ambilightLeftColor" }
Color PhilipsTV_AMBILIGHTRIGHTCOLOR "RIGHT SIDE AMBILIGHT COLOR [%s]" { channel = "androidtv:philipstv:bedroom:ambilightRightColor" }
Color PhilipsTV_AMBILIGHTTOPCOLOR "TOP SIDE AMBILIGHT COLOR [%s]" { channel = "androidtv:philipstv:bedroom:ambilightTopColor" }
Color PhilipsTV_AMBILIGHTBOTTOMCOLOR "BOTTOM SIDE AMBILIGHT COLOR [%s]" { channel = "androidtv:philipstv:bedroom:ambilightBottomColor" }
Dimmer PhilipsTV_BRIGHTNESS "BRIGHTNESS [%s]" { channel = "androidtv:philipstv:bedroom:brightness" }
Dimmer PhilipsTV_CONTRAST "CONTRAST [%s]" { channel = "androidtv:philipstv:bedroom:contrast" }
Dimmer PhilipsTV_SHARPNESS "SHARPNESS [%s]" { channel = "androidtv:philipstv:bedroom:sharpness" }

String GoogleTV_KEYBOARD "KEYBOARD [%s]" { channel = "androidtv:googletv:theater:keyboard" }
String GoogleTV_KEYPRESS "KEYPRESS [%s]" { channel = "androidtv:googletv:theater:keypress" }
String GoogleTV_KEYCODE "KEYCODE [%s]" { channel = "androidtv:googletv:theater:keycode" }
String GoogleTV_PINCODE  "PINCODE [%s]" { channel = "androidtv:googletv:theater:pincode" }
String GoogleTV_APP "APP [%s]" { channel = "androidtv:googletv:theater:app" }
Player GoogleTV_PLAYER "PLAYER [%s]" { channel = "androidtv:googletv:theater:player" }
Switch GoogleTV_POWER "POWER [%s]" { channel = "androidtv:googletv:theater:power" }
Dimmer GoogleTV_VOLUME "VOLUME [%s]" { channel = "androidtv:googletv:theater:volume" }
Switch GoogleTV_MUTE "MUTE [%s]" { channel = "androidtv:googletv:theater:mute" }

KEYPRESS will accept the following commands as strings (case sensitive):

  • KEY_UP
  • KEY_DOWN
  • KEY_RIGHT
  • KEY_LEFT
  • KEY_ENTER
  • KEY_HOME
  • KEY_BACK
  • KEY_MENU
  • KEY_PLAY
  • KEY_PAUSE
  • KEY_PLAYPAUSE
  • KEY_STOP
  • KEY_NEXT
  • KEY_PREVIOUS
  • KEY_REWIND
  • KEY_FORWARD
  • KEY_POWER
  • KEY_GOOGLE
  • KEY_VOLUP
  • KEY_VOLDOWN
  • KEY_MUTE
  • KEY_SUBMIT

The list above causes an instantanious "press and release" of each button. If you would like to manually control the press and release of each you may append _PRESS and _RELEASE to the end of each. (e.g. KEY_FORWARD_PRESS or KEY_FORWARD_RELEASE)

You may also send an ASCII character as a single letter to simulate a key entry (e.g KEY_A, KEY_1, KEY_z). Use KEY_SUBMIT when full text entry is complete to tell the shield to process the line. KEY_SUBMIT is automatically sent by KEYBOARD when a command is sent to the channel.

APP will display the currently active app as presented by the AndroidTV. You may also send it a command of the app package name (e.g. com.google.android.youtube.tv) to start/change-to that app.

KEYCODE values are listed at the bottom of this README. NOTE: Not all KEYCODES work on all devices. Keycodes above 255 have not been tested.

Command Line Access ​

All String type channels may receive commands from inside the karaf cli, even if there are no items configured.

This can be particularly useful for the Pin Code Process as well as for testing.

Syntax:

bash
openhab> openhab:androidtv <thingUID> <channel> <command>

Example usage:

bash
openhab> openhab:androidtv androidtv:googletv:theater keypress KEY_POWER

Pin Code Process ​

For the AndroidTV to be successfully accessed an on-screen PIN authentication is required on the first connection.

To begin the PIN process, send the text "REQUEST" to the pincode channel while watching your AndroidTV.

CLI Example Usage:

bash
openhab> openhab:androidtv androidtv:googletv:theater pincode REQUEST

A 6 digit PIN should be displayed on the screen.

To complete the PIN process, send the PIN displayed to the pincode channel.

CLI Example Usage:

bash
openhab> openhab:androidtv androidtv:googletv:theater pincode abc123

The display should return back to where it was originally.

If you are on a ShieldTV or PhilipsTV you must run that process a second time to authenticate the GoogleTV protocol stack.

This completes the PIN process.

Upon reconnection (either from reconfiguration or a restart of OpenHAB), you should now see a message of "Login Successful" in openhab.log

Troubleshooting ​

Some devices come with an outdated version of the "Android TV Remote Service". So in case the PIN Process does not result in a PIN shown on the screen, and the openHAB log shows an entry GoogleTV version on device needs to be updated visit the Google Play Store on the device, search for the "Android TV Remote Service", and update the App (Service) manually by pressing "Update".

Full Example ​

dsl
Thing androidtv:shieldtv:livingroom [ ipAddress="192.168.1.2" ]
Thing androidtv:googletv:theater [ ipAddress="192.168.1.3" ]
Thing androidtv:philipstv:bedroom [ ipAddress="192.168.1.4" ]
dsl
String ShieldTV_KEYBOARD "KEYBOARD [%s]" { channel = "androidtv:shieldtv:livingroom:keyboard" }
String ShieldTV_KEYPRESS "KEYPRESS [%s]" { channel = "androidtv:shieldtv:livingroom:keypress" }
String ShieldTV_KEYCODE "KEYCODE [%s]" { channel = "androidtv:shieldtv:livingroom:keycode" }
String ShieldTV_PINCODE  "PINCODE [%s]" { channel = "androidtv:shieldtv:livingroom:pincode" }
String ShieldTV_APP "APP [%s]" { channel = "androidtv:shieldtv:livingroom:app" }
String ShieldTV_APPNAME "APPNAME [%s]" { channel = "androidtv:shieldtv:livingroom:appname" }
String ShieldTV_APPURL "APPURL [%s]" { channel = "androidtv:shieldtv:livingroom:appurl" }
Player ShieldTV_PLAYER "PLAYER [%s]" { channel = "androidtv:shieldtv:livingroom:player" }
Switch ShieldTV_POWER "POWER [%s]" { channel = "androidtv:shieldtv:livingroom:power" }
Dimmer ShieldTV_VOLUME "VOLUME [%s]" { channel = "androidtv:shieldtv:livingroom:volume" }
Switch ShieldTV_MUTE "MUTE [%s]" { channel = "androidtv:shieldtv:livingroom:mute" }

String PhilipsTV_KEYBOARD "KEYBOARD [%s]" { channel = "androidtv:philipstv:bedroom:keyboard" }
String PhilipsTV_KEYPRESS "KEYPRESS [%s]" { channel = "androidtv:philipstv:bedroom:keypress" }
String PhilipsTV_KEYCODE "KEYCODE [%s]" { channel = "androidtv:philipstv:bedroom:keycode" }
String PhilipsTV_PINCODE  "PINCODE [%s]" { channel = "androidtv:philipstv:bedroom:pincode" }
String PhilipsTV_APP "APP [%s]" { channel = "androidtv:philipstv:bedroom:app" }
String PhilipsTV_APPNAME "APPNAME [%s]" { channel = "androidtv:philipstv:bedroom:appname" }
Image  PhilipsTV_APPICON "APPICON [%s]" { channel = "androidtv:philipstv:bedroom:appicon" }
Player PhilipsTV_PLAYER "PLAYER [%s]" { channel = "androidtv:philipstv:bedroom:player" }
Switch PhilipsTV_POWER "POWER" { channel = "androidtv:philipstv:bedroom:power" }
Dimmer PhilipsTV_VOLUME "VOLUME [%s]" { channel = "androidtv:philipstv:bedroom:volume" }
Switch PhilipsTV_MUTE "MUTE [%s]" { channel = "androidtv:philipstv:bedroom:mute" }
String PhilipsTV_TVCHANNEL "TVCHANNEL [%s]" { channel = "androidtv:philipstv:bedroom:tvChannel" }
String PhilipsTV_SEARCHCONTENT "SEARCH CONTENT [%s]" { channel = "androidtv:philipstv:bedroom:searchContent" }
Switch PhilipsTV_AMBILIGHTPOWER "AMBILIGHT POWER [%s]" { channel = "androidtv:philipstv:bedroom:ambilightPower" }
Switch PhilipsTV_AMBILIGHTHUEPOWER "AMBILIGHT HUE POWER [%s]" { channel = "androidtv:philipstv:bedroom:ambilightHuePower" }
Switch PhilipsTV_AMBILIGHTLOUNGEPOWER "AMBILIGHT LOUNGE POWER" { channel = "androidtv:philipstv:bedroom:ambilightLoungePower" }
String PhilipsTV_AMBILIGHTSTYLE "AMBILIGHT STYLE" { channel = "androidtv:philipstv:bedroom:ambilightStyle" }
Color PhilipsTV_AMBILIGHTALLCOLOR "ALL SIDES AMBILIGHT COLOR [%s]" { channel = "androidtv:philipstv:bedroom:ambilightColor" }
Color PhilipsTV_AMBILIGHTLEFTCOLOR "LEFT SIDE AMBILIGHT COLOR [%s]" { channel = "androidtv:philipstv:bedroom:ambilightLeftColor" }
Color PhilipsTV_AMBILIGHTRIGHTCOLOR "RIGHT SIDE AMBILIGHT COLOR [%s]" { channel = "androidtv:philipstv:bedroom:ambilightRightColor" }
Color PhilipsTV_AMBILIGHTTOPCOLOR "TOP SIDE AMBILIGHT COLOR [%s]" { channel = "androidtv:philipstv:bedroom:ambilightTopColor" }
Color PhilipsTV_AMBILIGHTBOTTOMCOLOR "BOTTOM SIDE AMBILIGHT COLOR [%s]" { channel = "androidtv:philipstv:bedroom:ambilightBottomColor" }
Dimmer PhilipsTV_BRIGHTNESS "BRIGHTNESS [%s]" { channel = "androidtv:philipstv:bedroom:brightness" }
Dimmer PhilipsTV_CONTRAST "CONTRAST [%s]" { channel = "androidtv:philipstv:bedroom:contrast" }
Dimmer PhilipsTV_SHARPNESS "SHARPNESS [%s]" { channel = "androidtv:philipstv:bedroom:sharpness" }

String GoogleTV_KEYBOARD "KEYBOARD [%s]" { channel = "androidtv:googletv:theater:keyboard" }
String GoogleTV_KEYPRESS "KEYPRESS [%s]" { channel = "androidtv:googletv:theater:keypress" }
String GoogleTV_KEYCODE "KEYCODE [%s]" { channel = "androidtv:googletv:theater:keycode" }
String GoogleTV_PINCODE  "PINCODE [%s]" { channel = "androidtv:googletv:theater:pincode" }
String GoogleTV_APP "APP [%s]" { channel = "androidtv:googletv:theater:app" }
Player GoogleTV_PLAYER "PLAYER [%s]" { channel = "androidtv:googletv:theater:player" }
Switch GoogleTV_POWER "POWER [%s]" { channel = "androidtv:googletv:theater:power" }
Dimmer GoogleTV_VOLUME "VOLUME [%s]" { channel = "androidtv:googletv:theater:volume" }
Switch GoogleTV_MUTE "MUTE [%s]" { channel = "androidtv:googletv:theater:mute" }

Google Keycodes ​

CODEBUTTON
0KEYCODE_UNKNOWN
1KEYCODE_SOFT_LEFT
2KEYCODE_SOFT_RIGHT
3KEYCODE_HOME
4KEYCODE_BACK
5KEYCODE_CALL
6KEYCODE_ENDCALL
7KEYCODE_0
8KEYCODE_1
9KEYCODE_2
10KEYCODE_3
11KEYCODE_4
12KEYCODE_5
13KEYCODE_6
14KEYCODE_7
15KEYCODE_8
16KEYCODE_9
17KEYCODE_STAR
18KEYCODE_POUND
19KEYCODE_DPAD_UP
20KEYCODE_DPAD_DOWN
21KEYCODE_DPAD_LEFT
22KEYCODE_DPAD_RIGHT
23KEYCODE_DPAD_CENTER
24KEYCODE_VOLUME_UP
25KEYCODE_VOLUME_DOWN
26KEYCODE_POWER
27KEYCODE_CAMERA
28KEYCODE_CLEAR
29KEYCODE_A
30KEYCODE_B
31KEYCODE_C
32KEYCODE_D
33KEYCODE_E
34KEYCODE_F
35KEYCODE_G
36KEYCODE_H
37KEYCODE_I
38KEYCODE_J
39KEYCODE_K
40KEYCODE_L
41KEYCODE_M
42KEYCODE_N
43KEYCODE_O
44KEYCODE_P
45KEYCODE_Q
46KEYCODE_R
47KEYCODE_S
48KEYCODE_T
49KEYCODE_U
50KEYCODE_V
51KEYCODE_W
52KEYCODE_X
53KEYCODE_Y
54KEYCODE_Z
55KEYCODE_COMMA
56KEYCODE_PERIOD
57KEYCODE_ALT_LEFT
58KEYCODE_ALT_RIGHT
59KEYCODE_SHIFT_LEFT
60KEYCODE_SHIFT_RIGHT
61KEYCODE_TAB
62KEYCODE_SPACE
63KEYCODE_SYM
64KEYCODE_EXPLORER
65KEYCODE_ENVELOPE
66KEYCODE_ENTER
67KEYCODE_DEL
68KEYCODE_GRAVE
69KEYCODE_MINUS
70KEYCODE_EQUALS
71KEYCODE_LEFT_BRACKET
72KEYCODE_RIGHT_BRACKET
73KEYCODE_BACKSLASH
74KEYCODE_SEMICOLON
75KEYCODE_APOSTROPHE
76KEYCODE_SLASH
77KEYCODE_AT
78KEYCODE_NUM
79KEYCODE_HEADSETHOOK
80KEYCODE_FOCUS
81KEYCODE_PLUS
82KEYCODE_MENU
83KEYCODE_NOTIFICATION
84KEYCODE_SEARCH
85KEYCODE_MEDIA_PLAY_PAUSE
86KEYCODE_MEDIA_STOP
87KEYCODE_MEDIA_NEXT
88KEYCODE_MEDIA_PREVIOUS
89KEYCODE_MEDIA_REWIND
90KEYCODE_MEDIA_FAST_FORWARD
91KEYCODE_MUTE
92KEYCODE_PAGE_UP
93KEYCODE_PAGE_DOWN
94KEYCODE_PICTSYMBOLS
95KEYCODE_SWITCH_CHARSET
96KEYCODE_BUTTON_A
97KEYCODE_BUTTON_B
98KEYCODE_BUTTON_C
99KEYCODE_BUTTON_X
100KEYCODE_BUTTON_Y
101KEYCODE_BUTTON_Z
102KEYCODE_BUTTON_L1
103KEYCODE_BUTTON_R1
104KEYCODE_BUTTON_L2
105KEYCODE_BUTTON_R2
106KEYCODE_BUTTON_THUMBL
107KEYCODE_BUTTON_THUMBR
108KEYCODE_BUTTON_START
109KEYCODE_BUTTON_SELECT
110KEYCODE_BUTTON_MODE
111KEYCODE_ESCAPE
112KEYCODE_FORWARD_DEL
113KEYCODE_CTRL_LEFT
114KEYCODE_CTRL_RIGHT
115KEYCODE_CAPS_LOCK
116KEYCODE_SCROLL_LOCK
117KEYCODE_META_LEFT
118KEYCODE_META_RIGHT
119KEYCODE_FUNCTION
120KEYCODE_SYSRQ
121KEYCODE_BREAK
122KEYCODE_MOVE_HOME
123KEYCODE_MOVE_END
124KEYCODE_INSERT
125KEYCODE_FORWARD
126KEYCODE_MEDIA_PLAY
127KEYCODE_MEDIA_PAUSE
128KEYCODE_MEDIA_CLOSE
129KEYCODE_MEDIA_EJECT
130KEYCODE_MEDIA_RECORD
131KEYCODE_F1
132KEYCODE_F2
133KEYCODE_F3
134KEYCODE_F4
135KEYCODE_F5
136KEYCODE_F6
137KEYCODE_F7
138KEYCODE_F8
139KEYCODE_F9
140KEYCODE_F10
141KEYCODE_F11
142KEYCODE_F12
143KEYCODE_NUM_LOCK
144KEYCODE_NUMPAD_0
145KEYCODE_NUMPAD_1
146KEYCODE_NUMPAD_2
147KEYCODE_NUMPAD_3
148KEYCODE_NUMPAD_4
149KEYCODE_NUMPAD_5
150KEYCODE_NUMPAD_6
151KEYCODE_NUMPAD_7
152KEYCODE_NUMPAD_8
153KEYCODE_NUMPAD_9
154KEYCODE_NUMPAD_DIVIDE
155KEYCODE_NUMPAD_MULTIPLY
156KEYCODE_NUMPAD_SUBTRACT
157KEYCODE_NUMPAD_ADD
158KEYCODE_NUMPAD_DOT
159KEYCODE_NUMPAD_COMMA
160KEYCODE_NUMPAD_ENTER
161KEYCODE_NUMPAD_EQUALS
162KEYCODE_NUMPAD_LEFT_PAREN
163KEYCODE_NUMPAD_RIGHT_PAREN
164KEYCODE_VOLUME_MUTE
165KEYCODE_INFO
166KEYCODE_CHANNEL_UP
167KEYCODE_CHANNEL_DOWN
168KEYCODE_ZOOM_IN
169KEYCODE_ZOOM_OUT
170KEYCODE_TV
171KEYCODE_WINDOW
172KEYCODE_GUIDE
173KEYCODE_DVR
174KEYCODE_BOOKMARK
175KEYCODE_CAPTIONS
176KEYCODE_SETTINGS
177KEYCODE_TV_POWER
178KEYCODE_TV_INPUT
179KEYCODE_STB_POWER
180KEYCODE_STB_INPUT
181KEYCODE_AVR_POWER
182KEYCODE_AVR_INPUT
183KEYCODE_PROG_RED
184KEYCODE_PROG_GREEN
185KEYCODE_PROG_YELLOW
186KEYCODE_PROG_BLUE
187KEYCODE_APP_SWITCH
188KEYCODE_BUTTON_1
189KEYCODE_BUTTON_2
190KEYCODE_BUTTON_3
191KEYCODE_BUTTON_4
192KEYCODE_BUTTON_5
193KEYCODE_BUTTON_6
194KEYCODE_BUTTON_7
195KEYCODE_BUTTON_8
196KEYCODE_BUTTON_9
197KEYCODE_BUTTON_10
198KEYCODE_BUTTON_11
199KEYCODE_BUTTON_12
200KEYCODE_BUTTON_13
201KEYCODE_BUTTON_14
202KEYCODE_BUTTON_15
203KEYCODE_BUTTON_16
204KEYCODE_LANGUAGE_SWITCH
205KEYCODE_MANNER_MODE
206KEYCODE_3D_MODE
207KEYCODE_CONTACTS
208KEYCODE_CALENDAR
209KEYCODE_MUSIC
210KEYCODE_CALCULATOR
211KEYCODE_ZENKAKU_HANKAKU
212KEYCODE_EISU
213KEYCODE_MUHENKAN
214KEYCODE_HENKAN
215KEYCODE_KATAKANA_HIRAGANA
216KEYCODE_YEN
217KEYCODE_RO
218KEYCODE_KANA
219KEYCODE_ASSIST
220KEYCODE_BRIGHTNESS_DOWN
221KEYCODE_BRIGHTNESS_UP
222KEYCODE_MEDIA_AUDIO_TRACK
223KEYCODE_SLEEP
224KEYCODE_WAKEUP
225KEYCODE_PAIRING
226KEYCODE_MEDIA_TOP_MENU
227KEYCODE_11
228KEYCODE_12
229KEYCODE_LAST_CHANNEL
230KEYCODE_TV_DATA_SERVICE
231KEYCODE_VOICE_ASSIST
232KEYCODE_TV_RADIO_SERVICE
233KEYCODE_TV_TELETEXT
234KEYCODE_TV_NUMBER_ENTRY
235KEYCODE_TV_TERRESTRIAL_ANALOG
236KEYCODE_TV_TERRESTRIAL_DIGITAL
237KEYCODE_TV_SATELLITE
238KEYCODE_TV_SATELLITE_BS
239KEYCODE_TV_SATELLITE_CS
240KEYCODE_TV_SATELLITE_SERVICE
241KEYCODE_TV_NETWORK
242KEYCODE_TV_ANTENNA_CABLE
243KEYCODE_TV_INPUT_HDMI_1
244KEYCODE_TV_INPUT_HDMI_2
245KEYCODE_TV_INPUT_HDMI_3
246KEYCODE_TV_INPUT_HDMI_4
247KEYCODE_TV_INPUT_COMPOSITE_1
248KEYCODE_TV_INPUT_COMPOSITE_2
249KEYCODE_TV_INPUT_COMPONENT_1
250KEYCODE_TV_INPUT_COMPONENT_2
251KEYCODE_TV_INPUT_VGA_1
252KEYCODE_TV_AUDIO_DESCRIPTION
253KEYCODE_TV_AUDIO_DESCRIPTION_MIX_UP
254KEYCODE_TV_AUDIO_DESCRIPTION_MIX_DOWN
255KEYCODE_TV_ZOOM_MODE
256KEYCODE_TV_CONTENTS_MENU
257KEYCODE_TV_MEDIA_CONTEXT_MENU
258KEYCODE_TV_TIMER_PROGRAMMING
259KEYCODE_HELP
260KEYCODE_NAVIGATE_PREVIOUS
261KEYCODE_NAVIGATE_NEXT
262KEYCODE_NAVIGATE_IN
263KEYCODE_NAVIGATE_OUT
264KEYCODE_STEM_PRIMARY
265KEYCODE_STEM_1
266KEYCODE_STEM_2
267KEYCODE_STEM_3
268KEYCODE_DPAD_UP_LEFT
269KEYCODE_DPAD_DOWN_LEFT
270KEYCODE_DPAD_UP_RIGHT
271KEYCODE_DPAD_DOWN_RIGHT
272KEYCODE_MEDIA_SKIP_FORWARD
273KEYCODE_MEDIA_SKIP_BACKWARD
274KEYCODE_MEDIA_STEP_FORWARD
275KEYCODE_MEDIA_STEP_BACKWARD
276KEYCODE_SOFT_SLEEP
277KEYCODE_CUT
278KEYCODE_COPY
279KEYCODE_PASTE
280KEYCODE_SYSTEM_NAVIGATION_UP
281KEYCODE_SYSTEM_NAVIGATION_DOWN
282KEYCODE_SYSTEM_NAVIGATION_LEFT
283KEYCODE_SYSTEM_NAVIGATION_RIGHT
284KEYCODE_ALL_APPS
285KEYCODE_REFRESH
286KEYCODE_THUMBS_UP
287KEYCODE_THUMBS_DOWN
288KEYCODE_PROFILE_SWITCH
289KEYCODE_VIDEO_APP_1
290KEYCODE_VIDEO_APP_2
291KEYCODE_VIDEO_APP_3
292KEYCODE_VIDEO_APP_4
293KEYCODE_VIDEO_APP_5
294KEYCODE_VIDEO_APP_6
295KEYCODE_VIDEO_APP_7
296KEYCODE_VIDEO_APP_8
297KEYCODE_FEATURED_APP_1
298KEYCODE_FEATURED_APP_2
299KEYCODE_FEATURED_APP_3
300KEYCODE_FEATURED_APP_4
301KEYCODE_DEMO_APP_1
302KEYCODE_DEMO_APP_2
303KEYCODE_DEMO_APP_3
304KEYCODE_DEMO_APP_4