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://gridx.eu.auth0.com/oauth/token",
"gateways":"https://api.gridx.de/gateways",
"live":"https://api.gridx.de/systems/{}/live"
},
"login":{
"grant_type":"http://auth0.com/oauth/grant-type/password-realm",
"username":"email",
"password":"password",
"audience":"my.gridx",
"client_id":"oZpr934Ikn8OZOHTJEcrgXkjio0I0Q7b",
"scope":"email openid",
"realm":"viessmann-authentication-db"
}
}
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file viessmann_gridbox_connector-1.2.0.tar.gz
.
File metadata
- Download URL: viessmann_gridbox_connector-1.2.0.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24c8cb318e8827359100617a2653b6c0850e8a39e064cf1c63be8c3df908ee09 |
|
MD5 | 13cdbb731d0303908840848a73ba0aa7 |
|
BLAKE2b-256 | 96668d1ebe7bb6ab9a2bf5a97d3c396bbeff00e863ae803a4ec5c9f7878a63e4 |
Provenance
File details
Details for the file viessmann_gridbox_connector-1.2.0-py3-none-any.whl
.
File metadata
- Download URL: viessmann_gridbox_connector-1.2.0-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0141dbf64053ca382475c6f5f5eca96130a9b6c0eb52964c7d58dfb5f59455a1 |
|
MD5 | debb114a5dc9079733f7a6c0dd14c729 |
|
BLAKE2b-256 | 2c321d5397b92f0836d7f7c7622c587d2e5c877c9f59d06f15e64433ef0edbf4 |