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

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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: aioswitcher-1.2.2.tar.gz
  • Upload date:
  • Size: 18.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.7

File hashes

Hashes for aioswitcher-1.2.2.tar.gz
Algorithm Hash digest
SHA256 86dc30e2297ef541f7b6f6aada0a02643bb063932ad9a200c3f19f08f11cd977
MD5 f9705182dc9f1c606e27c90374faacb8
BLAKE2b-256 e54a14f2057405d24ff30c271741f7de59f2729933e56c696c1f6c219c310e95

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aioswitcher-1.2.2-py3-none-any.whl
  • Upload date:
  • Size: 22.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.7

File hashes

Hashes for aioswitcher-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bcf8f4eb657075f4732d1fcab59cdd9e99f532de55b6a1e0be70223cf8298888
MD5 f448d85891b6baec3b78db2b169ff8fb
BLAKE2b-256 d1c21a715d05550bb817edd679974d92baaff03d7e39c90006428c866a696760

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