Skip to content

a PHP library to easily interface with the Verisure API

License

Notifications You must be signed in to change notification settings

daweedm/php-verisure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

php-verisure

PHP library to easily interface with the Verisure API

Installation

Requirements : PHP >= 5.6 && cURL extension for PHP

Debian

apt-get install git php5 php5-curl && git clone https://github.com/daweedm/php-verisure

Features

  • Switch on/off motion detector on smart cams
  • Switch on/off smartplugs

Usage example

Setting camera motion detector state

<?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
?>

Setting smartplug state

<?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
?>

Setting the state of several smartplugs

<?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]
));
?>

Thanks

persandstrom/python-verisure

About

a PHP library to easily interface with the Verisure API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages