Skip to main content

Python module to interact with VivintSky API.

Project description

pyvivint

python library for interacting with vivintsky API

This was built to support the Vivint integration in home-assistant but should work outside of it too. It can run on an existing ioloop or create its own if one is not provided.

Credit

This was inspired by the great work done by Mike Reibard to reverse engineer the VivintSky API and it shamelessly reuses most of his code.

Features

It currently has support for the following device types:

  • alarm panels
  • cameras
  • door locks
  • garage doors
  • wireless sensors:
    • carbon monoxide
    • door/window
    • flood
    • glass break
    • motion
    • smoke/fire
    • etc

In addition, it integrates with pubnub to receive real-time updates for the devices. This subscription stops receiving notifications around 15-20 minutes unless a call is made to the VivintSky API periodically. This might be related to the cookie expiration since it expires 20 minutes after the last API call was received. If another client connects, however, the notifications start to stream again for all currently connected clients.

Usage

See demo.py for a demonstration on how to use this library.

TODO:

  • write a better readme
  • add tests
  • write some documentation
  • add device support for:
    • multi-level switches
    • thermostats
  • implement 2FA

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

pyvivint-2021.1.1.tar.gz (15.3 kB view hashes)

Uploaded Source

Built Distribution

pyvivint-2021.1.1-py3-none-any.whl (20.6 kB view hashes)

Uploaded Python 3

Supported by

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