LG TV Controller convert from mySensor

Is it possible to rewrite this script from https://forum.mysensors.org/topic/2965/lg-tv-controllerto work with this plugin? Im no programmer so I hope for some help on this. maybe someone else find it useful:)
Software Support and Home Automation Forum
https://forums.indigodomo.com/