Metadata-Version: 2.1
Name: light-manager-air
Version: 1.0.0
Summary: SDK for communication with jbmedia light manager air
Author-email: Korbinian Mifka <info@korbinian-mifka.com>
Project-URL: Homepage, https://github.com/kmifka/lmair-sdk-python.git
Keywords: jbmedia,smart home,light manager
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Provides-Extra: dev
License-File: LICENCE

# 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.

## Examples

Connect to Light Manager Air

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


Call a specific command

    zones, scenes = lmair.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()
            lmair.stop_radio_bus_listening()

    lmair.start_radio_bus_listening(callback)

    
