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
Helper
Now there is extra command added with this package bosch_scan
.
Usage: bosch_scan [OPTIONS] COMMAND [ARGS]...
A tool to create rawscan of Bosch thermostat.
Options:
--ip TEXT IP address of gateway [required]
--token TEXT Token from sticker without dashes.
[required]
--password TEXT Password you set in mobile app.
-o, --output TEXT Path to output file of scan. Default to
[raw/small]scan_uuid.json
--stdout Print scan to stdout
-d, --debug
-s, --smallscan [HC|DHW|SENSORS]
Scan only single circuit of thermostat.
--help Show this message and exit.
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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b8eea3b3be7a217f41a605f6d2547972ddb8e30af0abdcb0c6991fff88393b9 |
|
MD5 | b25e4c4e50fa64ed0c0d830b747f70d0 |
|
BLAKE2b-256 | 2e5dc2ca32b1aee7aafe387a5788d0ab99c23aaceff9e779b1530c04571832a3 |
Close
Hashes for bosch_thermostat_http_client-0.5.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01aa20bac471754ee882df1d61513bcc924135d975aff296eb6df6b818c8e657 |
|
MD5 | addb7bb4d7b642a743b6f82b6dfd9bfb |
|
BLAKE2b-256 | ac14a6ba4757d58160724313e2502182c29c4c44b5b06493088196e76b6d63e2 |