ThisisamodifiedAndroidTVkeyboardwhichalsohostsaRESTAPIlisteningforcertaincommandsfromnetwork.
ThemainpurposeofthisapplicationistoenabledirectcommandsfromsmarthomedevicestoyourAndroidTV.Supportedcommandsarelistedbelow.
ThereisalsoareadygroovydevicehandlerforeasyintegrationwithSamsungSmartthingsplatformatmygithubrepository:"ilker-aktuna/androidTV_keyboard_withRestAPI"
UsageforSmartthings:
1.installthiskeyboardonyourAndroidTVandselectitastheactivekeyboardfromsettings.(input/keyboard)
2.createadevicehandleronyourSmartthingsplatformwiththegroovycodefrommygithubrepository.
3.createadevicewiththenewdevicetype(createdinstep2)
4.set"DeviceNetworkId"inhexformat(example"c0a8fe27:1388"for"192.168.254.39:5000")
5.setIPaddressofyournewdevice(IPaddressofAndroidTVdevice)
6.setPORTofyournewdeviceas5000
7.saveyourdeviceandusethroughSmartthings
Usageforanyotherenvironment:
1.installthiskeyboardonyourAndroidTVandselectitastheactivekeyboardfromsettings.(input/keyboard)
2.youmaycallfollowingcommandsusinganyHTTPclientwiththisformat:
http://IP_ADDRESS_OF_ANDROID_TV:5000/[command]
SupportedCommands:
/sleep
/home
/back
/search
/up
/down
/left
/right
/center
/volumeup
/volumedown
/rewind
/ff
/playpause
/previous
/next