IOTstack icon indicating copy to clipboard operation
IOTstack copied to clipboard

Add support for zwavejs2mqtt?

Open JetForMe opened this issue 4 years ago • 3 comments

Hi there. Could you add the following as an optional container to include in the docker compose? Thanks! https://zwave-js.github.io/zwavejs2mqtt/#/getting-started/docker

JetForMe avatar Dec 24 '21 09:12 JetForMe

Could you provide your configuration and use-case as a starting point?

ukkopahis avatar Jun 22 '22 16:06 ukkopahis

My use-case is I want to be able to talk to my Z-wave devices via MQTT (https://zwave-js.github.io/zwavejs2mqtt/#/README).

I don't yet have a configuration. I came across this back in December when I was first installing IOTStack, and haven't gotten any farther.

JetForMe avatar Jun 22 '22 21:06 JetForMe

What's your docker knowledge level? Would you be able to try out the example from their homepage (https://zwave-js.github.io/zwavejs2mqtt/#/getting-started/docker?id=run-as-a-service)?

Or in a more "IOTstack":ish style:

version: "3.7"
services:
  zwavejs2mqtt:
    container_name: zwavejs2mqtt
    image: zwavejs/zwavejs2mqtt:latest
    restart: always
    tty: true
    stop_signal: SIGINT
    environment:
      - SESSION_SECRET=mysupersecretkey
      - ZWAVEJS_EXTERNAL_CONFIG=/usr/src/app/store/.config-db
      # Uncomment if you want log times and dates to match your timezone instead of UTC
      # Available at https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
      #- TZ=America/New_York
    devices:
      # Do not use /dev/ttyUSBX serial devices, as those mappings can change over time.
      # Instead, use the /dev/serial/by-id/X serial device for your Z-Wave stick.
      - '/dev/serial/by-id/insert_stick_reference_here:/dev/zwave'
    volumes:
      - ./volumes/zwavejs2mqtt:/usr/src/app/store
    ports:
      - "8091:8091" # port for web interface
      - "3000:3000" # port for Z-Wave JS websocket server

ukkopahis avatar Jun 23 '22 10:06 ukkopahis