ZipatoPy: Zipato Python API
The Python library to interact with Zipato smarthome controllers.
Inspired by ggruner. Tested with Zipato Zipatile.
Main features:
- list devices, endpoints, attributes and attribute values
- manipulate virtual endpoints (create/get/set/delete)
- synchronization of Zipato controller
- local and cloud mode
- no external dependencies (build-in Python libs only)
- logging and verbose debug
TODO:
- integrate as Home Assistant sensor
Getting Started
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Python Version
Python 2.7
Python 3.6
Installation
From PyPI repository:
pip install --upgrade zipatopy
From source:
git clone https://github.com/goooroooX/ZipatoPy.git
Test run
Start with included samples:
- change USERNAME and PASSWORD to your my.zipato.com account information
- for test1.py change also DEVICE, ENDPOINT and ATTRIBUTE
python test1.py
python test2.py
API initialization for a cloud mode:
from zipatopy import ZipatoPy
api = ZipatoPy(USERNAME, PASSWORD, verbose=True)
print(api.get_devices())
API initialization for a local mode:
from zipatopy import ZipatoPy
api = ZipatoPy(USERNAME, PASSWORD, url='http://X.X.X.X:8080/zipato-web/v2/', verbose=True)
print(api.get_devices())
NOTE: local mode is limited comparing to cloud mode, but you will still be able to get attribute values when requesting directly with UUID.
Author
- Dmitry Nikolaenya - code base - gooorooo.com
License
This project is licensed under the Apache 2.0 License - see the LICENSE file for details.
Release files for zipatopy 0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| zipatopy-0.4.tar.gz | 5.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| zipatopy-0.4-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 15.8 kB
Release files / zipatopy-0.4.tar.gz
| Download URL | zipatopy-0.4.tar.gz |
|---|---|
| Size | 5.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
18b7b5f22f237fbcf1554c609468913e6948991f3bc2048dfd24b16f02d2ef2d
|
|
BLAKE2b-256 checksum How to use checksums |
809c8d040365fffbef2e4a65c7e0de5b77f93e339327486b8a163d51887ab8ab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.4
|
Release files / zipatopy-0.4-py2.py3-none-any.whl
| Download URL | zipatopy-0.4-py2.py3-none-any.whl |
|---|---|
| Size | 10.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
129713af534b3c9c37c7bdee87abdd2ca1dcfeee8ae1617829c07aa72ef2dafb
|
|
BLAKE2b-256 checksum How to use checksums |
6ce6ae679ef82cc63e7d88a6ef08e08348b92475c7dce19358de57cc302ca9ed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.4
|