Install zwave-js-ui

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
pkelderman
Posts: 28
Joined: Monday 19 July 2021 11:17
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Hellevoetsluis (NL)
Contact:

Install zwave-js-ui

Post 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?
User avatar
waltervl
Posts: 5853
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Install zwave-js-ui

Post by waltervl »

Like for every docker (see eg mosquitto) you have to do in the root folder of the container. Probably /opt/zwavejs-ui
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
jannl
Posts: 673
Joined: Thursday 02 October 2014 6:36
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: Geleen
Contact:

Re: Install zwave-js-ui

Post 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
    
pkelderman
Posts: 28
Joined: Monday 19 July 2021 11:17
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Hellevoetsluis (NL)
Contact:

Re: Install zwave-js-ui

Post 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 857 times
Please: help, help, help.
User avatar
waltervl
Posts: 5853
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Install zwave-js-ui

Post 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.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
waltervl
Posts: 5853
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Install zwave-js-ui

Post 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.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
pkelderman
Posts: 28
Joined: Monday 19 July 2021 11:17
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Hellevoetsluis (NL)
Contact:

Re: Install zwave-js-ui

Post 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 803 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 801 times
BartSr
Posts: 395
Joined: Sunday 03 July 2016 16:16
Target OS: Raspberry Pi / ODroid
Domoticz version: V2024.7
Location: Netherlands
Contact:

Re: Install zwave-js-ui

Post by BartSr »

Did you set MQTT to correct IP in ZwaveJS- UI (not localhost).
Did you add MQTT AD in your hardware?
Raspberry pi 3b
Arduino
KAKU
RfxCom
Zwave2MQTT
OTGW
Chinese sensors temp (Dallas),movement
Tasmota
Esp8266 / 32 espeasy
Zigbee2MQTT
pkelderman
Posts: 28
Joined: Monday 19 July 2021 11:17
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Hellevoetsluis (NL)
Contact:

Re: Install zwave-js-ui

Post 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.
User avatar
waltervl
Posts: 5853
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Install zwave-js-ui

Post 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.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest