Python API and command line tool for talking to the Veralite™ Smart Home Controller
Project description
Installation
[sudo] pip install python-veralite
Usage
Module
You can import the module as veralite.
import veralite
ip = '192.168.1.89'
user = 'admin'
password = 'password'
vera_api = veralate.Veralite(ip, user, password)
vera_api.update_devices()
Command line
usage: veralite [-h] [--conf FILE] --ip IP -u USER -p PASSWORD
{light,motion,switch} ...
Command line interface to Veralite™ Smart Home Controller
positional arguments:
{light,motion,switch}
command help
light light commands
motion motion sensor commands
switch switch commands
optional arguments:
-h, --help show this help message and exit
--conf FILE config file (default ~/.config/veralite/config)
--ip IP the ip for veralite system
-u USER, --user USER username for veralite
-p PASSWORD, --password PASSWORD
password for veralite
examples:
veralite --ip 192.168.1.22 -u veraadmin -p adminpassword switch modify --id 22 --on
veralite --ip 192.168.1.22 -u veraadmin -p adminpassword light list
veralite --ip 192.168.1.22 -u veraadmin -p adminpassword motion modify --id 10 --arm
A configuration file can also be specified to prevent ip/user/password repitition.
[DEFAULT]
ip = 192.168.1.55
user = theuser
password = mypassword
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
python-veralite-0.0.1.tar.gz
(11.5 kB
view details)
File details
Details for the file python-veralite-0.0.1.tar.gz
.
File metadata
- Download URL: python-veralite-0.0.1.tar.gz
- Upload date:
- Size: 11.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4fd54f3245231cdece9869c61973b246c523b3a296649c82ef4ef4a581fa7b5f |
|
MD5 | a63263bdf5d147f0146fc3e78a387adc |
|
BLAKE2b-256 | 3ce10ad81d492262248a6fa72b7ee0a919f3802688ed2b9fffa5aada0c733171 |