python-velbus


Namepython-velbus JSON
Version 2.1.14 PyPI version JSON
download
home_pagehttps://github.com/thomasdelaet/python-velbus
SummaryPython Library for the Velbus protocol
upload_time2023-11-11 12:48:36
maintainer
docs_urlNone
authorThomas Delaet
requires_python
licenseMIT
keywords home velbus automation
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ## python-velbus: A python library to control the Velbus home automation system

| :warning: WARNING                                                                                                                                         |
|:----------------------------------------------------------------------------------------------------------------------------------------------------------|
| This Library was used as the backend for home-assistant, but it has been replaced with the [velbus-aio](https://github.com/Cereal2nd/velbus-aio) library. |

This library was created to support the Velbus protocol in my home automation efforts.

The latest version of the library is published as a python package on [pypi](https://pypi.python.org/pypi/python-velbus)

I would like to extend this module to support all Velbus modules, so feel free to submit pull requests or log issues through [github](http://www.github.com/thomasdelaet/python-velbus) for functionality you like to have included.

API documentation is available [here](http://python-velbus.readthedocs.io/en/latest/)

# Port format

There are 3 possible port formats:
- /dev/ttyACME0             = A direct connection to a serial device (for vmbusb for example)
- ip:port               = A connection to a TCP/IP port
- tls://signum ip:27015   = A connection to a signum ip

# Installation

You can install the library with pip (*pip install python-velbus*) or by checking out the [github](https://github.com/thomasdelaet/python-velbus) repository and running *python setup.py install* at the root of the repository.

# Supported modules

The following Velbus modules are currently supported by this library:

| Module name | Description | Comments |
| ----------- | ----------- | -------- |
| VMB1BL | 1 channel blind module | All messages are supported |
| VMB1BLS | 1 channel blind module | All messages are supported |
| VMB1LED | 1 channel LED dimmer module | All messages are supported |
| VMB1RS | Serial interface | All messages are supported |
| VMB1RY | 1 channel relay module | All messages are supported |
| VMB1RYS | 1 channel relay module | All messages are supported |
| VMB1RYNO | 1 channel relay module | All messages are supported |
| VMB1RYNOS | 1 channel relay module | All messages are supported |
| VMB1TS | 1 channel temperatue sensor | Temperature supported |
| VMB1USB | USB configuration module | All messages are supported |
| VMB2BL | 2 channel blind module | All messages are supported |
| VMB2BLE | 2 channel blind module | All messages are supported |
| VMB2PBN | 2 channel input module | All messages are supported |
| VMB4DC | 4 channel 0-10 dimmer module |All messages are supported |
| VMB4RY | 4 channel relay module | All messages are supported |
| VMB4RYLD | 4 channel relay module | All messages are supported |
| VMB4RYNO | 4 channel relay module | All messages are supported |
| VMB6IN | 6 channel input module | All messages are supported |
| VMB6PBN | 6 channel input module | All messages are supported |
| VMB7IN | 7 channel input module | All messages are supported |
| VMB8PBU | 8 channel input module | All messages are supported |
| VMBDME | 1 channel dimmer module | All messages are supported |
| VMBDMI | 1 channel dimmer module | All messages are supported |
| VMBDMI-R | 1 channel dimmer module | All messages are supported |
| VMBGP1 | 1 channel glass panel | Input and Temperature supported |
| VMBGP1-2 | 1 channel glass panel | Input and Temperature supported |
| VMBGP2 | 2 channel glass panel | Input and Temperature supported |
| VMBGP2-2 | 2 channel glass panel | Input and Temperature supported |
| VMBGP4 | 4 channel glass panel | Input and Temperature supported |
| VMBGP4-2 | 4 channel glass panel | Input and Temperature supported |
| VMBGPO | 72 channel glass panel with oled | Input and Temperature supported |
| VMBGPOD | 72 channel glass panel with oled and thermostat | Input and Temperature supported |
| VMBMETEO | meteo modules | Temperature, wind, rain and light sensor supported |
| VMBRSUSB | Configuration module with USB and RS-232 interface | All messages are supported |
| VMBEL1 | 1 channel glass panel Edge Lit | Input and Temperature supported |
| VMBEL2 | 2 channel glass panel Edge Lit | Input and Temperature supported |
| VMBEL2 | 2 channel glass panel Edge Lit | Input and Temperature supported |
| VMBEL4 | 4 channel glass panel Edge Lit | Input and Temperature supported |
| VMBELO | 72 channel glass panel Edge Lit with thermostat and oled screen | Input and Temperature supported |

# Adding support for other modules

The [velbus website](http://www.velbus.eu) contains an overview of the different available modules and their protocol documentation. In order to add support for an additional module, read through the protocol documemntation and add support for missing messages (many messages are shared between modules so make sure to check if a message already exists or not)

Steps to add support for an additional module:

- [ ] Look up the protocol documentation of the module you want to include at the [velbus website](https://www.velbus.eu/products/): Select the module, go to *Downloads* and search for the info sheet with protocol information.
- [ ] Go through the messages directory and look for messages in the protocol information sheet that are not yet supported. Create a new file in the *messages* folder for each unsupported message. Every new message should inherit from the *Message* object and reuse common functionality.
- [ ] Implement constructor method for each new message
- [ ] Implement the *populate* and *data_to_binary* methods for each new message
- [ ] If the message has other than low priority or no RTR set (which are defaults), then re-implement *set_defaults* method
- [ ] Add new messages to the *__init__.py* file in the *messages* folder
- [ ] Test and iterate
- [ ] Update the Supported modules section of the *README.md* file
- [ ] Submit a pull request on Github

# Further development

The library currently offers only the lowest level of functionality: sending and receiving messages to modules. I plan to extend this library with more higher-level functionality such as:

- [x] Modeling modules and their supported functions as entities
- [ ] Only allowing to send supported messages to modules
- [x] Auto-discovery of modules
- [ ] Exposing the velbus controller as an external API so it can be shared between different consumers



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/thomasdelaet/python-velbus",
    "name": "python-velbus",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "home,velbus,automation",
    "author": "Thomas Delaet",
    "author_email": "thomas@delaet.org",
    "download_url": "https://files.pythonhosted.org/packages/c5/28/382d433677a0e24f3b9cfc022d9a27bc1dd1df2feaa2788bc352e834e0ae/python-velbus-2.1.14.tar.gz",
    "platform": "any",
    "description": "## python-velbus: A python library to control the Velbus home automation system\n\n| :warning: WARNING                                                                                                                                         |\n|:----------------------------------------------------------------------------------------------------------------------------------------------------------|\n| This Library was used as the backend for home-assistant, but it has been replaced with the [velbus-aio](https://github.com/Cereal2nd/velbus-aio) library. |\n\nThis library was created to support the Velbus protocol in my home automation efforts.\n\nThe latest version of the library is published as a python package on [pypi](https://pypi.python.org/pypi/python-velbus)\n\nI would like to extend this module to support all Velbus modules, so feel free to submit pull requests or log issues through [github](http://www.github.com/thomasdelaet/python-velbus) for functionality you like to have included.\n\nAPI documentation is available [here](http://python-velbus.readthedocs.io/en/latest/)\n\n# Port format\n\nThere are 3 possible port formats:\n- /dev/ttyACME0             = A direct connection to a serial device (for vmbusb for example)\n- ip:port               = A connection to a TCP/IP port\n- tls://signum ip:27015   = A connection to a signum ip\n\n# Installation\n\nYou can install the library with pip (*pip install python-velbus*) or by checking out the [github](https://github.com/thomasdelaet/python-velbus) repository and running *python setup.py install* at the root of the repository.\n\n# Supported modules\n\nThe following Velbus modules are currently supported by this library:\n\n| Module name | Description | Comments |\n| ----------- | ----------- | -------- |\n| VMB1BL | 1 channel blind module | All messages are supported |\n| VMB1BLS | 1 channel blind module | All messages are supported |\n| VMB1LED | 1 channel LED dimmer module | All messages are supported |\n| VMB1RS | Serial interface | All messages are supported |\n| VMB1RY | 1 channel relay module | All messages are supported |\n| VMB1RYS | 1 channel relay module | All messages are supported |\n| VMB1RYNO | 1 channel relay module | All messages are supported |\n| VMB1RYNOS | 1 channel relay module | All messages are supported |\n| VMB1TS | 1 channel temperatue sensor | Temperature supported |\n| VMB1USB | USB configuration module | All messages are supported |\n| VMB2BL | 2 channel blind module | All messages are supported |\n| VMB2BLE | 2 channel blind module | All messages are supported |\n| VMB2PBN | 2 channel input module | All messages are supported |\n| VMB4DC | 4 channel 0-10 dimmer module |All messages are supported |\n| VMB4RY | 4 channel relay module | All messages are supported |\n| VMB4RYLD | 4 channel relay module | All messages are supported |\n| VMB4RYNO | 4 channel relay module | All messages are supported |\n| VMB6IN | 6 channel input module | All messages are supported |\n| VMB6PBN | 6 channel input module | All messages are supported |\n| VMB7IN | 7 channel input module | All messages are supported |\n| VMB8PBU | 8 channel input module | All messages are supported |\n| VMBDME | 1 channel dimmer module | All messages are supported |\n| VMBDMI | 1 channel dimmer module | All messages are supported |\n| VMBDMI-R | 1 channel dimmer module | All messages are supported |\n| VMBGP1 | 1 channel glass panel | Input and Temperature supported |\n| VMBGP1-2 | 1 channel glass panel | Input and Temperature supported |\n| VMBGP2 | 2 channel glass panel | Input and Temperature supported |\n| VMBGP2-2 | 2 channel glass panel | Input and Temperature supported |\n| VMBGP4 | 4 channel glass panel | Input and Temperature supported |\n| VMBGP4-2 | 4 channel glass panel | Input and Temperature supported |\n| VMBGPO | 72 channel glass panel with oled | Input and Temperature supported |\n| VMBGPOD | 72 channel glass panel with oled and thermostat | Input and Temperature supported |\n| VMBMETEO | meteo modules | Temperature, wind, rain and light sensor supported |\n| VMBRSUSB | Configuration module with USB and RS-232 interface | All messages are supported |\n| VMBEL1 | 1 channel glass panel Edge Lit | Input and Temperature supported |\n| VMBEL2 | 2 channel glass panel Edge Lit | Input and Temperature supported |\n| VMBEL2 | 2 channel glass panel Edge Lit | Input and Temperature supported |\n| VMBEL4 | 4 channel glass panel Edge Lit | Input and Temperature supported |\n| VMBELO | 72 channel glass panel Edge Lit with thermostat and oled screen | Input and Temperature supported |\n\n# Adding support for other modules\n\nThe [velbus website](http://www.velbus.eu) contains an overview of the different available modules and their protocol documentation. In order to add support for an additional module, read through the protocol documemntation and add support for missing messages (many messages are shared between modules so make sure to check if a message already exists or not)\n\nSteps to add support for an additional module:\n\n- [ ] Look up the protocol documentation of the module you want to include at the [velbus website](https://www.velbus.eu/products/): Select the module, go to *Downloads* and search for the info sheet with protocol information.\n- [ ] Go through the messages directory and look for messages in the protocol information sheet that are not yet supported. Create a new file in the *messages* folder for each unsupported message. Every new message should inherit from the *Message* object and reuse common functionality.\n- [ ] Implement constructor method for each new message\n- [ ] Implement the *populate* and *data_to_binary* methods for each new message\n- [ ] If the message has other than low priority or no RTR set (which are defaults), then re-implement *set_defaults* method\n- [ ] Add new messages to the *__init__.py* file in the *messages* folder\n- [ ] Test and iterate\n- [ ] Update the Supported modules section of the *README.md* file\n- [ ] Submit a pull request on Github\n\n# Further development\n\nThe library currently offers only the lowest level of functionality: sending and receiving messages to modules. I plan to extend this library with more higher-level functionality such as:\n\n- [x] Modeling modules and their supported functions as entities\n- [ ] Only allowing to send supported messages to modules\n- [x] Auto-discovery of modules\n- [ ] Exposing the velbus controller as an external API so it can be shared between different consumers\n\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Python Library for the Velbus protocol",
    "version": "2.1.14",
    "project_urls": {
        "Homepage": "https://github.com/thomasdelaet/python-velbus"
    },
    "split_keywords": [
        "home",
        "velbus",
        "automation"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "09dcc567e1953c848b2d906e22b82804b50cbc76bbd2a33261e1704f7733e9a3",
                "md5": "382d214ded23e7f5ae424bc72539dbed",
                "sha256": "e8b79981881bd869ef178a099be25143d19b552f2ecd3a07b396ac44c2ba0533"
            },
            "downloads": -1,
            "filename": "python_velbus-2.1.14-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "382d214ded23e7f5ae424bc72539dbed",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 80466,
            "upload_time": "2023-11-11T12:48:35",
            "upload_time_iso_8601": "2023-11-11T12:48:35.126131Z",
            "url": "https://files.pythonhosted.org/packages/09/dc/c567e1953c848b2d906e22b82804b50cbc76bbd2a33261e1704f7733e9a3/python_velbus-2.1.14-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c528382d433677a0e24f3b9cfc022d9a27bc1dd1df2feaa2788bc352e834e0ae",
                "md5": "1c1b0ef9b174be1c60cfb4981fc92399",
                "sha256": "dde0df5cf30ed7aed023fba62c18e51d3055ebb5d0f106248381337eb453c3a3"
            },
            "downloads": -1,
            "filename": "python-velbus-2.1.14.tar.gz",
            "has_sig": false,
            "md5_digest": "1c1b0ef9b174be1c60cfb4981fc92399",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 34134,
            "upload_time": "2023-11-11T12:48:36",
            "upload_time_iso_8601": "2023-11-11T12:48:36.974205Z",
            "url": "https://files.pythonhosted.org/packages/c5/28/382d433677a0e24f3b9cfc022d9a27bc1dd1df2feaa2788bc352e834e0ae/python-velbus-2.1.14.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-11-11 12:48:36",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "thomasdelaet",
    "github_project": "python-velbus",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "python-velbus"
}
        
Elapsed time: 0.56398s