PHP library to easily interface with the Verisure API
Requirements : PHP >= 5.6 && cURL extension for PHP
apt-get install git php5 php5-curl && git clone https://github.com/daweedm/php-verisure
- Switch on/off motion detector on smart cams
- Switch on/off smartplugs
<?php
require_once('php-verisure/AutoLoader.php');
$verisure = new Verisure\VInterface("YOUR_ACCOUNT_EMAIL", "YOUR_ACCOUNT_PASSWORD");
$verisure->login();
$verisure->init();
$verisure->setCameraMotionDetectorState("XXXX YYYY", Verisure\SecuritasK::OFF); // Your smartcam serial number
?>
<?php
require_once('php-verisure/AutoLoader.php');
$verisure = new Verisure\VInterface("YOUR_ACCOUNT_EMAIL", "YOUR_ACCOUNT_PASSWORD");
$verisure->login();
$verisure->init();
$verisure->setSmartPlugState("XXXX YYYY", Verisure\SecuritasK::OFF); // Your smartplug serial number
?>
<?php
require_once('php-verisure/AutoLoader.php');
$verisure = new Verisure\VInterface("YOUR_ACCOUNT_EMAIL", "YOUR_ACCOUNT_PASSWORD");
$verisure->login();
$verisure->init();
$verisure->setMultipleSmartPlugsState(array(
["XXXX YYYY", Verisure\SecuritasK::OFF],
["XXXX YYYY", Verisure\SecuritasK::OFF]
));
?>