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

Uploaded Source

Built Distribution

aioswitcher-2.0.6-py3-none-any.whl (24.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aioswitcher-2.0.6.tar.gz
  • Upload date:
  • Size: 19.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.8 CPython/3.9.7 Linux/5.8.0-1041-azure

File hashes

Hashes for aioswitcher-2.0.6.tar.gz
Algorithm Hash digest
SHA256 dc71d620d8ac814957cd0914a1aedcbb09a197c619062c5de653798d8488a87a
MD5 410f05414502facb230d33360fb84021
BLAKE2b-256 2b1df2679296f37e6461a13fde925168fd9a05c99738a6164353ac07539273ee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aioswitcher-2.0.6-py3-none-any.whl
  • Upload date:
  • Size: 24.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.8 CPython/3.9.7 Linux/5.8.0-1041-azure

File hashes

Hashes for aioswitcher-2.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 eab5c789eb184569b3b4b18aa633d223675efc88a2ab32c7dd9dffb732d5267e
MD5 c07c1c3eb3f3bb01c6a5d2b8b7ebbd44
BLAKE2b-256 ca1fcbe786afa987c1b1c500abdeaaa8c3e83ad3b19da310128ba69e5958d066

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