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.

Files for aioswitcher, version 2.0.6
Filename, size File type Python version Upload date Hashes
Filename, size aioswitcher-2.0.6-py3-none-any.whl (24.1 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size aioswitcher-2.0.6.tar.gz (19.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page