Skip to main content

Switcher Unofficial Integration.

Project description

Switcher Unofficial Integration
pypi-version pypi-downloads license-badge

gh-build-status gh-pages-status codecov

PyPi module integrating with various Switcher smart water heaters and power plugs.
Check out the wiki pages for a list of supported devices.

Install

pip install aioswitcher

Usage Example

async with SwitcherApi(device_ip, device_id) as swapi:
    # get the device state
    state_response = await swapi.get_state()

    # control the device on for 15 minutes and then turn it off
    await swapi.control_device(Command.ON, 15)
    await swapi.control_device(Command.OFF)

    # create a new recurring schedule
    await swapi.create_schedule("13:00", "14:30", {Days.SUNDAY, Days.FRIDAY})

Check out the documentation for a more detailed usage section.

Command Line Helper Scripts

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

Uploaded Source

Built Distribution

aioswitcher-2.0.2-py3-none-any.whl (24.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aioswitcher-2.0.2.tar.gz
  • Upload date:
  • Size: 18.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.6

File hashes

Hashes for aioswitcher-2.0.2.tar.gz
Algorithm Hash digest
SHA256 10b361d5e3e4e09b6d07465630bf8591f2150e2b032b29ad31c22f31343aad5e
MD5 69783b1614ec515880b1678d3dd36c42
BLAKE2b-256 dbde467eb80f5d2013629e8669eb4914e78d796702ff0e0fdd26730a463e1cd1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aioswitcher-2.0.2-py3-none-any.whl
  • Upload date:
  • Size: 24.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.6

File hashes

Hashes for aioswitcher-2.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cfc54ddd2efa3504a126eb24b6a1a554ebc7319514373c09ab386a30e6bc54b3
MD5 10360dd9230c727b84f3333f455c5c6d
BLAKE2b-256 71b30aee0e758a62bd46157e4ec4bc5e91d72ec9580452a431713d33c846bdd5

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