{ "info": { "author": "Tomer Figenblat", "author_email": "tomer.figenblat@gmail.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Topic :: Home Automation", "Topic :: Software Development :: Libraries :: Python Modules", "Typing :: Typed" ], "description": "# Switcher Python Integration[![pypi-version]][11] [![pypi-downloads]][11] [![license-badge]][4]\n\n[![gh-build-status]][7] [![gh-pages-status]][8] [![codecov]][3]\n\nPyPi module integrating with various [Switcher][12] devices.\nCheck out the [wiki pages][0] for a list of supported devices.\n\n## Install\n\n```shell\npip install aioswitcher\n```\n\n## Usage Example\n\n```python\nasync with SwitcherApi(device_ip, device_id) as swapi:\n # get the device state\n state_response = await swapi.get_state()\n\n # control the device on for 15 minutes and then turn it off\n await swapi.control_device(Command.ON, 15)\n await swapi.control_device(Command.OFF)\n\n # create a new recurring schedule\n await swapi.create_schedule(\"13:00\", \"14:30\", {Days.SUNDAY, Days.FRIDAY})\n```\n\nCheck out the [documentation][8] for a more detailed usage section.\n\n## Command Line Helper Scripts\n\n- [discover_devices.py](scripts/discover_devices.py) can discover devices and their\n states.\n- [control_device.py](scripts/control_device.py) can control a device.\n\n## Contributing\n\nThe contributing guidelines are [here](.github/CONTRIBUTING.md)\n\n## Code of Conduct\n\nThe code of conduct is [here](.github/CODE_OF_CONDUCT.md)\n\n## Disclaimer\n\nThis is **NOT** an official module and it is **NOT** officially supported by the vendor.\nThat said, thanks are in order to all the people at [Switcher][12] for their cooperation and general support.\n\n## Contributors\n\nThanks goes to these wonderful people ([emoji key][1]):\n\n\n\n\n