Skip to main content

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

Release history Release notifications | RSS feed

This release

0.0.1 This release

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page