Switcher Python Integration.
Project description
Switcher Python Integration
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
- discover_devices.py can discover devices and their states.
- control_device.py can to control a device.
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
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.5.tar.gz
(19.2 kB
view details)
Built Distribution
File details
Details for the file aioswitcher-2.0.5.tar.gz
.
File metadata
- Download URL: aioswitcher-2.0.5.tar.gz
- Upload date:
- Size: 19.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d60edce070dd09149c8dfb87abdf295802b8409dffa729a1d6ab165ca1daba23 |
|
MD5 | c6013d3df73809b315b931220b993a1c |
|
BLAKE2b-256 | 3a570b1d4f2d6c2f2988221bcadf6958fa76cadb07ce1094db5a9636c8211c60 |
File details
Details for the file aioswitcher-2.0.5-py3-none-any.whl
.
File metadata
- Download URL: aioswitcher-2.0.5-py3-none-any.whl
- Upload date:
- Size: 24.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f454102055186a82db9ecc94ad2e0df61d7c708c3fbcca467c380920dd4ad11e |
|
MD5 | dd98de40e4c2778c0388616fee0dbe43 |
|
BLAKE2b-256 | cbcd065876adc1089bbe9f85b54de6652a806ad485e7531d4151657d8db0def5 |