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

gh-build-status read-the-docs codecov dependabot-status 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.0.tar.gz (18.4 kB view details)

Uploaded Source

Built Distribution

aioswitcher-1.2.0-py3-none-any.whl (22.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aioswitcher-1.2.0.tar.gz
  • Upload date:
  • Size: 18.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7

File hashes

Hashes for aioswitcher-1.2.0.tar.gz
Algorithm Hash digest
SHA256 78f55ba868eb70fed5cc8b25da06ba633bc7f7b2a520c0f06cb7115433a103a1
MD5 24ebbd4d8bdfa4ca0f0c98c088d626e9
BLAKE2b-256 9bd633887a5c09efaebc841eb7fe15fc4e06bc8d652520cc0081e7b76242857b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aioswitcher-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 22.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7

File hashes

Hashes for aioswitcher-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8503434c33a12940a58117e0784387125fbe40ff99eb714c8274c8ff0d25fd0c
MD5 0d89817535522d1bf71c5dd1f8bc5afa
BLAKE2b-256 3542c8d5392f48c703834cf7433fd8a5b0a35861da04f9d29f38dd8ecdf568fb

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