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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b100e7ffa7828efa53b0ba7d442228f64cd293ebb3b861426452e964a70fd683 |
|
MD5 | 27f373f434d69b50e924943aefc9ad0a |
|
BLAKE2b-256 | 6cad630f9746584c135dba2a0a8fe5886d7b881715dd8b85c5ed9974e92f7792 |
Close
Hashes for bosch_thermostat_http_client-0.4.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e880afd1412146be3f6b18d4e19e846182a7181e45b8462f43804fca6477b5d |
|
MD5 | 1904dd10e70eddc5b9258d230a635ec0 |
|
BLAKE2b-256 | 8ceec60aa2695c8ee06ef3e470a06d46f5e307b1018ddad9ff91593cca2e7411 |