Skip to main content

No project description provided

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.

Screenshot vom mygridbox

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


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.4.1.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for viessmann_gridbox_connector-1.4.1.tar.gz
Algorithm Hash digest
SHA256 dc916b3a2f539a7dfffdf6bba2bb5b1d07261a65723b89969fdbc71e2652613b
MD5 9234e3bb03f613025500d87a0af67480
BLAKE2b-256 bd2db1c021c3916e611f0a3bb5f11a9f451a840de4c934287f702b81d9988893

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for viessmann_gridbox_connector-1.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4e71e32f5d69bd4442805dc5f4e405ba8b65a6ccc94d5e0d2b85132b958aff70
MD5 d360ac8ef9011dc85721007992440c0a
BLAKE2b-256 995acc00a9e86ccecc84107525bd3b95de6f6168a7cf0e13856e1b60f06bbfce

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