you mean to control the Samsung TV?
here is an example:
HABPanel Custom Widget:

Widget Settings

SamsungTV.items
/* Samsung TV Binding */
String TV11_Key_C "TV11 Keycode" <switch> (gSamsung) {channel="samsungtv:tv:0d1cef00_00dc_1000_8d3a_5056bf08cbbf:keyCode"}
The capabilities of OH are limitless
You could even design the entire Samsung TV remote control in HABPanel if you wanted to.