Skip to main content

Switcher Water Heater Unofficial Bridge and API.

Project description

Switcher Water Heater Unofficial Bridge and API
pypi-version pypi-downloads license-badge conventional-commits

gh-build-status read-the-docs codecov fossa-status

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


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.1.tar.gz (18.4 kB view details)

Uploaded Source

Built Distribution

aioswitcher-1.2.1-py3-none-any.whl (22.2 kB view details)

Uploaded Python 3

File details

Details for the file aioswitcher-1.2.1.tar.gz.

File metadata

  • Download URL: aioswitcher-1.2.1.tar.gz
  • Upload date:
  • Size: 18.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.3.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for aioswitcher-1.2.1.tar.gz
Algorithm Hash digest
SHA256 422501c58f5a98a0b3a205a2bf6778c1758833dae42bb5d031104e30d54f1482
MD5 22ce5f8d2ad54d1f7d6170fc0ae66944
BLAKE2b-256 6bda24421d09d187cbf4bcac54403f4b743f7cdd2d9beaadd5ac50e5543e4bfc

See more details on using hashes here.

File details

Details for the file aioswitcher-1.2.1-py3-none-any.whl.

File metadata

  • Download URL: aioswitcher-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 22.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.3.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for aioswitcher-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a6a94f0db1b38db31a6973a9b6e296a59f1f25687f3e65b9af63afdde2ee1242
MD5 053b49f2fe44c38f768a2e582b1d820d
BLAKE2b-256 99f17c8601b978afede03626f6b771d3a39d7d8ec0620a617648b7caa5530c8d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page