A control server for G-Homa Wifi plugs written in node.
Usage example
var ghoma = require('ghoma');
ghoma.onNew = function(ghoma) {
console.log('Registerd ' + ghoma.remoteAddress+" "+ghoma.fullMac.toString('hex'));
ghoma.on();
}
ghoma.onStatusChange = function(ghoma) {
console.log('New state of ' + ghoma.remoteAddress+' is '+ghoma.state+' triggered '+ghoma.triggered);
}
ghoma.onClose = function(ghoma) {
console.log('Closed ' + ghoma.remoteAddress);
}
ghoma.startServer(4500);
Further information
The network protocol was deciphered by others - full credits go to them.
See
FHEM Wiki Page (german)
Full disclosure (german)
Producer website (german)