Sign inSign up

phpmonkeys/vlx2mqtt

By phpmonkeys

Updated over 5 years ago

Connecting a Velux KLF 200 to MQTT

Image
0

10K+

phpmonkeys/vlx2mqtt repository overview

vlx2mqtt container

connecting the velux KLF 200 to MQTT and allow any MQTT client change the positions and receive the current positions of your shutter or blinds.

architectures

The architecture selection is done automatically and vlx2mqtt supports:

  • amd64 - most desktop PCs and server
  • ARMv7 - Raspberry devices and other 32 bit arm board
  • ARMv8 - 64 bit arm boards
Configuration
# MQTT broker related config
[mqtt]
host = 127.0.0.1
port = 1883

# login is optional, but password is needed if login is set
login = mqttlogin
password = mqttpassword

# root of the used topics
roottopic = vlx2mqtt
# topic for status messages
statustopic = status

## tls support since version 1.1
[tls]
enabled = no
allow_insecure = yes
cert_path = /certs/

# KLF200 related config
[velux]
host = VELUX_KLF_3CB3
password = klf200WiFiPassword

[log]
verbose = false
Usage

To run vlx2mqtt you need to override the configuration with you configuration

docker run -d \
        -v /path/to/vlx2mqtt.cfg:/vlx2mqtt.cfg \
        phpmonkeys/vlx2mqtt:latest

Using docker-compose the docker-compose.yml looks like:

version: '3' 
services: 
  velux: 
    image: phpmonkeys/vlx2mqtt:latest 
    restart: always 
    volumes: 
      - vlx2mqtt.cfg:/vlx2mqtt.cfg
      - ./certs/:/certs/

Tag summary

Content type

Image

Digest

Size

21.8 MB

Last updated

over 5 years ago

docker pull phpmonkeys/vlx2mqtt