By using this, first step you need to install Node.js after that type "npm install smarthomecontrol" then go to https://netpie.io/ to get APPID, APPKEY, APPSECRET, then let do follow this example
var Smarthome = require("smarthomecontrol");
const APPID = "APPID";
const KEY = "APPKEY";
const SECRET = "APPSECRET";
const ALIAS = "ALIAS";
You can get ALIAS from SmartHomeControl on Google Play Store https://play.google.com/store/apps/details?id=com.tanomsup.mac.smarthomecontrol
Smarthome.connect(APPID, KEY, SECRET, ALIAS);
Smarthome.sendMessage("reciever", "message");
Smarthome.sendMessage("reciever", "alert:message");
More info go to https://netpie.io/getstarted
If you have a question or report bug send email to mactanomsup@gmail.com