Skip to main content

Interact with the Luup API from your Vera Controller

Project description

Python-luup library allow you to interact with the Luup API from your Vera Controller. It provides interface for most Luup requests and an EventLoop to monitor changes and job asynchronously.

Installation

The latest stable version can be installed using

$ pip install python-luup

Usage

>>> import luup
>>> luupc = luup.Client('http://127.0.0.1/port_3480/')
>>> evtl = luup.EventLoop(luupc)
>>> def print_device(self, device):
...             print(device)
...
>>> evtl.on_device_change = print_device
>>> evtl.loop_start() # Now monitoring every device changes
>>> luupc.action(3, 'urn:upnp-org:serviceId:SwitchPower1', 'SetTarget', dict(newTargerValue=1))

See help(luup) for more usage examples

Project details


Release history Release notifications

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page