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.5b0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9287d30a897c913bef76e2105c3ba6289385c04b2af47194fdf424cc280aca0e |
|
MD5 | f3814562165a8582c3c49bbbca24f84c |
|
BLAKE2b-256 | 15fa968b9b9dd1eeedaea1ec7d577beb171b4782a4c4b1fdf574a9b742db673d |
Close
Hashes for bosch_thermostat_http_client-0.4.5b0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd543b838086495a570076ec85583f500566188a3e2a4e84a11c2bb8b254dc45 |
|
MD5 | 7896ec8ace6964fd5936744551368d2d |
|
BLAKE2b-256 | d1597a889ded9796020b1c006db9503451e81d7af36dfa4a60dc3f9c43c2811e |