1.0.9 • Published 8 years ago

homematic-js-api v1.0.9

Weekly downloads
1
License
ISC
Repository
github
Last release
8 years ago

#homematic-js-api :house: lightweight Javascript interface for Homematic Remote Script API (Rega)

npm version

npm install homematic-js-api

###Basic Usage

const homematic = new (require('homematic-js-api'))('20.1.0.50', "BidCos-RF.");
homematic.setValue("LEQ123456:1", "LEVEL", "0.3", (error, response) => {
});
homematic.getValue("LEQ123456:1", "LEVEL", (error,response) => {
});

###Tests Find more examples in "test" directory.

Enter you homematic server connection in package.json, and run some tests!

  "homematic": {
    "host": "192.168.0.10",
    "devices": {
      "bedroomDimLight": "LEQ123456:1",
      "keymatic": "KEQ123456:1"
    }
  }

run a single test from commandline with:

mocha test/dimmer.spec.js -g "getValue should return 0.000000"
1.0.9

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago