Switcher Water Heater Unofficial Bridge and API.
Project description
Switcher Water Heater Unofficial Bridge and API
![license-badge](https://pypi-camo.freetls.fastly.net/1fb19fa79d9218bba5b7907a85b5876c8830d17b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f746f6d657266692f61696f7377697463686572)
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.1.2.tar.gz
(18.2 kB
view hashes)
Built Distribution
Close
Hashes for aioswitcher-1.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e14b14cdf2047d9f26501de663ba885ef77c9cceec889f1ec76c93f435a6e4f |
|
MD5 | 0d001678f3e5f4f2a6309507848defdd |
|
BLAKE2b-256 | 675380574b2f3b98d4ea3d369caceb9e0ebaed02d44bfcd7f7d55503ea58931e |