A Python library to interact with the API behind the myVAILLANT app
Project description
myPyllant
A Python library to interact with the API behind the myVAILLANT app.
Install and test
pip install myPyllant
python3 -m myPyllant.export username password (--data)
The --data
argument exports historical data of the devices in your system.
Without this keyword, information about your system will be exported as JSON.
Samples
import argparse
import asyncio
from datetime import datetime, timedelta
from myPyllant.session import login, get_session
from myPyllant.services import get_systems, set_holiday, cancel_holiday, boost_domestic_hot_water, cancel_quick_veto_zone_temperature, cancel_hot_water_boost, set_domestic_hot_water_temperature, set_set_back_temperature, quick_veto_zone_temperature
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')
async def main(user, password):
try:
await login(user, password)
async for system in get_systems():
print(await set_holiday(system, datetime.now()))
print(await set_holiday(system, datetime.now(), datetime.now() + timedelta(days=1)))
print(await cancel_holiday(system))
print(await boost_domestic_hot_water(system.domestic_hot_water[0]))
print(await cancel_hot_water_boost(system.domestic_hot_water[0]))
print(await set_domestic_hot_water_temperature(system.domestic_hot_water[0], 46))
print(await set_set_back_temperature(system.zones[0], 15.5))
print(await quick_veto_zone_temperature(system.zones[0], 21, 5))
print(await cancel_quick_veto_zone_temperature(system.zones[0]))
finally:
await get_session().close()
if __name__ == "__main__":
args = parser.parse_args()
asyncio.run(main(args.user, args.password))
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
mypyllant-0.0.4.tar.gz
(52.9 kB
view hashes)
Built Distribution
Close
Hashes for mypyllant-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3352998f3985a7e769ede5ed5c12bb5b3245fddc1138a62bc2e871981fb690af |
|
MD5 | cc67a70d846fa595721df66b98bc8aea |
|
BLAKE2b-256 | a3ad808118f53433a3790112d9436f56b985a88073403a94a72c6e5d138cebfe |