Git Product home page Git Product 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.
  • Dryers:

    • Get power consumption data.
    • Get extended information for running program.
  • Dishwashers:

    • Get extended information for running / timed program.

Limitations and Warning

Since we (Darko Micic and me) have only two V-ZUG machines (AdoraWash and AdoraDry 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.
  4. Run pip install -e .

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

Stargazers

Tobias Wolf avatar LeFish avatar lds50 avatar D. Domig avatar  avatar Stef avatar  avatar

Watchers

 avatar LeFish avatar  avatar  avatar

vzug-api's Issues

Dishwasher AdoraDish data

Hello,

Is there any update for the Home Assistant Integration ?

Here some data about a dishwasher V4000
/ai?command=getDeviceStatus

{"DeviceName":"","Serial":"nnnnn nnnnnn","Inactive":"true","Program":"","Status":"","ProgramEnd":
{"End":"","EndType":"0"},"deviceUuid":"nnnnnnn"}

/hh?command=getDeviceStatus
{"errors":[],"displayedErrors":[],"notifications":[],"isUpdatePossible":true}

Please feel free to ask if you need other data for your API :)

Cheers

Stéphane

Out of curiosity

Hi guys,

i'm building a kitchen right now. Naturally, all the devices are from V-Zug...
I am looking on how to integrate them into my existing HA setup and came across your py lib.

Could not see any "commands" on the API, just some GETters.
Is there some limitation on the API level that you experienced and will prevent us from having control over the machines or did you just not dig deep enough?

Cheers,
G

ComiSteamer

Hi mico-micic

Some input for you about the CombairSteamer V6000:

/hh?command=getProgram

[{"status":"idle","zone":"cookingChamber1","light":{"set":false,"options":[false,true]},"doorStatus":{"act":"closed"},"preheatStatus":{"act":"inactive"},"probeInserted":{"act":false}},{"status":"idle","zone":"countdown1","duration":{"set":300,"min":10,"max":280800,"step":10}}]

/ai?command=getDeviceStatus

{"DeviceName":"","Serial":"xyxyxyxyx","Inactive":"true","Program":"","Status":"","ProgramEnd":{"EndType":"0","End":""},"deviceUuid":"xyxyxyx"}

/hh?command=getDeviceStatus

{"errors":[],"displayedErrors":[],"notifications":[],"isUpdatePossible":true}

Have fun

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.