Python API for talking to Bosch™ Heating gateway using HTTP
Project description
bosch-thermostat-http-client-python
Python3 asyncio package to talk to Bosch Thermostats via their gateway, especially for Buderus KM200/KM50 and Nefit IP modules used in Enviline heat pumps. These gateways support Http access in local network.
example :
import asyncio
import aiohttp
from buderus.gateway import Gateway
async def main():
async with aiohttp.ClientSession() as session:
gateway = Gateway(session, '<Local IP of gateway>','<gateway password>','<user password>')
await gateway.initialize()
print(gateway.info.uuid)
for sensor in gateway.sensors.items:
print (sensor.name, sensor.value)
asyncio.get_event_loop().run_until_complete(main())
To run this code do the following:
- create file data_file.txt and insert like this:
ip
access_key
password
replace strings with proper values
- run in dir
python3 -m venv .
- run
python3 test.py
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
Close
Hashes for bosch-thermostat-http-client-0.4.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f334b6dbb2f7c0000bd4b447673baffa717958ac29cf52427a8b704a4d8c6ee |
|
MD5 | 7e3b68ff9ab5e66deb03f2bbac48eecd |
|
BLAKE2b-256 | a80cbed3437907bec70dc3a45d9a9392beaa9d725e8102db363549eb015f4bdd |
Close
Hashes for bosch_thermostat_http_client-0.4.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5cba08f1117834b1c2aaf244086f2301aff6ed9d50507533e0428df43eccaae |
|
MD5 | 40ff128b9c66935707f1c2344ce7eb7f |
|
BLAKE2b-256 | bff5d795e809e6a7b645f6fdd21d5903019f3873d24dc864300642945a2ebea6 |