Homeconnect WebThing adapter
Project description
homeconnect_webthing
A webthing adapter for HomeConnect smart home devices.
This project provides a webthing API for accessing HomeConnect devices. Currently, only the dishwasher, washing machine and dryer device types are supported.
The homeconnect_webthing package provides an http webthing endpoint for each detected and supported smart home device. E.g.
# webthing has been started on host 192.168.0.23
curl http://192.168.0.23:8744/0/properties
{
"device_name":"Geschirrspüler",
"device_type":"Dishwasher",
"device_haid":"BOSCH-SMV68TX06E-70C62F17C8E4",
"device_brand":"Bosch",
"device_vib":"SMV68TX06E",
"device_enumber":"SMV68TX06E/74",
"power":"Off",
"door":"Open",
"operation":"Inactive",
"remote_start_allowed":false,
"program_selected":"Eco50",
"program_vario_speed_plus":false,
"program_hygiene_plus":false,
"program_extra_try":false,
"program_start_date":"",
"program_progress":0
}
To install this software, you can use the PIP package manager as shown below
PIP approach
sudo pip3 install homeconnect_webthing
After this installation, you can use the Webthing http endpoint in your Python code or from the command line with
sudo homeconnect --command listen --port 8744 --refresh_token 9yJ4LXJlZyI6IfVVIiwi...2YXRlIn0= --client_secret FEAE...522BD0
Here the webthing API is bound to the local port 8744. Also, refresh_token and client_secret must be set. Please refer to HomeConnect Authorization to obtain your refresh_token and client_secret
As an alternative to the list command, you can also use the register command to register and start the webthing service as a systemd entity. This way, the webthing service is started automatically at boot time. Starting the server manually with the listen command is no longer necessary.
sudo homeconnect --command register --port 8744 --refresh_token 9yJ4LXJlZyI6IfVVIiwi...2YXRlIn0= --client_secret FEAE...522BD0
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
Hashes for homeconnect_webthing-1.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d398fe278c4dd7085aefac23aa4255fc346db98ee6992a133bddc641ea79d265 |
|
MD5 | 11f6c4eede451c7922aaff6aca85bf66 |
|
BLAKE2b-256 | 7d19ca6f216d4356d8933f6f8d5b337f3b20b654840f82b4a3b7b3cdbb4c27e1 |
Hashes for homeconnect_webthing-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 842d63480deee34eae2345b91033d01daf315ff9659a6e3ace6019b1d99d9a31 |
|
MD5 | eae5770bde18498f0697672bbc44d869 |
|
BLAKE2b-256 | 0e7f5caccce727cbb6de221e4a4a3623715f2deeecb18845cf7ceb2f673e9640 |