/vlx2mqtt

pyvlx to MQTT glue

Primary LanguagePython

vlx2mqtt

This project allows to connect a Velux KLF200 bridge to MQTT.

Supported position values are:

  • 0-100 the position in percent
  • UP move the shutter/blind up
  • DOWN move the shutter/blind down
  • STOP to stop the current motion

Additionally you receive the current position and the state of the script (connected or not)

This python script is used on the docker image vlx2mqtt.

Service

sudo nano /etc/systemd/system/vlx2mqtt.service
[Unit]
Description=VLX2MQTT Bridge
After=syslog.target network.target

[Service]
Type=simple
ExecStart=/bin/bash /opt/loxberry/webfrontend/legacy/vlx2mqtt/start-vlx2mqtt.sh
User=loxberry
Restart=on-failure
RestartSec=5

[Install]
WantedBy=multi-user.target
sudo systemctl daemon-reload
sudo systemctl start vlx2mqtt.service
sudo systemctl enable vlx2mqtt.service