-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Samsung TV Binding
Documentation of the Samsung TV binding Bundle
Binding should be compatible with Samsung TV models which support Apple and Android remote applications.
For installation of the binding, please see Wiki page Bindings.
Note: New models (H-Series TV´s like e.g. UEH5570 ) use a different (encrypted) protocol; they are not yet supported by this binding.
First of all you need to introduce your Samsung TV's in the openhab.cfg file (in the folder '${openhab_home}/configurations').
######################## SAMSUNG TV Binding ############################################
# Host and port of the first TV to control
# samsungtv:<TVid1>.host=
# samsungtv:<TVid1>.port=55000
# Host and port of the second TV to control
# samsungtv:<TVid2>.host=
# samsungtv:<TVid2>.port=55000
<TVid1>
and <TVid2>
can be freely set to whatever name you want to give for a certain TV (e.g. "Livingroom" or "Bedroom"), thus could be looking like:
samsungtv:Livingroom
.host and .port specify IP address and port number for accessing your TV:
samsungtv:<TVid1>.host=<IP address of the TV>
samsungtv:<TVid1>.port=<TCP port address of the the TV; optional>
A working example for such configuration could look like:
######################## SAMSUNG TV Binding ############################################
# Host and port of the first TV to control
samsungtv:Livingroom.host=192.168.0.12
samsungtv:Livingroom.port=55000
# Host and port of the second TV to control
samsungtv:Bedroom.host=192.168.0.13
samsungtv:Bedroom.port=55000
During first connection attempt, TV ask to grant permission to OpenHAB application. If you have missed dialog, you can change permission options from TV's menu (e.g. Menu -> Network -> AllShare options). If you have any problems to control you TV by OpenHAB, you could verify connection by Samsung official iOS or Android remote control software.
In order to bind an item to the device, you need to provide configuration settings. The easiest way to do so is to add binding information in your item file (in the folder configurations/items`). The syntax of the binding configuration strings accepted is the following:
samsungtv="<openHAB-command>:<device-id>:<device-command>[,<openHAB-command>:<device-id>:<device-command>][,...]"
where parts in brackets [] signify an optional information.
The openHAB-command corresponds OpenHAB command.
The device-id corresponds device which is introduced in openhab.cfg.
The device-command corresponds TV command. See complite list below.
Examples, how to configure your items:
Number directChannel {samsungtv="1:Livingroom:KEY_1, 2:Livingroom:KEY_2, 3:Livingroom:KEY_3"}
Dimmer channel {samsungtv="INCREASE:Livingroom:KEY_CHUP, DECREASE:Livingroom:KEY_CHDOWN"}
Switch mute {samsungtv="ON:Livingroom:KEY_MUTE, OFF:Livingroom:KEY_MUTE"}
Rollershutter volume {samsungtv="UP:Livingroom:KEY_VOLUP, DOWN:Livingroom:KEY_VOLDOWN"}
Supported TV commands:
- KEY_0
- KEY_1
- KEY_2
- KEY_3
- KEY_4
- KEY_5
- KEY_6
- KEY_7
- KEY_8
- KEY_9
- KEY_11
- KEY_12
- KEY_3SPEED
- KEY_4_3
- KEY_16_9
- KEY_AD
- KEY_ADDDEL
- KEY_ALT_MHP
- KEY_ANGLE
- KEY_ANTENA
- KEY_ANYNET
- KEY_ANYVIEW
- KEY_APP_LIST
- KEY_ASPECT
- KEY_AUTO_ARC_ANTENNA_AIR
- KEY_AUTO_ARC_ANTENNA_CABLE
- KEY_AUTO_ARC_ANTENNA_SATELLITE
- KEY_AUTO_ARC_ANYNET_AUTO_START
- KEY_AUTO_ARC_ANYNET_MODE_OK
- KEY_AUTO_ARC_AUTOCOLOR_FAIL
- KEY_AUTO_ARC_AUTOCOLOR_SUCCESS
- KEY_AUTO_ARC_CAPTION_ENG
- KEY_AUTO_ARC_CAPTION_KOR
- KEY_AUTO_ARC_CAPTION_OFF
- KEY_AUTO_ARC_CAPTION_ON
- KEY_AUTO_ARC_C_FORCE_AGING
- KEY_AUTO_ARC_JACK_IDENT
- KEY_AUTO_ARC_LNA_OFF
- KEY_AUTO_ARC_LNA_ON
- KEY_AUTO_ARC_PIP_CH_CHANGE
- KEY_AUTO_ARC_PIP_DOUBLE
- KEY_AUTO_ARC_PIP_LARGE
- KEY_AUTO_ARC_PIP_LEFT_BOTTOM
- KEY_AUTO_ARC_PIP_LEFT_TOP
- KEY_AUTO_ARC_PIP_RIGHT_BOTTOM
- KEY_AUTO_ARC_PIP_RIGHT_TOP
- KEY_AUTO_ARC_PIP_SMALL
- KEY_AUTO_ARC_PIP_SOURCE_CHANGE
- KEY_AUTO_ARC_PIP_WIDE
- KEY_AUTO_ARC_RESET
- KEY_AUTO_ARC_USBJACK_INSPECT
- KEY_AUTO_FORMAT
- KEY_AUTO_PROGRAM
- KEY_AV1
- KEY_AV2
- KEY_AV3
- KEY_BACK_MHP
- KEY_BOOKMARK
- KEY_CALLER_ID
- KEY_CAPTION
- KEY_CATV_MODE
- KEY_CHDOWN
- KEY_CHUP
- KEY_CH_LIST
- KEY_CLEAR
- KEY_CLOCK_DISPLAY
- KEY_COMPONENT1
- KEY_COMPONENT2
- KEY_CONTENTS
- KEY_CONVERGENCE
- KEY_CONVERT_AUDIO_MAINSUB
- KEY_CUSTOM
- KEY_CYAN
- KEY_BLUE(KEY_CYAN)
- KEY_DEVICE_CONNECT
- KEY_DISC_MENU
- KEY_DMA
- KEY_DNET
- KEY_DNIe
- KEY_DNSe
- KEY_DOOR
- KEY_DOWN
- KEY_DSS_MODE
- KEY_DTV
- KEY_DTV_LINK
- KEY_DTV_SIGNAL
- KEY_DVD_MODE
- KEY_DVI
- KEY_DVR
- KEY_DVR_MENU
- KEY_DYNAMIC
- KEY_ENTER
- KEY_ENTERTAINMENT
- KEY_ESAVING
- KEY_EXIT
- KEY_EXT1
- KEY_EXT2
- KEY_EXT3
- KEY_EXT4
- KEY_EXT5
- KEY_EXT6
- KEY_EXT7
- KEY_EXT8
- KEY_EXT9
- KEY_EXT10
- KEY_EXT11
- KEY_EXT12
- KEY_EXT13
- KEY_EXT14
- KEY_EXT15
- KEY_EXT16
- KEY_EXT17
- KEY_EXT18
- KEY_EXT19
- KEY_EXT20
- KEY_EXT21
- KEY_EXT22
- KEY_EXT23
- KEY_EXT24
- KEY_EXT25
- KEY_EXT26
- KEY_EXT27
- KEY_EXT28
- KEY_EXT29
- KEY_EXT30
- KEY_EXT31
- KEY_EXT32
- KEY_EXT33
- KEY_EXT34
- KEY_EXT35
- KEY_EXT36
- KEY_EXT37
- KEY_EXT38
- KEY_EXT39
- KEY_EXT40
- KEY_EXT41
- KEY_FACTORY
- KEY_FAVCH
- KEY_FF
- KEY_FF_
- KEY_FM_RADIO
- KEY_GAME
- KEY_GREEN
- KEY_GUIDE
- KEY_HDMI
- KEY_HDMI1
- KEY_HDMI2
- KEY_HDMI3
- KEY_HDMI4
- KEY_HELP
- KEY_HOME
- KEY_ID_INPUT
- KEY_ID_SETUP
- KEY_INFO
- KEY_INSTANT_REPLAY
- KEY_LEFT
- KEY_LINK
- KEY_LIVE
- KEY_MAGIC_BRIGHT
- KEY_MAGIC_CHANNEL
- KEY_MDC
- KEY_MENU
- KEY_MIC
- KEY_MORE
- KEY_MOVIE1
- KEY_MS
- KEY_MTS
- KEY_MUTE
- KEY_NINE_SEPERATE
- KEY_OPEN
- KEY_PANNEL_CHDOWN
- KEY_PANNEL_CHUP
- KEY_PANNEL_ENTER
- KEY_PANNEL_MENU
- KEY_PANNEL_POWER
- KEY_PANNEL_SOURCE
- KEY_PANNEL_VOLDOW
- KEY_PANNEL_VOLUP
- KEY_PANORAMA
- KEY_PAUSE
- KEY_PCMODE
- KEY_PERPECT_FOCUS
- KEY_PICTURE_SIZE
- KEY_PIP_CHDOWN
- KEY_PIP_CHUP
- KEY_PIP_ONOFF
- KEY_PIP_SCAN
- KEY_PIP_SIZE
- KEY_PIP_SWAP
- KEY_PLAY
- KEY_PLUS100
- KEY_PMODE
- KEY_POWER
- KEY_POWEROFF
- KEY_POWERON
- KEY_PRECH
- KEY_PRINT
- KEY_PROGRAM
- KEY_QUICK_REPLAY
- KEY_REC
- KEY_RED
- KEY_REPEAT
- KEY_RESERVED1
- KEY_RETURN
- KEY_REWIND
- KEY_REWIND_
- KEY_RIGHT
- KEY_RSS
- KEY_INTERNET
- KEY_RSURF
- KEY_SCALE
- KEY_SEFFECT
- KEY_SETUP_CLOCK_TIMER
- KEY_SLEEP
- KEY_SOUND_MODE
- KEY_SOURCE
- KEY_SRS
- KEY_STANDARD
- KEY_STB_MODE
- KEY_STILL_PICTURE
- KEY_STOP
- KEY_SUB_TITLE
- KEY_SVIDEO1
- KEY_SVIDEO2
- KEY_SVIDEO3
- KEY_TOOLS
- KEY_TOPMENU
- KEY_TTX_MIX
- KEY_TTX_SUBFACE
- KEY_TURBO
- KEY_TV
- KEY_TV_MODE
- KEY_UP
- KEY_VCHIP
- KEY_VCR_MODE
- KEY_VOLDOWN
- KEY_VOLUP
- KEY_WHEEL_LEFT
- KEY_WHEEL_RIGHT
- KEY_W_LINK
- KEY_YELLOW
- KEY_ZOOM1
- KEY_ZOOM2
- KEY_ZOOM_IN
- KEY_ZOOM_MOVE
- KEY_ZOOM_OUT
The Binding can sent commands from openhab to Samsung TV but it does not signal any state changes issued by the Samsung TV remote. So creating a rule that triggers an action when the TV is switch on or off by the TV remote is not possible.
Additionally the KEY_POWERON does not switch the TV on. Tested on Samsung UE40ES5700, maybe other models are working.
ℹ Please find all documentation for openHAB 2 under http://docs.openhab.org.
The wiki pages here contain (outdated) documentation for the older openHAB 1.x version. Please be aware that a lot of core details changed with openHAB 2.0 and this wiki as well as all tutorials found for openHAB 1.x might be misleading. Check http://docs.openhab.org for more details and consult the community forum for all remaining questions.
- Classic UI
- iOS Client
- Android Client
- Windows Phone Client
- GreenT UI
- CometVisu
- Kodi
- Chrome Extension
- Alfred Workflow
- Cosm Persistence
- db4o Persistence
- Amazon DynamoDB Persistence
- Exec Persistence
- Google Calendar Presence Simulator
- InfluxDB Persistence
- JDBC Persistence
- JPA Persistence
- Logging Persistence
- mapdb Persistence
- MongoDB Persistence
- MQTT Persistence
- my.openHAB Persistence
- MySQL Persistence
- rrd4j Persistence
- Sen.Se Persistence
- SiteWhere Persistence
- AKM868 Binding
- AlarmDecoder Binding
- Anel Binding
- Arduino SmartHome Souliss Binding
- Asterisk Binding
- Astro Binding
- Autelis Pool Control Binding
- BenQ Projector Binding
- Bluetooth Binding
- Bticino Binding
- CalDAV Binding
- Chamberlain MyQ Binding
- Comfo Air Binding
- Config Admin Binding
- CUL Transport
- CUL Intertechno Binding
- CUPS Binding
- DAIKIN Binding
- Davis Binding
- DD-WRT Binding
- Denon Binding
- digitalSTROM Binding
- DIY on XBee Binding
- DMX512 Binding
- DSC Alarm Binding
- DSMR Binding
- eBUS Binding
- Ecobee Binding
- EDS OWSever Binding
- eKey Binding
- Energenie Binding
- EnOcean Binding
- Enphase Energy Binding
- Epson Projector Binding
- Exec Binding
- Expire Binding
- Fatek PLC Binding
- Freebox Binding
- Freeswitch Binding
- Frontier Silicon Radio Binding
- Fritz AHA Binding
- Fritz!Box Binding
- FritzBox-TR064-Binding
- FS20 Binding
- Garadget Binding
- Global Caché IR Binding
- GPIO Binding
- HAI/Leviton OmniLink Binding
- HDAnywhere Binding
- Heatmiser Binding
- Homematic / Homegear Binding
- Horizon Mediabox Binding
- HTTP Binding
- IEC 62056-21 Binding
- IHC / ELKO Binding
- ImperiHome Binding
- Insteon Hub Binding
- Insteon PLM Binding
- IPX800 Binding
- IRtrans Binding
- jointSPACE-Binding
- KM200 Binding
- KNX Binding
- Koubachi Binding
- LCN Binding
- LightwaveRF Binding
- Leviton/HAI Omnilink Binding
- Lg TV Binding
- Logitech Harmony Hub
- MailControl Binding
- MAX!Cube-Binding
- MAX! CUL Binding
- MCP23017 I/O Expander Binding
- MCP3424 ADC Binding
- MiLight Binding
- MiOS Binding
- Mochad X10 Binding
- Modbus Binding
- MPD Binding
- MQTT Binding
- MQTTitude binding
- MystromEcoPower Binding
- Neohub Binding
- Nest Binding
- Netatmo Binding
- Network Health Binding
- Network UPS Tools Binding
- Nibe Heatpump Binding
- Nikobus Binding
- Novelan/Luxtronic Heatpump Binding
- NTP Binding
- One-Wire Binding
- Onkyo AV Receiver Binding
- Open Energy Monitor Binding
- OpenPaths presence detection binding
- OpenSprinkler Binding
- OSGi Configuration Admin Binding
- Panasonic TV Binding
- panStamp Binding
- Philips Hue Binding
- Picnet Binding
- Piface Binding
- PiXtend Binding
- pilight Binding
- Pioneer-AVR-Binding
- Plex Binding
- Plugwise Binding
- PLCBus Binding
- PowerDog Local API Binding
- Powermax alarm Binding
- Primare Binding
- Pulseaudio Binding
- Raspberry Pi RC Switch Binding
- RFXCOM Binding
- RWE Smarthome Binding
- Sager WeatherCaster Binding
- Samsung AC Binding
- Samsung TV Binding
- Serial Binding
- Sallegra Binding
- Satel Alarm Binding
- Siemens Logo! Binding
- SimpleBinary Binding
- Sinthesi Sapp Binding
- Smarthomatic Binding
- Snmp Binding
- Somfy URTSI II Binding
- Sonance Binding
- Sonos Binding
- Souliss Binding
- Squeezebox Binding
- Stiebel Eltron Heatpump
- Swegon ventilation Binding
- System Info Binding
- TA CMI Binding
- TCP/UDP Binding
- Tellstick Binding
- TinkerForge Binding
- Tivo Binding
- UCProjects.eu Relay Board Binding
- UPB Binding
- VDR Binding
- Velleman-K8055-Binding
- Wago Binding
- Wake-on-LAN Binding
- Waterkotte EcoTouch Heatpump Binding
- Weather Binding
- Wemo Binding
- Withings Binding
- XBMC Binding
- xPL Binding
- Yamahareceiver Binding
- Zibase Binding
- Z-Wave Binding
- Asterisk
- DoorBird
- FIND
- Foscam IP Cameras
- LG Hombot
- Worx Landroid
- Heatmiser PRT Thermostat
- Google Calendar
- Linux Media Players
- Osram Lightify
- Rainforest EAGLE Energy Access Gateway
- Roku Integration
- ROS Robot Operating System
- Slack
- Telldus Tellstick
- Zoneminder
- Wink Hub (rooted)
- Wink Monitoring
- openHAB Cloud Connector
- Google Calendar Scheduler
- Transformations
- XSLT
- JSON
- REST-API
- Security
- Service Discovery
- Voice Control
- BritishGasHive-Using-Ruby
- Dropbox Bundle
A good source of inspiration and tips from users gathered over the years. Be aware that things may have changed since they were written and some examples might not work correctly.
Please update the wiki if you do come across any out of date information.
- Rollershutter Bindings
- Squeezebox
- WAC Binding
- WebSolarLog
- Alarm Clock
- Convert Fahrenheit to Celsius
- The mother of all lighting rules
- Reusable Rules via Functions
- Combining different Items
- Items, Rules and more Examples of a SmartHome
- Google Map
- Controlling openHAB with Android
- Usecase examples
- B-Control Manager
- Spell checking for foreign languages
- Flic via Tasker
- Chromecast via castnow
- Speedtest.net integration