verisure

A module for reading and changing status of Verisure devices.

Usage no npm install needed!

<script type="module">
  import verisure from 'https://cdn.skypack.dev/verisure';
</script>

README

node-verisure

GitHub Actions badge

A module for reading and changing status of Verisure devices.

Legal Disclaimer

This software is not affiliated with Verisure Holding AB and the developers take no legal responsibility for the functionality or security of your alarms and devices.

Installation

$ npm install verisure --save

Usage

const Verisure = require('verisure');

const verisure = new Verisure('my@email.com', 'mysecretpassword');

verisure.getToken()
  .then(() => verisure.getInstallations())
  .then(installations => installations[0].getOverview())
  .then((overview) => {
    console.log('OVERVIEW:', overview);
  })
  .catch((error) => {
    console.error(error);
  });

Multi-factor authentication

For users with MFA enabled, you need to invoke getToken twice. First without arguments, second with the one-time code.

const verisure = new Verisure(email, password);

await verisure.getToken();

console.log('One-time code sent.');

await verisure.getToken(code);

console.log(verisure.getCookie('vid'));

Once you retrieve the vid cookie, this can be used to make authenticated requests.

const verisure = new Verisure('my@email.com', null, ['vid=myTopSecretToken']);

const installations = await verisure.getInstallations();