# Commands

Commands represents buttons from phisical remotes and Samsung API allows us to send these commands to the TV.

Example of sending a command

{"name": "Vol Up", "command": "KEY_VOLUP"}

Example of sending multiple commands

{"name": "Multiple commands", "command": "KEY_LEFT,KEY_RIGHT,KEY_UP"}

Example of sending a command multiple times. This will send the command KEY_VOLUP 5 times

{"name": "Vol Up", "command": "KEY_VOLUP*5"}

Example of holding a key for 5 seconds. The time is in seconds, to hold for 2 minutes you need to use 120s

{"name": "Vol Up", "command": "KEY_VOLUP*5s"}

# List of commands

Here you can find a list of commands that can be sent to TV. These commands are buttons that are found on phisical remote.

TIP

This is not an official list from Samsung and some of the keys may not work with your TV.

# Power Key

KEY_POWER
KEY_MENU
KEY_TOPMENU
KEY_TOOLS
KEY_HOME
KEY_HELP
KEY_CONTENTS
KEY_GUIDE
KEY_DISC_MENU
KEY_DVR_MENU

# Direction Keys

KEY_UP
KEY_DOWN
KEY_LEFT
KEY_RIGHT
KEY_ENTER
KEY_RETURN

# Number Keys

KEY_0
KEY_1
KEY_2
KEY_3
KEY_4
KEY_5
KEY_6
KEY_7
KEY_8
KEY_9
KEY_11
KEY_12

# Channel Keys

KEY_CHUP
KEY_CHDOWN
KEY_PRECH
KEY_FAVCH
KEY_CH_LIST
KEY_AUTO_PROGRAM
KEY_MAGIC_CHANNEL

# Volume Keys

KEY_VOLUP
KEY_VOLDOWN
KEY_MUTE

# Input Keys

KEY_SOURCE
KEY_HDMI
KEY_COMPONENT1
KEY_COMPONENT2
KEY_AV1
KEY_AV2
KEY_AV3
KEY_SVIDEO1
KEY_SVIDEO2
KEY_SVIDEO3
KEY_FM_RADIO
KEY_DVI
KEY_DVR
KEY_TV
KEY_ANTENA
KEY_DTV
KEY_AMBIENT

# Media Keys

KEY_REWIND
KEY_STOP
KEY_PLAY
KEY_FF
KEY_REC
KEY_PAUSE
KEY_LIVE
KEY_QUICK_REPLAY
KEY_STILL_PICTURE
KEY_INSTANT_REPLAY

# Extended Keys

KEY_EXT1
KEY_EXT2
KEY_E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