1.0.2 • Published 7 years ago
homebridge-verisure-ts v1.0.2
homebridge-verisure
This is a plugin for homebridge. It's a working implementation for several Verisure devices:
- ALARM - Arm/Disarm the alarm
- DOORLOCK - Yale Doorman Lock/Unlock
- HUMIDITY1 - Temperature
- SIREN1 - Temperature
- SMARTCAMERA1 - Temperature
- SMARTPLUG - State, on, off
- SMOKE2 - Temperature
- VOICEBOX1 - Temperature
Installation
npm install -g homebridge-verisure
Now you can update your configuration file to enable the plugin, see sample snippet below.
Configuration
As part of your configuration, add an object with your Verisure credentials to your array (list) of enabled platform plugins.
"platforms": [
{
"platform" : "verisure",
"name" : "Verisure",
"email": "your@email.com",
"password": "yourT0p5ecre7Passw0rd",
"ignore_alarms": ["00000000000"], // alarm serial no
"alarmcode": "0000", // remove or set to false to disable alarm integration
"doorcode": "000000"
}
]
Building
Before building you need to install the project dependencies. Yarn is recommended over npm to get fully reproducible builds with correct version for all dependencies. The yarn.lock
file contains the version hashes. Run yarn install
.
Building the project from TypeScript is as easy as yarn run build
. That will use the local version of tsc
to transpile TypeScript to commonJS.