Skip to content
This repository has been archived by the owner on Nov 22, 2023. It is now read-only.
/ homematic-js-api Public archive

🏠 lightweight Javascript interface for Homematic Remote Script API (Rega)

License

Notifications You must be signed in to change notification settings

firsttris/homematic-js-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

homematic-js-api

🏠 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"

License

See the LICENSE file for license rights and limitations (MIT).

About

🏠 lightweight Javascript interface for Homematic Remote Script API (Rega)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages