quinnhosler / qt-openzwave

QT5 Wrapper for OpenZWave

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

qt-openzwave

This is a QT Wrapper for OpenZWave and contains ozwdaemon - a service that allows you to remotely manage a Z-Wave Network via ozw-admin or connect to a MQTT Broker.

Home Assistant MQTT Client Adapter

A Docker Container to connect to the new Z-Wave Integration for Home Assistant - python-openzwave-mqtt

Running:

Start a container with one of the following examples:

Docker example:

docker run -it --security-opt seccomp=unconfined --device=/dev/ttyUSB0 -v /tmp/ozw/config:/opt/ozw -e MQTT_SERVER="10.100.200.102" -e USB_PATH=/dev/ttyUSB0 openzwave/ozwdaemon:latest

Docker-compose example:

version: '3'
services:
  qt-openzwave:
    image: openzwave/ozwdaemon:latest
    container_name: "qt-openzwave"
    security_opt:
      - seccomp:unconfined
    devices:
      - "/dev/ttyUSB0:/dev/ttyUSB0"
    volumes:
      - /tmp/ozw:/opt/ozw/config
    environment:
      MQTT_SERVER: "192.168.0.1"
      MQTT_USERNAME: "my-username"
      MQTT_PASSWORD: "my-password"
      USB_PATH: "/dev/ttyUSB0"
      OZW_NETWORK_KEY: "0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00"
    restart: unless-stopped 
  • replace MQTT_SERVER with the IP address of the MQTT Server
  • replace MQTT_USERNAME and MQTT_PASSWORD with authentication details from the MQTT Server (remove if not enabled)
  • replace all /dev/ttyUSB0 entries with the path to your USB Stick.
  • replace OZW_NETWORK_KEY with the network key of your Z-wave network (remove if not enabled)
  • OpenZWave Config Files are copied on startup to the host directory specified by /tmp/ozw - You should replace it with a directory that is persistent.

the --security-opt seccomp=unconfined is needed to generate meaningfull backtraces, otherwise it will be difficult for us to debug.

Please see docs/MQTT.md for complete instructions, including settting up Network Keys etc

QT Wrapper Interface

Documentation is in progress. See the qt-simpleclient for a basic example.

About

QT5 Wrapper for OpenZWave

License:GNU Lesser General Public License v3.0


Languages

Language:C++ 95.1%Language:QMake 3.5%Language:Shell 0.7%Language:Dockerfile 0.6%