Okay I have now tested it on my TV at home.
It is working, and I have added a few extra keys to the plugin which was missing. For example KEY_PAUSE and KEY_PLAY.
But the plugin is giving some errors, although it is working.
I’m getting the emit error as above.
Further more I’m getting below errors when using the keys, but the TV is receiving the commands and it is working.
2018-02-24 20:24:06error [pimatic]: rule pause-samsung-tv-2 error executing an action: Array.isArray result
20:24:04error [pimatic]: rule play-samsung-tv error executing an action: Array.isArray result