creating a basic module to poll verisure api to be able to trigger home automation based on alarm status changes
Usage:
var config = {
username: '[email protected]',
password: 'yourverisurepassword'
};
var verisureApi = require('./verisure-api').setup( config );
// alarm state changes
verisureApi.on( 'alarmChange', log );
// climate measurement changes
verisureApi.on( 'climateChange', log );
function log ( data ) {
console.log( data );
}