This is a Homebridge plugin for the iBricks system. When activated the iBricks server is added as a security system accessory to HomeKit and the plugin tracks the presence status of the system. With this plugin you can switch between 'home' (recording mode) and 'away' (play mode) states.
The only configuration parameter is the URL of the iBricks server, e.g. http://192.168.1.10
You must have Node.js 18 or later installed. This plugin uses Nix flakes to provide the necessary development tools.
Using a terminal, navigate to the project folder and run this command to install the development dependencies:
$ npm install
TypeScript needs to be compiled into JavaScript before it can run. The following command will compile the contents of your src
directory and put the resulting code into the dist
folder.
$ npm run build
$ npm run test
When you are ready to publish your plugin to npm, make sure you have removed the private
attribute from the package.json
file then run:
$ npm publish --access=public
You can publish beta versions of your plugin for other users to test before you release it to everyone.
# create a new pre-release version (eg. 2.1.0-beta.1)
$ npm version prepatch --preid beta
# publish to @beta
$ npm publish --tag=beta --access=public