Help - .items & .rules file for Samsung Smart TV

Hi,

I have been trying to get the binding working with my Samsung TV, would anyone happen to have the items file and rules with the config that is needed to get the power on/off, volume up/down, channel change etc working?

So far i can mute and turn the TV Off

I’m still trying to get my head around this coding, so hope someone already has a working set they can share.

if you have it working with Alexa even better :slight_smile:

Thanks in advance.

Regards
Pedro

samsungtv.things

samsungtv:tv:room [hostName="192.168.205.3", port=55000, refreshInterval=1000]

samsungtv.items

String tv_key_code	{channel="samsungtv:tv:room:keyCode"}

samsungtv.sitemap

sitemap home label="TV" 
{
    Frame {
		Text item=tv_power {
			Frame {
				Switch item=tv_key_code label="Volume" icon="soundvolume" mappings=[KEY_VOLDOWN="-",KEY_VOLUP="+"]
				Switch item=tv_key_code label="Mute" icon="soundvolume_mute" mappings=[KEY_MUTE="ON"] visibility=[tv_mute==OFF]
				Switch item=tv_key_code label="Mute" icon="soundvolume_mute" mappings=[KEY_MUTE="OFF"] visibility=[tv_mute==ON]
				Switch item=tv_key_code label="Ch" icon="settings" mappings=[KEY_CHDOWN="-",KEY_CHUP="+"]
				Switch item=tv_key_code label="Power" mappings=[KEY_POWEROFF="OFF"]
			}
		}
    }

}

I can not turn on my TV on the network.

Hi Pedro,

as far as I know, you cannot turn on your tv by the samsungtv-binding. But there is a solution to turn the TV ON.
With openHAB1 it worked well for me. (My oh-server (RPi3) is connected to my tv by hdmi-cable.)

With openHAB2 I tried it once, but I’ve had problems with the installation of the CEC client. So I decided to try again later, but had no time yet.

Thanks Olymp…

How do you get Alexa to trigger the change?

Thanks anfaenger, at this stage i’d be happy if i can use Alexa to change channel, change volume, etc… :slight_smile: but i’ll definatly be looking into this as well thanks.

I do not use Alexa, I will say more - I do not know why this is :slight_smile:
I use the BasicUI and Android application.

Hi All,

Does anyone know how the KeyCode works? I ideally would like to press the button for Source 1, 2 etc on the HabPanel and it changes. Do I achieve this with the keyCode button section? - If so what would the string be?

I have “String Top_TV_KeyCode { channel=“samsungtv:tv:TV_Top:keyCode” }” in my items, and found the source keycode is 10072

My keycode-definition in item-file:

String SamsungTV_UE55F7090_Wohnen_KeyCode (gSamsungTvWohnen) {channel="samsungtv:tv:0b532b81_00be_1000_aa89_5cf6dc787349:keyCode"} //The key code channel emulates the infrared remote controller and allows to send virtual button presses. 

In my sitemap file I created a separate switch for each KeyCode.
So I could check each KeyCode, if it’s working.
In my case, only a few did.
My sitemap-file with all KeyCodes I know:

Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_0="KEY_0"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_1="KEY_1"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_2="KEY_2"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_3="KEY_3"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_4="KEY_4"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_5="KEY_5"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_6="KEY_6"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_7="KEY_7"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_8="KEY_8"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_9="KEY_9"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_11="KEY_11"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_12="KEY_12"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_3SPEED="KEY_3SPEED"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_4_3="KEY_4_3"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_16_9="KEY_16_9"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_AD="KEY_AD"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_ADDDEL="KEY_ADDDEL"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_ALT_MHP="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_ANGLE="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_ANTENA="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_ANYNET="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_ANYVIEW="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_APP_LIST="KEY_APP_LIST"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_ASPECT="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_AUTO_ARC_ANTENNA_AIR="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_AUTO_ARC_ANTENNA_CABLE="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_AUTO_ARC_ANTENNA_SATELLITE="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_AUTO_ARC_ANYNET_AUTO_START="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_AUTO_ARC_ANYNET_MODE_OK="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_AUTO_ARC_AUTOCOLOR_FAIL="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_AUTO_ARC_AUTOCOLOR_SUCCESS="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_AUTO_ARC_CAPTION_ENG="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_AUTO_ARC_CAPTION_KOR="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_AUTO_ARC_CAPTION_OFF="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_AUTO_ARC_CAPTION_ON="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_AUTO_ARC_C_FORCE_AGING="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_AUTO_ARC_JACK_IDENT="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_AUTO_ARC_LNA_OFF="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_AUTO_ARC_LNA_ON="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_AUTO_ARC_PIP_CH_CHANGE="KEY_AUTO_ARC_PIP_CH_CHANGE"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_AUTO_ARC_PIP_DOUBLE="KEY_AUTO_ARC_PIP_DOUBLE"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_AUTO_ARC_PIP_LARGE="KEY_AUTO_ARC_PIP_LARGE"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_AUTO_ARC_PIP_LEFT_BOTTOM="KEY_AUTO_ARC_PIP_LEFT_BOTTOM"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_AUTO_ARC_PIP_LEFT_TOP="KEY_AUTO_ARC_PIP_LEFT_TOP"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_AUTO_ARC_PIP_RIGHT_BOTTOM="KEY_AUTO_ARC_PIP_RIGHT_BOTTOM"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_AUTO_ARC_PIP_RIGHT_TOP="KEY_AUTO_ARC_PIP_RIGHT_TOP"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_AUTO_ARC_PIP_SMALL="KEY_AUTO_ARC_PIP_SMALL"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_AUTO_ARC_PIP_SOURCE_CHANGE="KEY_AUTO_ARC_PIP_SOURCE_CHANGE"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_AUTO_ARC_PIP_WIDE="KEY_AUTO_ARC_PIP_WIDE"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_AUTO_ARC_RESET="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_AUTO_ARC_USBJACK_INSPECT="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_AUTO_FORMAT="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_AUTO_PROGRAM="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_AV1="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_AV2="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_AV3="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_BACK_MHP="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_BOOKMARK="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_CALLER_ID="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_CAPTION="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_CATV_MODE="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_CHDOWN="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_CHUP="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_CH_LIST="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_CLEAR="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_CLOCK_DISPLAY="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_COMPONENT1="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_COMPONENT2="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_CONTENTS="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_CONVERGENCE="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_CONVERT_AUDIO_MAINSUB="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_CUSTOM="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_CYAN="KEY_CYAN"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_BLUE="KEY_BLUE"] //(KEY_CYAN)
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_DEVICE_CONNECT="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_DISC_MENU="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_DMA="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_DNET="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_DNIe="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_DNSe="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_DOOR="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_DOWN="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_DSS_MODE="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_DTV="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_DTV_LINK="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_DTV_SIGNAL="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_DVD_MODE="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_DVI="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_DVR="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_DVR_MENU="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_DYNAMIC="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_ENTER="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_ENTERTAINMENT="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_ESAVING="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_EXIT="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_EXT1="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_EXT2="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_EXT3="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_EXT4="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_EXT5="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_EXT6="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_EXT7="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_EXT8="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_EXT9="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_EXT10="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_EXT11="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_EXT12="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_EXT13="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_EXT14="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_EXT15="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_EXT16="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_EXT17="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_EXT18="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_EXT19="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_EXT20="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_EXT21="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_EXT22="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_EXT23="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_EXT24="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_EXT25="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_EXT26="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_EXT27="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_EXT28="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_EXT29="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_EXT30="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_EXT31="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_EXT32="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_EXT33="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_EXT34="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_EXT35="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_EXT36="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_EXT37="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_EXT38="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_EXT39="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_EXT40="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_EXT41="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_FACTORY="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_FAVCH="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_FF="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_FF_="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_FM_RADIO="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_GAME="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_GREEN="KEY_GREEN"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_GUIDE="KEY_GUIDE"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_HDMI="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_HDMI1="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_HDMI2="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_HDMI3="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_HDMI4="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_HELP="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_HOME="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_ID_INPUT="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_ID_SETUP="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_INFO="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_INSTANT_REPLAY="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_LEFT="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_LINK="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_LIVE="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_MAGIC_BRIGHT="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_MAGIC_CHANNEL="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_MDC="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_MENU="KEY_MENU"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_MIC="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_MORE="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_MOVIE1="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_MS="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_MTS="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_MUTE="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_NINE_SEPERATE="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_OPEN="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_PANNEL_CHDOWN="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_PANNEL_CHUP="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_PANNEL_ENTER="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_PANNEL_MENU="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_PANNEL_POWER="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_PANNEL_SOURCE="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_PANNEL_VOLDOW="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_PANNEL_VOLUP="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_PANORAMA="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_PAUSE="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_PCMODE="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_PERPECT_FOCUS="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_PICTURE_SIZE="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_PIP_CHDOWN="KEY_PIP_CHDOWN"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_PIP_CHUP="KEY_PIP_CHUP"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_PIP_ONOFF="KEY_PIP_ONOFF"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_PIP_SCAN="KEY_PIP_SCAN"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_PIP_SIZE="KEY_PIP_SIZE"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_PIP_SWAP="KEY_PIP_SWAP"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_PLAY="KEY_PLAY"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_PLUS100="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_PMODE="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_POWER="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_POWEROFF="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_POWERON="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_PRECH="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_PRINT="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_PROGRAM="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_QUICK_REPLAY="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_REC="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_RED="KEY_RED"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_REPEAT="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_RESERVED1="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_RETURN="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_REWIND="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_REWIND_="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_RIGHT="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_RSS="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_INTERNET="KEY_INTERNET"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_RSURF="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_SCALE="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_SEFFECT="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_SETUP_CLOCK_TIMER="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_SLEEP="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_SOUND_MODE="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_SOURCE="KEY_SOURCE"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_SRS="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_STANDARD="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_STB_MODE="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_STILL_PICTURE="KEY_STILL_PICTURE"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_STOP="KEY_STOP"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_SUB_TITLE="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_SVIDEO1="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_SVIDEO2="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_SVIDEO3="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_TOOLS="KEY_TOOLS"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_TOPMENU="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_TTX_MIX="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_TTX_SUBFACE="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_TURBO="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_TV="KEY_TV"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_TV_MODE="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_UP="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_VCHIP="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_VCR_MODE="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_VOLDOWN="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_VOLUP="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_WHEEL_LEFT="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_WHEEL_RIGHT="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_W_LINK="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_YELLOW="KEY_YELLOW"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_ZOOM1="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_ZOOM2="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_ZOOM_IN="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_ZOOM_MOVE="xxxxxxxx"]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_ZOOM_OUT="xxxxxxxx"]

To get what you’re looking for, you could try:

Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_SOURCE="KEY_SOURCE" // Call source menu]
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_TV="KEY_TV"] // Switch to source TV
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_HDMI="KEY_HDMI"] // Switch to source HDMI
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_HDMI1="KEY_HDMI1"] // Switch to source HDMI1
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_HDMI2="KEY_HDMI2"] // Switch to source HDMI2
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_HDMI3="KEY_HDMI3"] // Switch to source HDMI3
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_HDMI4="KEY_HDMI4"] // Switch to source HDMI4
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_AV1="KEY_AV1"] // Switch to source AV1
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_AV2="KEY_AV2"] // Switch to source AV2
Switch item=SamsungTV_UE55F7090_Wohnen_KeyCode mappings=[KEY_AV3="KEY_AV3"] // Switch to source AV3
1 Like

Hi!

I got my The Frame yesterday and now i am trying to get it working with oh2.5.
I created a things file and the items. The tv showes online in paperui but i cannot make any changes (power off or something else).
I activated the remote with external devices in the network settings of the tv

Hi everyone,

I would like to thanks @anfaenger for the KeyCodes and share my small config for my Samsung TV. Items are clear I guess, but sitemap could be interesting.

.sitemap

		Frame label="Samsung TV Control" {
			Text item=SamsungTV_Key_Code label="[%s]"
			Slider item=SamsungTV_Volume 			label="Lautstärke ändern" 		icon="soundvolume"
			Switch item=SamsungTV_Mute 				label="Stumm" 					icon="soundvolume_mute" mappings=[ON="Mute"] visibility=[SamsungTV_Mute==OFF]
			Switch item=SamsungTV_Mute 				label="Stumm" 					icon="soundvolume" 		mappings=[OFF="Unmute"] visibility=[SamsungTV_Mute==ON]
			Switch item=SamsungTVwol 				label="Ausschalten"										mappings=[ON="Einschalten"] visibility=[SamsungTV_Power==OFF]
			Switch item=SamsungTV_Power 			label="Ausschalten"										mappings=[OFF="Ausschalten"] visibility=[SamsungTV_Power==ON]
			Switch item=SamsungTV_Key_Code			label="[%s]"					icon="settings"			mappings=[KEY_HOME="Home",KEY_HDMI="HDMI",KEY_SOURCE="SOURCE"]
		}
		Frame label="Control"{
			Switch item=SamsungTV_Key_Code			label="← / Back / → []"			icon="movecontrol"		mappings=[KEY_LEFT="    ←    ",KEY_EXIT="    X    ",KEY_RIGHT="    →    "] 
			Switch item=SamsungTV_Key_Code			label="↑ / Enter / ↓ []"		icon="movecontrol"		mappings=[KEY_UP="    ↑    ",KEY_ENTER="    O    ",KEY_DOWN="    ↓    "]
			Switch item=SamsungTV_Key_Code			label=""						icon="cinema"			mappings=[KEY_PLAY="   ►   ", KEY_PAUSE="   ||   "]
		}

These are the useful Key_Codes I can use for my Samsung 55Q6F. Does someone has achieved to reach Netflix direct by Key_Code or are you using rules and combine several KEy_Codes in a chain?

1 Like