Page 1 of 1

Install zwave-js-ui

Posted: Monday 05 February 2024 15:46
by pkelderman
I am trying to install docker and zwave-js-ui now. Confirm the instruction in "https://www.domoticz.com/wiki/Zwave-JS-UI" I have to edit (=change an existing) file "docker-compose.yml". I can't find that file. Should I create that (and where) or should I edit another file? Someone any idea?

Re: Install zwave-js-ui

Posted: Monday 05 February 2024 16:38
by waltervl
Like for every docker (see eg mosquitto) you have to do in the root folder of the container. Probably /opt/zwavejs-ui

Re: Install zwave-js-ui

Posted: Monday 05 February 2024 16:52
by jannl
An example is also in the docker section of Zwave ui on github. That is basically the one I use/downloaded.

Below the onde from github.

Code: Select all

Version: '3.7'
services:
  zwave-js-ui:
    container_name: zwave-js-ui
    image: zwavejs/zwave-js-ui: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 logs time 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
    networks:
      - zwave
    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:
      - zwave-config:/usr/src/app/store
    ports:
      - '8091:8091' # port for web interface
      - '3000:3000' # port for Z-Wave JS websocket server
networks:
  zwave:
volumes:
  zwave-config:
    name: zwave-config
    

Re: Install zwave-js-ui

Posted: Thursday 15 February 2024 16:23
by pkelderman
Surprise, surprise. It doesnot work again. Using a "spare" raspberry 3b+ I installing Raspbian OS, Domoticz (2024.4) and docker, mosquitto and zwave-js-ui. I was hopefull after the /opt/mosquitto location of the docker-mosquitto.y4ml file. But unfortunately. The end of the story remains an empty configuration table in te setup page of mqtt in domoticz hardware. Resulting: no devices.
afbeelding_2024-02-15_162229882.png
afbeelding_2024-02-15_162229882.png (56.09 KiB) Viewed 1260 times
Please: help, help, help.

Re: Install zwave-js-ui

Posted: Thursday 15 February 2024 16:47
by waltervl
Surprise surprise, you are looking in the wrong location!!!!!

https://www.domoticz.com/wiki/Zwave-JS- ... nt_gateway
After adding/updating the MQTT Client Gateway for Zwave-JS-UI the Zwave devices will be automatically added in the Domoticz device list if discovered by Zwave-JS-UI, check menu Setup - Devices. Domoticz devices will be created once data is received. So especially for battery operated devices it can take some time to have this data received. Sometimes it is possible to activate these sensors manually by pushing a button.

Hint: To add all devices at once, press "Save" in Zwave-JS-UI preferences. This will generate status messages for all devices. Or restart Zwave-JS-UI.

Re: Install zwave-js-ui

Posted: Thursday 15 February 2024 17:22
by waltervl
I have modified the Zwave-JS-UI wiki to make extra clear that the setup button of MQTT AD Hardware is used for something different then in the old OZW integration.
Note: In contrary to the old OpenZwave integration the devices/switches will not be shown in the Setup button of the MQTT Hardware Gateway but in the main Domoticz device list ( menu Setup -Devices)! Zwave Nodes etc will be managed from Zwave-JS-UI user interface on port 8091, not in Domoticz.

Note: After creation of the MQTT Autodiscover hardware in menu Setup - Hardware you can click on the setup button to configure the discovered configuration devices if they have that option using Autodiscovery Number devices. It could well be that this list is completely empty! It is used for setting preference of devices, eg detection distance, Connection interval, LED brightness etc.

Re: Install zwave-js-ui

Posted: Sunday 18 February 2024 14:42
by pkelderman
Reading the instruction better I should find my z-wave devices under devices and not under hardware. As far as I understand I should find them here:
afbeelding_2024-02-18_143943400.png
afbeelding_2024-02-18_143943400.png (38.03 KiB) Viewed 1206 times
Where am I wrong this time? Mind: I made a new installation and no conversion of the old open zwave.

I managed to introduce zwave-js-ui as a custom menu item:
afbeelding_2024-02-18_150503400.png
afbeelding_2024-02-18_150503400.png (76.89 KiB) Viewed 1204 times

Re: Install zwave-js-ui

Posted: Sunday 18 February 2024 16:25
by BartSr
Did you set MQTT to correct IP in ZwaveJS- UI (not localhost).
Did you add MQTT AD in your hardware?

Re: Install zwave-js-ui

Posted: Thursday 22 February 2024 16:38
by pkelderman
I have checked, checked, dubble checked the ip-adresses. As far as i can see, they are all correct. I will ask more questions the next days, because i have doubts about the configuration in zwave-js-ui.

Re: Install zwave-js-ui

Posted: Thursday 22 February 2024 17:49
by waltervl
Check with the application MQTT Explorer (can be installed on any system in your network) if you have the topics as explained in the MQTT_AD_Report_Problems wiki, do you have a zwave and a homeassistant topic with subtopics in MQTT explorer? See also the example screenshot (showing combined zwavejsui and zigbee2mqtt topics) in the wiki:
https://www.domoticz.com/wiki/MQTT_AD_Report_Problems

Also share your Domoticz MQTT AD configuration.