Skip to content

leeroybrun/node-fibaro-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-fibaro-api

Interact with Fibaro Home Center API

How it works

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);

Shortcuts

There is some shortcuts too :

fibaro.api.devices.list(callback)

fibaro.api.devices.get(deviceId, callback)

fibaro.api.devices.turnOn(deviceId, callback)

fibaro.api.devices.turnOff(deviceId, callback)

fibaro.api.devices.toggleValue(deviceId, callback)

I will add shortcuts as needed, don't hesitate to add yours and send me a pull request. :-)

Bitdeli Badge

About

Interact with Fibaro Home Center API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published