All Projects → thomasdelaet → python-velbus

thomasdelaet / python-velbus

Licence: MIT license
A python library to control the Velbus home automation system

Programming Languages

python
139335 projects - #7 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to python-velbus

Scheduler Card
HA Lovelace card for control of scheduler entities
Stars: ✭ 154 (+1000%)
Mutual labels:  home, home-assistant
Hass Data Detective
Explore and analyse your Home Assistant data
Stars: ✭ 109 (+678.57%)
Mutual labels:  home, home-assistant
Streamdeck Homeassistant
🏠 Use the Elgato Stream Deck as Home Assistant controller. Call any available service and toggle lights or resume your music.
Stars: ✭ 69 (+392.86%)
Mutual labels:  home, home-assistant
Hass Custom Alarm
Yet another take on a home assistant custom alarm
Stars: ✭ 213 (+1421.43%)
Mutual labels:  home, home-assistant
docker-iot-stack
💻 My personal Docker IoT Stack
Stars: ✭ 24 (+71.43%)
Mutual labels:  home-assistant
weback-hass
Weback integration with Home Assistant
Stars: ✭ 33 (+135.71%)
Mutual labels:  home-assistant
xiaomiplug
Xiaomi Mi Smart WiFi Socket integration for Home Assistant
Stars: ✭ 99 (+607.14%)
Mutual labels:  home-assistant
Home-Assistant-Sensor-Afvalbeheer
Provides Home Assistant sensors for multiple Dutch and Belgium waste collectors
Stars: ✭ 157 (+1021.43%)
Mutual labels:  home-assistant
floor3d-card
Your Home Digital Twin: aka floor3d-card. Visualize Home Assistant state and perform actions using objects in a 3D home model based on Three.js.
Stars: ✭ 237 (+1592.86%)
Mutual labels:  home-assistant
hifiberry
This is a custom component to allow control of HifiberryOS devices in Home Assistant using the audiocontrol2 REST API.
Stars: ✭ 26 (+85.71%)
Mutual labels:  home-assistant
home-assistant-config
My home-assistant configuration
Stars: ✭ 48 (+242.86%)
Mutual labels:  home-assistant
home-assistant-addons
Alex's Home Assistant Add-ons
Stars: ✭ 28 (+100%)
Mutual labels:  home-assistant
github-custom-component-tutorial
A tutorial for creating a custom component for Home Assistant using GitHub's API.
Stars: ✭ 31 (+121.43%)
Mutual labels:  home-assistant
home-assistant-svt-play
Play SVT Play videos and channels via home assistant
Stars: ✭ 17 (+21.43%)
Mutual labels:  home-assistant
google fit hass
A Home assistant custom component to get your fitness information using Google Fitness API.
Stars: ✭ 23 (+64.29%)
Mutual labels:  home-assistant
Devices
All the Candle Arduino code
Stars: ✭ 18 (+28.57%)
Mutual labels:  home
double-take
Unified UI and API for processing and training images for facial recognition.
Stars: ✭ 585 (+4078.57%)
Mutual labels:  home-assistant
hassio-addons
Home Assistant Add-ons
Stars: ✭ 22 (+57.14%)
Mutual labels:  home-assistant
home-assistant-goodwe-inverter
Experimental version of Home Assistant integration for Goodwe solar inverters
Stars: ✭ 80 (+471.43%)
Mutual labels:  home-assistant
home-assistant-neerslag-card
Display Buienalarm and/or Buienradar data in a graph for Home Assistant.
Stars: ✭ 21 (+50%)
Mutual labels:  home-assistant

python-velbus: A python library to control the Velbus home automation system

⚠️ WARNING
This Library was used as the backend for home-assistant, but it has been replaced with the 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

I would like to extend this module to support all Velbus modules, so feel free to submit pull requests or log issues through github for functionality you like to have included.

API documentation is available here

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 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 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: 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:

  • Modeling modules and their supported functions as entities
  • Only allowing to send supported messages to modules
  • Auto-discovery of modules
  • Exposing the velbus controller as an external API so it can be shared between different consumers
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].