Homeconnect WebThing adapter
Project description
homeconnect_webthing
A webthing adapter of HomeConnect smart home appliances.
This project provides a webthing API to access HomeConnect devices. Currently, the device types Dishwasher, Washer and Dryer are supported only
The homeconnect_webthing package exposes a http webthing endpoint for each detected and supported smart home appliances. 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 may use PIP package manager such as shown below
PIP approach
sudo pip3 install homeconnect_webthing
After this installation you may start the webthing http endpoint inside your python code or via command line using
sudo homeconnect --command listen --port 8744 --refresh_token 9yJ4LXJlZyI6IfVVIiwi...2YXRlIn0= --client_secret FEAE...522BD0
Here, the webthing API will be bound to the local port 8744. Furthermore, the refresh_token and client_secret have to be set. Please refer HomeConnect Authorization to get your refresh_token and client_secret
Alternatively to the listen command, you can use the register command to register and start the webthing service as systemd unit. By doing this the webthing service will be started automatically on boot. Starting the server manually using 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-0.3.43.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb40354fc25ac74d6eeb756d7608f7943c9fce18390233dcbd693ce57d48ef23 |
|
MD5 | 355f376a39d1721d391c2832bc300a1f |
|
BLAKE2b-256 | b7c844c653cbb0a4ebe2dd61df31c1f437bc81cd3d8848478f6a7596ecbcbd2a |
Hashes for homeconnect_webthing-0.3.43-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b1192aa7606492af2e0ca9a8b9059101c47059c3a99af44adf882678a116149 |
|
MD5 | 07ecebc479e9223547faaef060ccbd8d |
|
BLAKE2b-256 | b813bcd74640b93a97c30250d1baff26422864b5eece2a0baf3cbb736dc6b6b9 |