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.5.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74c31e3144ee64b081fceb6b44723fe4a24ccaafaf5c72759a839570aa27d37e |
|
MD5 | 6c088cf75ee128ef145e1dab3e082ef9 |
|
BLAKE2b-256 | 548e3f4c34f4ec0e9883891745ad4a0d627fc5b093bf0c0706b337a9f86285f6 |
Close
Hashes for bosch_thermostat_http_client-0.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb787abb0a26fa68765584c308084a599f063d95d12463f433acdfd181d5dade |
|
MD5 | 872c2a5c90a70f4e8b11e987fec58221 |
|
BLAKE2b-256 | df9dc86a397dc9e988421e71d6d6f1f159e73e7f6b0158de6f30716dada7153c |