Skip to main content

No project description provided

Project description

Viessmann Gridbox Connector

This is not an official Viessmann library

a GridboxConnector Lib to fetch your Data from the Cloud. It is using the same Rest-API like the Dashboard and the App.

Installation

pip install viessmann-gridbox-connector

Set your email and password in the config.json. Use your Login Data from the App or from https://mygridbox.viessmann.com/login

Setup the python environment and install all dependencies

python -m venv venv
.\venv\Scripts\activate
pip install -r requirements.txt

Example Output

{
    "consumption": 496,
    "directConsumption": 413,
    "directConsumptionEV": 0,
    "directConsumptionHeatPump": 0,
    "directConsumptionHeater": 0,
    "directConsumptionHousehold": 413,
    "directConsumptionRate": 1,
    "grid": 83,
    "gridMeterReadingNegative": 4318200000,
    "gridMeterReadingPositive": 14499360000,
    "measuredAt": "2023-08-04T11:29:43Z",
    "photovoltaic": 413,
    "production": 413,
    "selfConsumption": 413,
    "selfConsumptionRate": 1,
    "selfSufficiencyRate": 0.8326612903225806,
    "selfSupply": 413,
    "totalConsumption": 496
}

Usage

from gridbox_connector import GridboxConnector

# Initialize the connector with your configuration
config = {
    "urls": {
        "login": "https://example.com/login",
        "gateways": "https://example.com/gateways",
        "live": "https://example.com/live/{}",
    },
    "login": {"username": "your_username", "password": "your_password"},
}

connector = GridboxConnector(config)

# Retrieve live data
live_data = connector.retrieve_live_data()
print(live_data)

Configuration

You need to provide a configuration dictionary with the following keys:

urls: Dictionary containing endpoint URLs. login: Dictionary containing login credentials.

Dependencies

requests

Contributing

If you'd like to contribute to viessmann-gridbox-connector, please follow these steps:

Fork the repository. Create a new branch for your feature or bug fix. Make your changes and write tests if possible. Run tests and ensure they pass. Submit a pull request.

License

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

viessmann_gridbox_connector-1.0.3.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file viessmann_gridbox_connector-1.0.3.tar.gz.

File metadata

File hashes

Hashes for viessmann_gridbox_connector-1.0.3.tar.gz
Algorithm Hash digest
SHA256 3868472d643baec1d89c3275971838b73e7781711c983c5ef26c004b33234aa5
MD5 a246f67998be4f42d0097dbbc7d36fc8
BLAKE2b-256 e2e3153aa003e6c24b0a04f5d9c5935804388dbde05980185b3dd8f2ae83b91e

See more details on using hashes here.

Provenance

File details

Details for the file viessmann_gridbox_connector-1.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for viessmann_gridbox_connector-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f83df23833c5492c784cc40251f240d3ef451d291b2b14c32b8453c4fbbe1e7c
MD5 3b7a8220b05b75ae5abcd634868d0415
BLAKE2b-256 30de74f5216dbeda3acf0a4cf4651654c1d69f236e814a2885e628afe31f5f96

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page