Coder Social home page Coder Social logo

docker-rpi-openzwave2mqtt's Introduction

docker-rpi-openzwave2mqtt

Allows you to use your ZWave devices using ozwdaemon, a service that allows you to remotely manage a Z-Wave Network via ozw-admin or connect to a MQTT Broker.

Have a look: https://github.com/OpenZWave/qt-openzwave

Develop and test builds

Just type:

# Create new container image
docker build . -t openzwave2mqtt

# Run the docker image
docker run --privileged  -ti --rm -e TZ=Europe/Amsterdam -v /dev/ttyUSB0:/dev/ttyUSB0 -v $(pwd)/config:/config -e MQTT_SERVER="10.100.200.102" -e MQTT_USER=ozw -e MQTT_PASS="pass" openzwave2mqtt

Create final release and publish to Docker Hub

create-release.sh

Run in production

Given the docker image with name openzwave2mqtt:

docker run --privileged  --name openzwave -e TZ=Europe/Amsterdam -v /dev/ttyUSB0:/dev/ttyUSB0 -v $(pwd)/config:/config -e MQTT_SERVER="127.0.0.1" -e MQTT_USER=ozw -e MQTT_PASS="pass" -d jriguera/openzwave2mqtt

Variables, they can be updated at any time re-defining env variables (all except NETWORK_KEY).

  • TZ Timezone, defaults to Europe/Amsterdam.
  • NETWORK_KEY By default is generated automatically and stored in NETWORK_KEY.txt file. Changing requires repairing of all devices!!. So is not possible to change it once it was generated via env var, you will need to delete the previous files.
  • DEVICE Controller device, by default is /dev/ttyUSB0.
  • LOG_LEVEL default to info.
  • MQTT_SERVER MQTT server, defaults to 127.0.0.1.
  • MQTT_USER MQTT username auth.
  • MQTT_PASS MQTT Password.
  • MQTT_PORT MQTT Port, default is 1883.

Author

Jose Riguera <[email protected]>

docker-rpi-openzwave2mqtt's People

Contributors

jriguera avatar

Watchers

 avatar  avatar

Forkers

trooster

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.