Skip to main content

Async Lutron Integration Protocol

Project description

Async Lutron Integration Protocol

https://img.shields.io/pypi/v/aiolip.svg https://img.shields.io/travis/bdraco/aiolip.svg Documentation Status

Async Lutron Integration Protocol

Example Usage

import asyncio
import logging

from aiolip import LIP
from aiolip.data import LIPMode

_LOGGER = logging.getLogger(__name__)


async def main():
lip = LIP()

logging.basicConfig(level=logging.DEBUG)

await lip.async_connect("192.168.209.70")

def message(msg):
        _LOGGER.warning(msg)

lip.subscribe(message)
run_task = asyncio.create_task(lip.async_run())
await run_task
await lip.async_stop()

if __name__ == "__main__":
loop = asyncio.get_event_loop()
loop.run_until_complete(main())

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

1.0.0 (2021-01-18)

  • First release on PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aiolip-1.1.6.tar.gz (19.8 kB view hashes)

Uploaded Source

Built Distribution

aiolip-1.1.6-py2.py3-none-any.whl (10.3 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page