Git Product home page Git Product logo

zipatopy's Introduction

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:

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

License

This project is licensed under the Apache 2.0 License - see the LICENSE file for details.

zipatopy's People

Contributors

gooorooox avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.