vivintpy


Namevivintpy JSON
Version 2023.3.9 PyPI version JSON
download
home_pagehttps://github.com/natekspencer/vivintpy
SummaryPython library for interacting with a Vivint security and smart home system.
upload_time2024-04-06 22:25:51
maintainerNone
docs_urlNone
authorNathan Spencer
requires_python<4.0.0,>=3.9.0
licenseMIT
keywords vivint alarm system security smart home home automation asynchronous
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            [![pypi](https://img.shields.io/pypi/v/vivintpy?style=for-the-badge)](https://pypi.org/project/vivintpy)
[![downloads](https://img.shields.io/pypi/dm/vivintpy?style=for-the-badge)](https://pypi.org/project/vivintpy)
[![Buy Me A Coffee/Beer](https://img.shields.io/badge/Buy_Me_A_☕/🍺-F16061?style=for-the-badge&logo=ko-fi&logoColor=white&labelColor=grey)](https://ko-fi.com/natekspencer)

# vivintpy

Python library for interacting with a Vivint security and smart home system.

This was built to support the `Vivint` integration in [Home-Assistant](https://www.home-assistant.io/) but _should_ work outside of it too. Currently, it can be utilized via [HACS](https://hacs.xyz/) by adding the [hacs-vivint](https://github.com/natekspencer/hacs-vivint) custom repository.

## Credit

This was inspired by the great work done by [Mike Reibard](https://github.com/Riebart/vivint.py) to reverse engineer the Vivint Sky API and [Ovidiu Stateina](https://github.com/ovirs/pyvivint) for the repository from which this is forked and expanded on.

## Features

It currently has support for the following device types:

- alarm panels
- cameras
- door locks
- garage doors
- switches
  - binary
  - multilevel
- thermostats
- 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 devices. This subscription stops receiving notifications around 15-20 minutes unless a call is made to the Vivint Sky 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
- write some documentation
- add advanced support for:
  - thermostats
- add tests

---

## Support Me

I'm not employed by Vivint, and provide this python package as-is.

If you don't already own a Vivint system, please consider using [my referal code (kaf164)](https://www.vivint.com/get?refCode=kaf164&exid=165211vivint.com/get?refCode=kaf164&exid=165211) to get $50 off your bill (as well as a tip to me in appreciation)!

If you already own a Vivint system and still want to donate, consider buying me a coffee ☕ (or beer 🍺) instead by using the link below:

<a href='https://ko-fi.com/natekspencer' target='_blank'><img height='35' style='border:0px;height:46px;' src='https://az743702.vo.msecnd.net/cdn/kofi3.png?v=0' border='0' alt='Buy Me a Coffee at ko-fi.com' />

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/natekspencer/vivintpy",
    "name": "vivintpy",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0.0,>=3.9.0",
    "maintainer_email": null,
    "keywords": "Vivint, alarm system, security, smart home, home automation, asynchronous",
    "author": "Nathan Spencer",
    "author_email": "natekspencer@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/4c/89/27b3c49db1dc9273397bef6b2bc649b8238048587d874b512ff176e34b99/vivintpy-2023.3.9.tar.gz",
    "platform": null,
    "description": "[![pypi](https://img.shields.io/pypi/v/vivintpy?style=for-the-badge)](https://pypi.org/project/vivintpy)\n[![downloads](https://img.shields.io/pypi/dm/vivintpy?style=for-the-badge)](https://pypi.org/project/vivintpy)\n[![Buy Me A Coffee/Beer](https://img.shields.io/badge/Buy_Me_A_\u2615/\ud83c\udf7a-F16061?style=for-the-badge&logo=ko-fi&logoColor=white&labelColor=grey)](https://ko-fi.com/natekspencer)\n\n# vivintpy\n\nPython library for interacting with a Vivint security and smart home system.\n\nThis was built to support the `Vivint` integration in [Home-Assistant](https://www.home-assistant.io/) but _should_ work outside of it too. Currently, it can be utilized via [HACS](https://hacs.xyz/) by adding the [hacs-vivint](https://github.com/natekspencer/hacs-vivint) custom repository.\n\n## Credit\n\nThis was inspired by the great work done by [Mike Reibard](https://github.com/Riebart/vivint.py) to reverse engineer the Vivint Sky API and [Ovidiu Stateina](https://github.com/ovirs/pyvivint) for the repository from which this is forked and expanded on.\n\n## Features\n\nIt currently has support for the following device types:\n\n- alarm panels\n- cameras\n- door locks\n- garage doors\n- switches\n  - binary\n  - multilevel\n- thermostats\n- wireless sensors\n  - carbon monoxide\n  - door/window\n  - flood\n  - glass break\n  - motion\n  - smoke/fire\n  - etc\n\nIn addition, it integrates with PubNub to receive real-time updates for devices. This subscription stops receiving notifications around 15-20 minutes unless a call is made to the Vivint Sky 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.\n\n## Usage\n\nSee demo.py for a demonstration on how to use this library.\n\n## TODO:\n\n- write a better readme\n- write some documentation\n- add advanced support for:\n  - thermostats\n- add tests\n\n---\n\n## Support Me\n\nI'm not employed by Vivint, and provide this python package as-is.\n\nIf you don't already own a Vivint system, please consider using [my referal code (kaf164)](https://www.vivint.com/get?refCode=kaf164&exid=165211vivint.com/get?refCode=kaf164&exid=165211) to get $50 off your bill (as well as a tip to me in appreciation)!\n\nIf you already own a Vivint system and still want to donate, consider buying me a coffee \u2615 (or beer \ud83c\udf7a) instead by using the link below:\n\n<a href='https://ko-fi.com/natekspencer' target='_blank'><img height='35' style='border:0px;height:46px;' src='https://az743702.vo.msecnd.net/cdn/kofi3.png?v=0' border='0' alt='Buy Me a Coffee at ko-fi.com' />\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Python library for interacting with a Vivint security and smart home system.",
    "version": "2023.3.9",
    "project_urls": {
        "Homepage": "https://github.com/natekspencer/vivintpy",
        "Repository": "https://github.com/natekspencer/vivintpy"
    },
    "split_keywords": [
        "vivint",
        " alarm system",
        " security",
        " smart home",
        " home automation",
        " asynchronous"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "813c1ec1aa4904fd060ae51ce6a4a7659f6a3857f77073ee64377dbf1f4c402c",
                "md5": "c9a85290e596683e93b8106cb5aa4c6d",
                "sha256": "2f48e8644fa5cb939b2c77b1b8f37b13048580676b070cbd678eb8fe9b233092"
            },
            "downloads": -1,
            "filename": "vivintpy-2023.3.9-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c9a85290e596683e93b8106cb5aa4c6d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0.0,>=3.9.0",
            "size": 119786,
            "upload_time": "2024-04-06T22:25:49",
            "upload_time_iso_8601": "2024-04-06T22:25:49.819480Z",
            "url": "https://files.pythonhosted.org/packages/81/3c/1ec1aa4904fd060ae51ce6a4a7659f6a3857f77073ee64377dbf1f4c402c/vivintpy-2023.3.9-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4c8927b3c49db1dc9273397bef6b2bc649b8238048587d874b512ff176e34b99",
                "md5": "cdb5a9c0dcabe0938bb53395063af2cd",
                "sha256": "3d7186484ab55e437a89f3a729d01b27513d3fc8ae28ed4cf65803e44f6dbc73"
            },
            "downloads": -1,
            "filename": "vivintpy-2023.3.9.tar.gz",
            "has_sig": false,
            "md5_digest": "cdb5a9c0dcabe0938bb53395063af2cd",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0.0,>=3.9.0",
            "size": 110588,
            "upload_time": "2024-04-06T22:25:51",
            "upload_time_iso_8601": "2024-04-06T22:25:51.555550Z",
            "url": "https://files.pythonhosted.org/packages/4c/89/27b3c49db1dc9273397bef6b2bc649b8238048587d874b512ff176e34b99/vivintpy-2023.3.9.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-06 22:25:51",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "natekspencer",
    "github_project": "vivintpy",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "vivintpy"
}
        
Elapsed time: 0.22903s