Hello,
can someone publish a Plugin?
-
Control your Samsung TV
-
@temp Thanks for the hint, i will look into this
pimatic-google-calendar | pimatic-wmi | pimatic-snmp | pimatic-wakeonlan |
Like my work? Then consider a donation
Follow me: www.thorstenreichelt.de -
@temp This library does not work with the newer Samsung TVs (2016 models)
EDIT: I have done a first POC implementation using the library: pimatic-samsung-tv@0.9.0
Currently the implementation only provides for a presence sensor. This will only work with older Samsung TVs (before 2016). The library “samsung-remote” does not appear to be well mantained as there are some pull request pending since 10 months. Some work will also be required to integrate the new control API."It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
Hi @mwittig Yesterday I implemented an action provider as a plugin wrapper around the library, It works, remaining bit is to correctly promisify the callback function so a promise gets returned to the framework. Shall I hand over the code so you can integrate into yours?
"Screw the captain. It's the engineer running the ship!"
pimatic-telegram, pimatic-tts, pimatic-woox, pimatic-lg-smart-tv, pimatic-spotify, pimatic-wakeuplight and some not-announced plugins -
@Dan This’ll be great. I am happy to integrate this.
I am also working on an extension of the libarry to make it usable with new Samsung TV models
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
@mwittig great ! I can do a pull request on github (need to create a repo first, or simply email you the file as it is a limited code base anyway). Let me know what you prefer
Update: I have pushed to github, pull request is ready
Dan
"Screw the captain. It's the engineer running the ship!"
pimatic-telegram, pimatic-tts, pimatic-woox, pimatic-lg-smart-tv, pimatic-spotify, pimatic-wakeuplight and some not-announced plugins -
@Dan Excellent. I’ll look into this asap
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
@mwittig See https://github.com/aap82/pimatic-samsung-tv-2016.
This plugin works with my KS8000 to turn the television on and off. I’m not sure if it’s a good idea to combine this with your plugin, as they may not play nice with each other. Perhaps a device config option to denote model-year to determine protocol method to use.
-
#IP Address of TV tvip = "192.168.178.7" #IP Address of TV myip = "192.168.178.14" #Used for the access control/validation, but not after that AFAIK mymac = "b8:27:eb:b1:6c:7c" #What the iPhone app reports appstring = "iphone..iapp.samsung" #Might need changing to match your TV type tvappstring = "iphone.UE40D6500.iapp.samsung" #What gets reported when it asks for permission remotename = "Python Samsung Remote"
I have some questions concerning the config.
What’s the difference between “tvip” and “myip”, both are commented as “#IP Address of TV”?
Is “mymac” the mac address of the tv and is it optional?
Are “appstring” and “tvappstring” optional or can I just use the same parameters customized to my tv and what are they used for?Thanks in advance and keep on writing such good scripts, they make pimatic even better than it is anyway.
Martin -
Hi,
“myip” ist the pimatic “ip”, “mymac” is the pimatic “mac” and i have "tvappstring = “iphone.UE55D7000.iapp.samsung” write in the file.my example:
#IP Address of TV tvip = "192.168.2.50" #IP Address of Raspi myip = "192.168.2.8" #Used for the access control/validation, but not after that AFAIK mymac = "b8:27:eb:38:b2:5a" #What the iPhone app reports appstring = "iphone..iapp.samsung" #Might need changing to match your TV type tvappstring = "iphone.UE55D7000.iapp.samsung" #What gets reported when it asks for permission remotename = "Python Samsung Remote"
Pimatic, my hobby.
-
@jens said in Control your Samsung TV:
Hi,
“myip” ist the pimatic “ip”, “mymac” is the pimatic “mac” and i have "tvappstring = “iphone.UE55D7000.iapp.samsung” write in the file.Thank you, now I can test it.
Best wishes, Martin
Edit: Doesn’t work for my H-Series TV, seems that the port has shifted to 8001 and the protocoll has changed.
-
Did you already try the Samsung TV plugins?
https://pimatic.org/plugins/pimatic-samsung-tv/
https://pimatic.org/plugins/pimatic-samsung-tv-2016/pimatic v0.9 has been released!
Support Pimatic and get some free stickers
Like us on Facebookmake it so !
-
@leader21 said in Control your Samsung TV:
Did you already try the Samsung TV plugins?
https://pimatic.org/plugins/pimatic-samsung-tv/
https://pimatic.org/plugins/pimatic-samsung-tv-2016/Hi,
yes, I installed the Samsung TV Plugin, but I could not find any documentation how to configure a device after the plugin was activated and configured.
I looked into the coffee script for the device, but there it seems that just the presence of the tv can be configured. But I want to send Keys to the tv, at least the most used ones. -
try using: send samsungTV “[IP] <command>” as a rule action. IP is optional. Below a list of Samsung TV commands, although not all may work depending on year and model:
KEY_MENU KEY_UP KEY_DOWN KEY_LEFT KEY_RIGHT KEY_3 KEY_VOLUP KEY_4 KEY_5 KEY_6 KEY_VOLDOWN KEY_7 KEY_8 KEY_9 KEY_MUTE KEY_CHDOWN KEY_0 KEY_CHUP KEY_PRECH KEY_GREEN KEY_YELLOW KEY_CYAN KEY_ADDDEL KEY_SOURCE KEY_INFO KEY_PIP_ONOFF KEY_PIP_SWAP KEY_PLUS100 KEY_CAPTION KEY_PMODE KEY_TTX_MIX KEY_TV KEY_PICTURE_SIZE KEY_AD KEY_PIP_SIZE KEY_MAGIC_CHANNEL KEY_PIP_SCAN KEY_PIP_CHUP KEY_PIP_CHDOWN KEY_DEVICE_CONNECT KEY_HELP KEY_ANTENA KEY_CONVERGENCE KEY_11 KEY_12 KEY_AUTO_PROGRAM KEY_FACTORY KEY_3SPEED KEY_RSURF KEY_ASPECT KEY_TOPMENU KEY_GAME KEY_QUICK_REPLAY KEY_STILL_PICTURE KEY_DTV KEY_FAVCH KEY_REWIND KEY_STOP KEY_PLAY KEY_FF KEY_REC KEY_PAUSE KEY_TOOLS KEY_INSTANT_REPLAY KEY_LINK KEY_FF_ KEY_GUIDE KEY_REWIND_ KEY_ANGLE KEY_RESERVED1 KEY_ZOOM1 KEY_PROGRAM KEY_BOOKMARK KEY_DISC_MENU KEY_PRINT KEY_RETURN KEY_SUB_TITLE KEY_CLEAR KEY_VCHIP KEY_REPEAT KEY_DOOR KEY_OPEN KEY_WHEEL_LEFT KEY_POWER KEY_SLEEP KEY_2 KEY_DMA KEY_TURBO KEY_1 KEY_FM_RADIO KEY_DVR_MENU KEY_MTS KEY_PCMODE KEY_TTX_SUBFACE KEY_CH_LIST KEY_RED KEY_DNIe KEY_SRS KEY_CONVERT_AUDIO_MAINSUB KEY_MDC KEY_SEFFECT KEY_DVR KEY_DTV_SIGNAL KEY_LIVE KEY_PERPECT_FOCUS KEY_HOME KEY_ESAVING KEY_WHEEL_RIGHT KEY_CONTENTS KEY_VCR_MODE KEY_CATV_MODE KEY_DSS_MODE KEY_TV_MODE KEY_DVD_MODE KEY_STB_MODE KEY_CALLER_ID KEY_SCALE KEY_ZOOM_MOVE KEY_CLOCK_DISPLAY KEY_AV1 KEY_SVIDEO1 KEY_COMPONENT1 KEY_SETUP_CLOCK_TIMER KEY_COMPONENT2 KEY_MAGIC_BRIGHT KEY_DVI KEY_HDMI KEY_W_LINK KEY_DTV_LINK KEY_APP_LIST KEY_BACK_MHP KEY_ALT_MHP KEY_DNSe KEY_RSS KEY_ENTERTAINMENT KEY_ID_INPUT KEY_ID_SETUP KEY_ANYNET KEY_POWEROFF KEY_POWERON KEY_ANYVIEW KEY_MS KEY_MORE KEY_PANNEL_POWER KEY_PANNEL_CHUP KEY_PANNEL_CHDOWN KEY_PANNEL_VOLUP KEY_PANNEL_VOLDOW KEY_PANNEL_ENTER KEY_PANNEL_MENU KEY_PANNEL_SOURCE KEY_AV2 KEY_AV3 KEY_SVIDEO2 KEY_SVIDEO3 KEY_ZOOM2 KEY_PANORAMA KEY_4_3 KEY_16_9 KEY_DYNAMIC KEY_STANDARD KEY_MOVIE1 KEY_CUSTOM KEY_AUTO_ARC_RESET KEY_AUTO_ARC_LNA_ON KEY_AUTO_ARC_LNA_OFF KEY_AUTO_ARC_ANYNET_MODE_OK KEY_AUTO_ARC_ANYNET_AUTO_START KEY_AUTO_FORMAT KEY_DNET KEY_HDMI1 KEY_AUTO_ARC_CAPTION_ON KEY_AUTO_ARC_CAPTION_OFF KEY_AUTO_ARC_PIP_DOUBLE KEY_AUTO_ARC_PIP_LARGE KEY_AUTO_ARC_PIP_SMALL KEY_AUTO_ARC_PIP_WIDE KEY_AUTO_ARC_PIP_LEFT_TOP KEY_AUTO_ARC_PIP_RIGHT_TOP KEY_AUTO_ARC_PIP_LEFT_BOTTOM KEY_AUTO_ARC_PIP_RIGHT_BOTTOM KEY_AUTO_ARC_PIP_CH_CHANGE KEY_AUTO_ARC_AUTOCOLOR_SUCCESS KEY_AUTO_ARC_AUTOCOLOR_FAIL KEY_AUTO_ARC_C_FORCE_AGING KEY_AUTO_ARC_USBJACK_INSPECT KEY_AUTO_ARC_JACK_IDENT KEY_NINE_SEPERATE KEY_ZOOM_IN KEY_ZOOM_OUT KEY_MIC KEY_HDMI2 KEY_HDMI3 KEY_AUTO_ARC_CAPTION_KOR KEY_AUTO_ARC_CAPTION_ENG KEY_AUTO_ARC_PIP_SOURCE_CHANGE KEY_HDMI4 KEY_AUTO_ARC_ANTENNA_AIR KEY_AUTO_ARC_ANTENNA_CABLE KEY_AUTO_ARC_ANTENNA_SATELLITE 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
"Screw the captain. It's the engineer running the ship!"
pimatic-telegram, pimatic-tts, pimatic-woox, pimatic-lg-smart-tv, pimatic-spotify, pimatic-wakeuplight and some not-announced plugins -
So I can’t figure out how to use the two Samsung TV plugins to control my TV. No commands appear to be recognized in pimatic, but in the my search I found some brand new development in the new Samsung TV encrypted remote protocol.
It is made in node js, so I’m thinking if the right developer looks into it, then we can have a brand new Samsung TV remote plugin that even works with the new models and which can send almost all, if not all buttons to the TV.
https://github.com/tdudek/samsung-remote-models-2014-and-newer
-
I wrote the 2016 version of the plugin. And at the time I wrote It, i did say this in the README:
While it may be possible to send additional keys beyond KEY_POWER, I have not tried others. I’m happy to help anyone having issues with this version of the plugin, however, I have no interest in expanding it’s capabilities. I created this for the sole purpose of turning on and off my TV via pimatic.
That said, @simonbove, you’re right there have been some VERY new developments, so I may reconsider. I’m having a look at the lib now, and will (maybe) share thoughts later.
-
I think we have basic support for the newer Samsung TVs as part of pimatic. Not, however, these models can only be controller when TV is ON. You can power them on via a remote command as far as I can tell.
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
@mwittig @simonbove i created a dev branch that allows you to send other keys using rules or an api action. if anyone’s willing to test, it can be found here: https://github.com/aap82/pimatic-samsung-tv-2016/tree/development
-
@amit-patel Hi again.
Thanks for looking into it. I have tried to install the development branch and I am getting “Unexpected Token” as error in Pimatic. Furthermore I can not figure out how to set the command in the rules, nothing I have come up with works according to Pimatic. Can you give me a hint to what the plugin understands as a command?
-
@simonbove can you please post the log for the error?
The plugin needs to loaded for rules to work (which may not have happened because of the error) , and a device needs to be added.
When thats done, rule action like this should be available.
send samsung_tv_command command to device id or device name
That said, i havent soent anytime testing it yet, so it might not work at all