light-manager-air


Namelight-manager-air JSON
Version 1.2.1 PyPI version JSON
download
home_page
SummarySDK for communication with jbmedia light manager air
upload_time2023-01-27 12:01:30
maintainer
docs_urlNone
author
requires_python>=3.9
license
keywords jbmedia smart home light manager
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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)

    

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "light-manager-air",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": "",
    "keywords": "jbmedia,smart home,light manager",
    "author": "",
    "author_email": "Korbinian Mifka <info@korbinian-mifka.com>",
    "download_url": "https://files.pythonhosted.org/packages/de/bd/c864f902ba8cdd7811c373d9ea79573f8f6f4c3b80871033290194bdcd9a/light-manager-air-1.2.1.tar.gz",
    "platform": null,
    "description": "# Light Manager Air SDK (Python)\n\nThis is an SDK for communication with the light manager air from the vendor jb media (https://www.jbmedia.eu/light-manager/).\n\nThe loading of zones, actuators and scenes is supported as well as the execution of the respective commands.\n\nIt is also possible to listen for radio bus signals.\n\nFor getting the connection to the devices service discovery is also available.\n\n## Installation\n\n    pip install light-manager-air\n\n## Examples\n\n### Connect to Light Manager Air by url\n\n    light_manager = LMAir(\"http://lmair\")\n\n### Or connect to Light Manager Air by service discovery (recommended)\n\n    light_managers = LMAir.discover()\n    assert len(light_managers) > 0\n    light_manager = light_managers[0]\n\n### Call a specific command\n\n    zones, scenes = light_manager.load_fixtures()\n    zones[0].actuators[0].commands[0].call()\n\n### Turn a light on when a radio bus signal is received\n\n    def callback(data):\n        if data == \"12282E9A\":\n            zones[0].actuators[0].commands[0].call()\n            light_manager.stop_radio_bus_listening()\n\n    light_manager.start_radio_bus_listening(callback)\n\n    \n",
    "bugtrack_url": null,
    "license": "",
    "summary": "SDK for communication with jbmedia light manager air",
    "version": "1.2.1",
    "split_keywords": [
        "jbmedia",
        "smart home",
        "light manager"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f9c22caf740e142a58dffd59f4d65639adb36fc40310a4c0a239f6e9114f6609",
                "md5": "da002f1b823dd7ac053252e0831a0967",
                "sha256": "5fce58dba415da69c06fb34da557608d783e9a2f2d872a9569b1af772c984b8b"
            },
            "downloads": -1,
            "filename": "light_manager_air-1.2.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "da002f1b823dd7ac053252e0831a0967",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 6331,
            "upload_time": "2023-01-27T12:01:25",
            "upload_time_iso_8601": "2023-01-27T12:01:25.768143Z",
            "url": "https://files.pythonhosted.org/packages/f9/c2/2caf740e142a58dffd59f4d65639adb36fc40310a4c0a239f6e9114f6609/light_manager_air-1.2.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "debdc864f902ba8cdd7811c373d9ea79573f8f6f4c3b80871033290194bdcd9a",
                "md5": "859bea690c4bb8d00f74c4890d3226e9",
                "sha256": "d7779a76df7e2955da751336be57f7ca5982b6c0a197d58107883c00fbb74b66"
            },
            "downloads": -1,
            "filename": "light-manager-air-1.2.1.tar.gz",
            "has_sig": false,
            "md5_digest": "859bea690c4bb8d00f74c4890d3226e9",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 6232,
            "upload_time": "2023-01-27T12:01:30",
            "upload_time_iso_8601": "2023-01-27T12:01:30.830886Z",
            "url": "https://files.pythonhosted.org/packages/de/bd/c864f902ba8cdd7811c373d9ea79573f8f6f4c3b80871033290194bdcd9a/light-manager-air-1.2.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-01-27 12:01:30",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "light-manager-air"
}
        
Elapsed time: 0.03372s