Switcher Unofficial Integration.
Project description
Switcher Unofficial Integration
PyPi module named aioswitcher for integrating with the Switcher Devices.
Please check out the documentation.
Install
pip install aioswitcher
Usage Example
Please check out the documentation for the full usage section.
async with SwitcherApi(device_ip, device_id) as api:
# get the device state
state_response = await swapi.get_state()
# control the device on for 15 minutes and then turn it off
await api.control_device(Command.ON, 15)
await api.control_device(Command.OFF)
Command Line Helper Scripts
- discover_devices.py can be used to discover devices and their states.
- control_device.py can be used to control a device.
Contributing
The contributing guidelines are here
Code of Conduct
The code of conduct is here
Project details
Release history Release notifications | RSS feed
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.0.tar.gz
(18.7 kB
view details)
Built Distribution
File details
Details for the file aioswitcher-2.0.0.tar.gz
.
File metadata
- Download URL: aioswitcher-2.0.0.tar.gz
- Upload date:
- Size: 18.7 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.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e15d7bb41a0c883ae5008747c85546f2dbc07f89a6b1db9ef88247e88527998 |
|
MD5 | 41a9d9f6c0cfd93381011c6be28167e3 |
|
BLAKE2b-256 | 07d9286d916ad2d89484107e39066b5cdf1c882ec6a5f03552d005ded8035831 |
File details
Details for the file aioswitcher-2.0.0-py3-none-any.whl
.
File metadata
- Download URL: aioswitcher-2.0.0-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.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb545aef054a30a47ce6b4a2c434ee3e6c95d829913770be6182f0c97a7683bd |
|
MD5 | f45d4b9114ae84585e397c2e2345a785 |
|
BLAKE2b-256 | cbf0eb7a3f52f5d9ce310eec96c70538026bd01ade006e5cb44085d53c3aad18 |