Connector for Viessmann Gridbox to fetch live data from your Photovoltaic System
Project description
Viessmann Gridbox Connector
This is not an official Viessmann library
Harness the power of your photovoltaic system with the GridboxConnector library. This versatile tool taps into the same REST API as the official dashboard and app, providing you with direct access to your data from the cloud.
Whether you're a developer looking to integrate solar data into your own project, or a power user seeking command-line access, GridboxConnector has you covered. With its dual functionality, you can either embed it into your Python project as a library or use it as a standalone command-line interface (CLI) tool.
Take control of your solar data with GridboxConnector, and unlock the full potential of your photovoltaic system.
Installation
pip install viessmann-gridbox-connector
Usage
You can use the CLI to retrieve live data from the Viessmann Gridbox API or use the GridboxConnector class in your own code.
Use your Login data from the App or from https://mygridbox.viessmann.com/login
CLI
pip install viessmann-gridbox-connector
viessmann --username <username> --password <password>
in your code
from viessmann_gridbox_connector import GridboxConnector
from importlib.resources import path
import json
with path('viessmann_gridbox_connector', 'config.json') as config_file:
with open(config_file, 'r') as file:
data = json.load(file)
data["login"]["username"] = "username"
data["login"]["password"] = "password"
connector = GridboxConnector(data)
# Retrieve live data
live_data = connector.retrieve_live_data()
print(live_data)
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
}
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.5.3.tar.gz
.
File metadata
- Download URL: viessmann_gridbox_connector-1.5.3.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24c3092bee97d4de7902ea100bffdbc9b1b5182f6bf2a1ae885fc291aa678823 |
|
MD5 | 79650b4ebaa45d5c20a9b41291314a0d |
|
BLAKE2b-256 | 24a936e4d8e109b555b9191fe26f36c76215d30bd21c69d18f2cc2a3586bde4f |
Provenance
File details
Details for the file viessmann_gridbox_connector-1.5.3-py3-none-any.whl
.
File metadata
- Download URL: viessmann_gridbox_connector-1.5.3-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f55037ac31f67b79883e7e92a0a9771301d729f5d1a77a573452bc78c93498b8 |
|
MD5 | e91bbda3b200f47b596e10da04ec3355 |
|
BLAKE2b-256 | 9587a665e52098b58508c033cefd68121bd6ff80c97f2f764c55f16f673e9543 |