Switcher Water Heater Unofficial Bridge and API.
Project description
Switcher Water Heater Unofficial Bridge and API
PyPi module named aioswitcher for integrating with the Switcher Water Heater.
Please check out the documentation.
Install
pip install aioswitcher
Usage Example
Please check out the documentation for the full usage section.
async with SwitcherV2Api(
your_loop, ip_address, phone_id,
device_id, device_password) as swapi:
# get the device state
state_response = await swapi.get_state()
# control the device: on / off / on + 30 minutes timer
turn_on_response = await swapi.control_device(consts.COMMAND_ON)
turn_off_response = await swapi.control_device(consts.COMMAND_OFF)
turn_on_30_min_response = await swapi.control_device(consts.COMMAND_ON, '30')
Contributing
The contributing guidelines are here
Code of Conduct
The code of conduct is here
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
aioswitcher-1.2.5.tar.gz
(18.4 kB
view details)
Built Distribution
File details
Details for the file aioswitcher-1.2.5.tar.gz
.
File metadata
- Download URL: aioswitcher-1.2.5.tar.gz
- Upload date:
- Size: 18.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.4.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0bd11412f39607ec509dcead395df4ea9f4b4f5b9b07b20f17a0778eb594f55 |
|
MD5 | 7ad1dcf4692907cff889706c95ec0a2a |
|
BLAKE2b-256 | edf68c92a9888c04f9ea5d15e010ae9e3f32ff7db71633d38d487e2ca1f3fefa |
File details
Details for the file aioswitcher-1.2.5-py3-none-any.whl
.
File metadata
- Download URL: aioswitcher-1.2.5-py3-none-any.whl
- Upload date:
- Size: 22.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.4.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3290d99f07bee145c431a03e8e4f165d46982770808dab9056f564ddc8974cb2 |
|
MD5 | 04614354269c9ff4257085d8e47e5de5 |
|
BLAKE2b-256 | 213f39175e1951d6f3e414ad4376108d79fb7597d32c7da317c4089fc490dcaf |