Coder Social home page Coder Social logo

vzug-api's Introduction

V-ZUG API Library

Unofficial python API library for V-ZUG devices. This module provides an API for communication with V-ZUG devices in a local network. Communication with the central V-ZUG services (V-ZUG-Home) is not supported.

Implemented functions

  • Any V-ZUG device with network support:

    • Get basic status information.
    • Support username / password authentication.
  • Washing machines:

    • Get power and water consumption data.
    • Get extended information for running program incl. optiDos status.

Limitations and Warning

Since I have only one V-ZUG machine (AdoraWash V4000), the library is not tested with other devices.

How to use

Check example implementations in examples/any_device.py and examples/washing_machine.py.

Home Assistant Integration

This API is used for the Home Assistant V-ZUG integration (unofficial): /feature/vzug-integration (currently under development)

How to Develop / Contribute

To set up the development environment:

  1. Checkout this repository,
  2. Create virtual environment (python venv),
  3. Run devtools/install-dev-deps.sh or (if you don't have bash) run the pip install lines from the install-dev-deps.sh file manually.

How to add new device

Feel free to contribute more devices by ...

Or

  • just send me a response-json, so I can implement the tests and device class (at least a first version).

What is a response-json file?

A response-json file contains the response got from the device when calling a specific REST Endpoint. Example response received when calling the /ai?command=getDevceStatus endpoint:

{
  "DeviceName": "TestDevice",
  "Serial": "123",
  "Inactive": "false",
  "Program": "TestProgram",
  "Status": "Testing",
  "ProgramEnd": {
    "End": "",
    "EndType": "0"
  },
  "deviceUuid": "test-uuid"
}

Source: device_status_ok_resp.json

How to get a response-json file?

Open the http web interface of the device while the browser developer tools are open. In the developer tools "network" tab check the communication and copy the device response (JSON) into a textfile.

vzug-api's People

Contributors

mico-micic avatar dmicic 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.