Skip to main content

Python API and command line tool for talking to the Veralite™ Smart Home Controller

Project description

PyPI Version Build Status PyPI Monthly downloads Coverage report

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.5.tar.gz (12.0 kB view details)

Uploaded Source

File details

Details for the file python-veralite-0.0.5.tar.gz.

File metadata

File hashes

Hashes for python-veralite-0.0.5.tar.gz
Algorithm Hash digest
SHA256 c4c4de26fa2b78b9cc56d13396366e9da5ba5e22ef7bc50d2d3046223fde47c0
MD5 c9ce00de38e6b49f7eb90b5d7ba16c80
BLAKE2b-256 a7eec7d6af2ca3aa88d7388717fe3c2e4c5d8af656d869369d63cb5ba84b7ebd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page