# fibaro-api

> Interact with Fibaro Home Center API

Latest version **0.1.1** (published 2014-10-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install fibaro-api
pnpm add fibaro-api
yarn add fibaro-api
bun add fibaro-api
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2014-10-02 |
| First published | 2013-11-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 19 |
| Author | Leeroy Brun |
| Maintainers | leeroy |
| Keywords | fibaro, api |

## Links

- npm: https://www.npmjs.com/package/fibaro-api
- Repository: https://github.com/leeroybrun/node-fibaro-api
- Issues: https://github.com/leeroybrun/node-fibaro-api/issues
- npm.io page: https://npm.io/package/fibaro-api

## Dependencies (2)

- [async](https://npm.io/package/async.md) *
- [request](https://npm.io/package/request.md) *

## Recent versions

- 0.1.1 (latest) — 2014-10-02
- 0.1.0 — 2013-11-12

## README

node-fibaro-api
===========

Interact with Fibaro Home Center API

## How it works

Instantiate a new client :
```javascript
var Fibaro = require('fibaro-api');
var fibaro = new Fibaro('xxx.xxx.xxx.xxx', 'username', 'password');
```

Alternatively, to attempt auto discovery :
```javascript
Fibaro.discover(function(info) {
    var fibaro = new Fibaro(info.ip, 'username', 'password');
});
```

Make your calls :

```javascript
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](https://d2weczhvl823v0.cloudfront.net/leeroybrun/node-fibaro-api/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

---
_Source: https://npm.io/package/fibaro-api · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
