Switcher Unofficial Integration.
Project description
Switcher Unofficial Integration
PyPi module integrating with various Switcher smart water heaters and
power plugs.
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
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.2.tar.gz
(18.9 kB
view hashes)
Built Distribution
Close
Hashes for aioswitcher-2.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cfc54ddd2efa3504a126eb24b6a1a554ebc7319514373c09ab386a30e6bc54b3 |
|
MD5 | 10360dd9230c727b84f3333f455c5c6d |
|
BLAKE2b-256 | 71b30aee0e758a62bd46157e4ec4bc5e91d72ec9580452a431713d33c846bdd5 |