Skip to main content

Switcher Python Integration.

Project description

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

gh-build-status gh-pages-status codecov

PyPi module integrating with various Switcher devices.
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

Thanks

  • Preliminary work done by Shai and Aviad in Switcher-V2-Python.
  • Research and help for advancing and adding features by Shay.
  • Cooperation and general support by the people at Switcher.

Disclaimer

This is NOT an official module and it is NOT officially supported by the vendor.

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

Uploaded Source

Built Distribution

aioswitcher-2.0.4-py3-none-any.whl (24.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aioswitcher-2.0.4.tar.gz
  • Upload date:
  • Size: 19.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for aioswitcher-2.0.4.tar.gz
Algorithm Hash digest
SHA256 7f2ef0d28698ac5a6ff30a1760c4d49beac3273d8537a259a867a81b82e995cf
MD5 44699c59a4a405f45a3aeab6704f870a
BLAKE2b-256 c4a164a3d0ee86626a74e67883f53630d23d6364cd105d5709cfb9d565bc87f2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aioswitcher-2.0.4-py3-none-any.whl
  • Upload date:
  • Size: 24.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for aioswitcher-2.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6ead5727f511860e57b73be02dc24a0556b70220d2fabb92ba70561fc2aefdec
MD5 14eed547ba041818a6dd1d9c1d782078
BLAKE2b-256 cdeb90d9d0c58370b1afaeec3d01dcf88c3e04789e699106973759ff85b7c144

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