[hexabridge] port to libmysmartgrid (unfinished)