Switcher Python Integration.
Project description
Switcher Python Integration
![license-badge](https://pypi-camo.freetls.fastly.net/1fb19fa79d9218bba5b7907a85b5876c8830d17b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f746f6d657266692f61696f7377697463686572)
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 hashes)
Built Distribution
Close
Hashes for aioswitcher-2.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f454102055186a82db9ecc94ad2e0df61d7c708c3fbcca467c380920dd4ad11e |
|
MD5 | dd98de40e4c2778c0388616fee0dbe43 |
|
BLAKE2b-256 | cbcd065876adc1089bbe9f85b54de6652a806ad485e7531d4151657d8db0def5 |