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8.32
0.8.31
0.8.30
0.8.3
0.8.29
0.8.28
0.8.27
0.8.26
0.8.25
0.8.24
0.8.23
0.8.22
0.8.21
0.8.20
0.8.2
0.8.19
0.8.18
0.8.17
0.8.16
0.8.15
0.8.14
0.8.13
0.8.12
0.8.11
0.8.10
0.8.1
0.8.0
0.7.9
0.7.8
0.7.7
0.7.6
0.7.5
0.7.4b2
0.7.4
0.7.3
0.7.26
0.7.25
0.7.24
0.7.23
0.7.22
0.7.21
0.7.20
0.7.2
0.7.19
0.7.18
0.7.17
0.7.16
0.7.15
0.7.14
0.7.13
0.7.12
0.7.11
0.7.10
0.7.1
0.7.0
0.6.9
0.6.8
0.6.7
0.6.6
0.6.5
0.6.4
0.6.3
0.6.2
0.6.11
0.6.10
0.6.1
0.6.0
0.5.9
0.5.8
0.5.7
0.5.6
0.5.5
0.5.4
0.5.3
0.5.2
0.5.13b1
0.5.13b0
0.5.12
0.5.11
0.5.10
0.5.1
0.5.0
0.4.5
0.4.4
0.4.3
0.4.2
0.4.1
0.4.0
0.3.3
0.3.2
0.3.1
0.3.0
0.2.3
0.2.2
0.2.1
0.2.0
0.1.7
0.1.6
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
0.0.20
0.0.19
0.0.18
0.0.17
0.0.16
0.0.15
0.0.14
0.0.13
0.0.12
0.0.11
0.0.10
توضیحات
A Python library to interact with the API behind the myVAILLANT app
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | myPyllant-0.9.9 |
| نام | myPyllant |
| نسخه کتابخانه | 0.9.9 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | Philipp <pd@signalkraft.com> |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/myPyllant/ |
| مجوز | - |
# myPyllant
[](https://pypi.org/project/myPyllant/)

A Python library to interact with the API behind the myVAILLANT app ((and branded versions of it, such as the MiGo app from Saunier Duval). Needs at least Python 3.10.
> [!WARNING]
> If you're using sensoAPP or the multiMATIC app, this library won't work for you. Try the [pymultiMATIC](https://github.com/thomasgermain/pymultiMATIC) library instead and check [Vaillant's website](https://www.vaillant.de/heizung/produkte/mobile-apps/myvaillant-app/) for more information.
>
> This integration is not affiliated with Vaillant, the developers take no responsibility for anything that happens to your devices because of this library.

* [Documentation](https://signalkraft.com/mypyllant-component/3-library/)
* [Home Assistant component](https://github.com/signalkraft/mypyllant-component)
## Install and Test
> [!WARNING]
>
> You need at least Python 3.10
```shell
pip install myPyllant
# Only on Windows, and other systems without a timezone database:
pip install tzdata
```
..or use Docker, if you just want to use it as a CLI tool:
```shell
docker run -ti ghcr.io/signalkraft/mypyllant:latest uv run -m myPyllant.export user password brand --country country
```
## Usage
### Exporting Data about your System
```bash
python3 -m myPyllant.export user password brand --country country
# See python3 -m myPyllant.export -h for more options and a list of countries
```
The `--data` argument exports historical data of the devices in your system.
Without this keyword, information about your system will be exported as JSON.
### Exporting Energy Reports
```bash
python3 -m myPyllant.report user password brand --country country
# Wrote 2023 report to energy_data_2023_ArothermPlus_XYZ.csv
# Wrote 2023 report to energy_data_2023_HydraulicStation_XYZ.csv
```
Writes a report for each heat generator, by default for the current year. You can provide `--year` to select
a different year.
### Using the API in Python
```python
#!/usr/bin/env python3
import argparse
import asyncio
import logging
from datetime import datetime, timedelta
from myPyllant.api import MyPyllantAPI
from myPyllant.const import ALL_COUNTRIES, BRANDS, DEFAULT_BRAND
parser = argparse.ArgumentParser(description="Export data from myVaillant API .")
parser.add_argument("user", help="Username (email address) for the myVaillant app")
parser.add_argument("password", help="Password for the myVaillant app")
parser.add_argument(
"brand",
help="Brand your account is registered in, i.e. 'vaillant'",
default=DEFAULT_BRAND,
choices=BRANDS.keys(),
)
parser.add_argument(
"--country",
help="Country your account is registered in, i.e. 'germany'",
choices=ALL_COUNTRIES.keys(),
required=False,
)
parser.add_argument(
"-v", "--verbose", help="increase output verbosity", action="store_true"
)
async def main(user, password, brand, country):
async with MyPyllantAPI(user, password, brand, country) as api:
async for system in api.get_systems():
if not system.zones:
print(f"Skipping {system} because there are no active zones")
continue
print(await api.set_set_back_temperature(system.zones[0], 18))
print(await api.quick_veto_zone_temperature(system.zones[0], 21, 5))
print(await api.cancel_quick_veto_zone_temperature(system.zones[0]))
setpoint = 10.0 if system.control_identifier.is_vrc700 else None
print(
await api.set_holiday(
system,
datetime.now(system.timezone),
datetime.now(system.timezone) + timedelta(days=7),
setpoint, # Setpoint is only required for VRC700 systems
)
)
print(await api.cancel_holiday(system))
if system.domestic_hot_water:
print(await api.boost_domestic_hot_water(system.domestic_hot_water[0]))
print(await api.cancel_hot_water_boost(system.domestic_hot_water[0]))
print(
await api.set_domestic_hot_water_temperature(
system.domestic_hot_water[0], 46
)
)
if __name__ == "__main__":
args = parser.parse_args()
if args.verbose:
logging.basicConfig(level=logging.DEBUG)
asyncio.run(main(args.user, args.password, args.brand, args.country))
```
### Tested Configurations
See https://github.com/signalkraft/mypyllant-component/blob/main/README.md#tested-setups
## Contributing
> [!WARNING]
>
> You need at least Python 3.10 and [uv installed](https://docs.astral.sh/uv/getting-started/installation/)
I'm happy to accept PRs, if you run the pre-commit checks and test your changes:
```shell
git clone https://github.com/signalkraft/myPyllant.git
cd myPyllant
uv tool install pre-commit --with pre-commit-uv
pre-commit install
uv run pytest
```
### Supporting new Countries
The myVAILLANT app uses Keycloak and OIDC for authentication, with a realm for each country and brand.
There is a script to check which countries are supported:
```shell
uv run -m myPyllant.tests.find_countries
```
Copy the resulting dictionary into [src/myPyllant/const.py](src/myPyllant/const.py)
### Contributing Test Data
Because the myVAILLANT API isn't documented, you can help the development of this library by contributing test data:
```shell
uv run -m myPyllant.tests.generate_test_data -h
uv run -m myPyllant.tests.generate_test_data username password brand --country country
```
..or use Docker:
```shell
docker run -v $(pwd)/test_data:/build/src/myPyllant/tests/json -ti ghcr.io/signalkraft/mypyllant:latest uv run -m myPyllant.tests.generate_test_data username password brand --country country
```
With docker, the results will be put into `test_data/`.
You can then either create a PR with the created folder, or zip it and attach it to an issue.
## Acknowledgements
* Auth is loosely based on [ioBroker.vaillant](https://github.com/TA2k/ioBroker.vaillant)
* Most API endpoints are reverse-engineered from the myVaillant app, using [mitmproxy](https://github.com/mitmproxy/mitmproxy)
* Logo based on [Hase Icons erstellt von Freepik - Flaticon](https://www.flaticon.com/de/kostenlose-icons/hase) & [Ouroboros Icons erstellt von Freepik - Flaticon](https://www.flaticon.com/de/kostenlose-icons/ouroboros).
نیازمندی
| مقدار | نام |
|---|---|
| - | aiohttp>=3.8.0 |
| - | pydantic<3.0,>=2.10 |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| <3.14,>=3.10 | Python |
نحوه نصب
نصب پکیج whl myPyllant-0.9.9:
pip install myPyllant-0.9.9.whl
نصب پکیج tar.gz myPyllant-0.9.9:
pip install myPyllant-0.9.9.tar.gz