Interact with Fibaro Home Center API
Instantiate a new client :
var Fibaro = require('fibaro-api');
var fibaro = new Fibaro('xxx.xxx.xxx.xxx', 'username', 'password');
Alternatively, to attempt auto discovery :
Fibaro.discover(function(info) {
var fibaro = new Fibaro(info.ip, 'username', 'password');
});
Make your calls :
fibaro.call(action, params, callback);
There is some shortcuts too :
I will add shortcuts as needed, don't hesitate to add yours and send me a pull request. :-)