Skip to main content

SDK for communication with jbmedia light manager air

Project description

Light Manager Air SDK (Python)

This is an SDK for communication with the light manager air from the vendor jb media (https://www.jbmedia.eu/light-manager/).

The loading of zones, actuators and scenes is supported as well as the execution of the respective commands.

It is also possible to listen for radio bus signals.

For getting the connection to the devices service discovery is also available.

Installation

pip install light-manager-air

Examples

Connect to Light Manager Air by url

light_manager = LMAir("http://lmair")

Or connect to Light Manager Air by service discovery (recommended)

light_managers = LMAir.discover()
assert len(light_managers) > 0
light_manager = light_managers[0]

Call a specific command

zones, scenes = light_manager.load_fixtures()
zones[0].actuators[0].commands[0].call()

Turn a light on when a radio bus signal is received

def callback(data):
    if data == "12282E9A":
        zones[0].actuators[0].commands[0].call()
        light_manager.stop_radio_bus_listening()

light_manager.start_radio_bus_listening(callback)

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

light-manager-air-1.2.1.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

light_manager_air-1.2.1-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file light-manager-air-1.2.1.tar.gz.

File metadata

  • Download URL: light-manager-air-1.2.1.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.3

File hashes

Hashes for light-manager-air-1.2.1.tar.gz
Algorithm Hash digest
SHA256 d7779a76df7e2955da751336be57f7ca5982b6c0a197d58107883c00fbb74b66
MD5 859bea690c4bb8d00f74c4890d3226e9
BLAKE2b-256 debdc864f902ba8cdd7811c373d9ea79573f8f6f4c3b80871033290194bdcd9a

See more details on using hashes here.

File details

Details for the file light_manager_air-1.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for light_manager_air-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5fce58dba415da69c06fb34da557608d783e9a2f2d872a9569b1af772c984b8b
MD5 da002f1b823dd7ac053252e0831a0967
BLAKE2b-256 f9c22caf740e142a58dffd59f4d65639adb36fc40310a4c0a239f6e9114f6609

See more details on using hashes here.

Supported by

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