Zwave JS- UI install how. Help please!

For Z-Wave related questions in Domoticz

Moderator: leecollings

Dave47
Posts: 136
Joined: Thursday 19 July 2018 14:36
Target OS: -
Domoticz version: 2023.1
Contact:

Zwave JS- UI install how. Help please!

Post by Dave47 »

Hi.

Do i need all these commands to install docker on raspberry pi

Code: Select all

# Using volumes as persistence
docker run --rm -it -p 8091:8091 -p 3000:3000 --device=/dev/serial/by-id/insert_stick_reference_here:/dev/zwave \
--mount source=zwave-js-ui,target=/usr/src/app/store zwavejs/zwave-js-ui:latest

# Using a local folder as persistence
mkdir store
docker run --rm -it -p 8091:8091 -p 3000:3000 --device=/dev/serial/by-id/insert_stick_reference_here:/dev/zwave \
-v $(pwd)/store:/usr/src/app/store zwavejs/zwave-js-ui:latest

# As a service
wget https://raw.githubusercontent.com/zwave-js/zwave-js-ui/master/docker/docker-compose.yml
docker-compose up

Also this:

Code: Select all

    dev/serial/by-id/insert_stick_reference_here   
I have open zwave at the moment. In open zwave it works fine accept one Qubino module.
i'm a little nervous about installing this.
Can i go back if its going wrong.

What is the first step. We have MQTT. Which install code.
Do i need all i write in the beginning?
User avatar
gizmocuz
Posts: 2577
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Zwave JS- UI install how. Help please!

Post by gizmocuz »

No and please use docker-compose
Quality outlives Quantity!
User avatar
gizmocuz
Posts: 2577
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Zwave JS- UI install how. Help please!

Post by gizmocuz »

sudo apt-get update && sudo apt-get upgrade

curl -fsSL test.docker.com -o get-docker.sh && sh get-docker.sh
sudo usermod -aG docker ${USER}
sudo systemctl enable docker
sudo reboot
Quality outlives Quantity!
Dave47
Posts: 136
Joined: Thursday 19 July 2018 14:36
Target OS: -
Domoticz version: 2023.1
Contact:

Re: Zwave JS- UI install how. Help please!

Post by Dave47 »

I dont understand.

Can i use this: wget https://raw.githubusercontent.com/zwave ... ompose.yml
docker-compose up

Or how can i do/typ?

curl -fsSL test.docker.com -o get-docker.sh && sh get-docker.sh
sudo usermod -aG docker ${USER}
sudo systemctl enable docker
sudo reboot

Can i use it how you write it here?
Dave47
Posts: 136
Joined: Thursday 19 July 2018 14:36
Target OS: -
Domoticz version: 2023.1
Contact:

Re: Zwave JS- UI install how. Help please!

Post by Dave47 »

I read domoticz wiki how yo install docker. Which command is the best to use and run docker.
I typ in ssh only
curl -fsSL test.docker.com -o get-docker.sh && sh get-docker.sh
sudo usermod -aG docker ${USER}
sudo systemctl enable docker
sudo reboot

In wiki is different explenation.
User avatar
waltervl
Posts: 5981
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Zwave JS- UI install how. Help please!

Post by waltervl »

Dave47 wrote: Wednesday 15 March 2023 10:51 I read domoticz wiki how yo install docker. Which command is the best to use and run docker.
I typ in ssh only
curl -fsSL test.docker.com -o get-docker.sh && sh get-docker.sh
sudo usermod -aG docker ${USER}
sudo systemctl enable docker
sudo reboot

In wiki is different explenation.
This is an instruction to install docker. After that you have to configure the [edit] zwavejsui docker with docker compose.
Last edited by waltervl on Wednesday 15 March 2023 23:37, edited 1 time in total.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Dave47
Posts: 136
Joined: Thursday 19 July 2018 14:36
Target OS: -
Domoticz version: 2023.1
Contact:

Re: Zwave JS- UI install how. Help please!

Post by Dave47 »

with http://localip:8091/control-panel can we see the interface but no devices from zwave?
We did the setup as

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 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
    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/usb-0658_0200-if00
    volumes:
      - zwave-config:/usr/src/app/store
   # Or by using local folder
   # - ./store:/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
thomasbaetge
Posts: 153
Joined: Wednesday 02 October 2019 11:47
Target OS: Linux
Domoticz version: 2023.1
Location: DE / BY / LT
Contact:

Re: Zwave JS- UI install how. Help please!

Post by thomasbaetge »

so...please go to the directory, where you have the docker-compose.yaml for Z-vase JS Ui and run
docker compose down there
Dave47
Posts: 136
Joined: Thursday 19 July 2018 14:36
Target OS: -
Domoticz version: 2023.1
Contact:

Re: Zwave JS- UI install how. Help please!

Post by Dave47 »

Ok. I did this in docker/zwjs

pi@raspberrypi:~/docker/zwjs $ docker
compose down
[+] Running 1/1
⠿ Network zwjs_zwave Removed 0.8s

docker compose ls
Gives

pi@raspberrypi:~/docker/zwjs $ docker
compose ls
NAME STATUS
CONFIG FILES
domoticz running(1)
/opt/domoticz/docker-compose.yml

But there is no file anymore
thomasbaetge
Posts: 153
Joined: Wednesday 02 October 2019 11:47
Target OS: Linux
Domoticz version: 2023.1
Location: DE / BY / LT
Contact:

Re: Zwave JS- UI install how. Help please!

Post by thomasbaetge »

domoticz is a different container.
What do you mean by 'no file anymore'?

anyway, you should now be able to start your new ZWJS container
Dave47
Posts: 136
Joined: Thursday 19 July 2018 14:36
Target OS: -
Domoticz version: 2023.1
Contact:

Re: Zwave JS- UI install how. Help please!

Post by Dave47 »

In the beginning i install docker like this:
sudo apt-get update && sudo apt-get upgrade

curl -fsSL test.docker.com -o get-docker.sh && sh get-docker.sh

sudo usermod -aG docker ${USER}

sudo systemctl enable docker

sudo reboot

And then:mkdir /opt/domoticz
cd /opt/domoticz

In that folder i create docker-compose.yml with;
version: '3.3'

services:
domoticz:
image: domoticz/domoticz:stable
container_name: domoticz
restart: unless-stopped
# Pass devices to container
# devices:
# - "/dev/serial/by-id/usb-0658_0200-if00-port0:/dev/ttyACM0"
ports:
- "8080:8080"
volumes:
- ./config:/opt/domoticz/userdata
environment:
- TZ=Europe/Amsterdam
#- LOG_PATH=/opt/domoticz/userdata/domoticz.log


I removed this docker-compose.yml file out of domoticz folder.



anyway, you should now be able to start your new ZWJS container
Last edited by Dave47 on Tuesday 21 March 2023 13:01, edited 1 time in total.
Dave47
Posts: 136
Joined: Thursday 19 July 2018 14:36
Target OS: -
Domoticz version: 2023.1
Contact:

Re: Zwave JS- UI install how. Help please!

Post by Dave47 »

In the beginning i install docker like this:
sudo apt-get update && sudo apt-get upgrade

curl -fsSL test.docker.com -o get-docker.sh && sh get-docker.sh

sudo usermod -aG docker ${USER}

sudo systemctl enable docker

sudo reboot

And then:mkdir /opt/domoticz
cd /opt/domoticz

In that folder i create docker-compose.yml with;
version: '3.3'

services:
domoticz:
image: domoticz/domoticz:stable
container_name: domoticz
restart: unless-stopped
# Pass devices to container
# devices:
# - "/dev/serial/by-id/usb-0658_0200-if00-port0:/dev/ttyACM0"
ports:
- "8080:8080"
volumes:
- ./config:/opt/domoticz/userdata
environment:
- TZ=Europe/Amsterdam
#- LOG_PATH=/opt/domoticz/userdata/domoticz.log
I removed this docker-compose.yml file out of domoticz folder.


anyway, you should now be able to start your new ZWJS container
what is the best way to do that?
This is the same container as we did with docker compose down
Dave47
Posts: 136
Joined: Thursday 19 July 2018 14:36
Target OS: -
Domoticz version: 2023.1
Contact:

Re: Zwave JS- UI install how. Help please!

Post by Dave47 »

The problem is comming from opt/domoticz/docker-compose.yml

But i cant remove zwavejs there?
thomasbaetge
Posts: 153
Joined: Wednesday 02 October 2019 11:47
Target OS: Linux
Domoticz version: 2023.1
Location: DE / BY / LT
Contact:

Re: Zwave JS- UI install how. Help please!

Post by thomasbaetge »

why did you remove your docker-compose.yaml for domoticz?

that was running already, so no need to touch it.
the docker-compose.yaml for ZWJS needs to go into a different folder and has to be started from there
Dave47
Posts: 136
Joined: Thursday 19 July 2018 14:36
Target OS: -
Domoticz version: 2023.1
Contact:

Re: Zwave JS- UI install how. Help please!

Post by Dave47 »

Because the file did not work:
version: '3.3'

services:
domoticz:
image: domoticz/domoticz:stable
container_name: domoticz
restart: unless-stopped
# Pass devices to container
devices:
- "/dev/serial/by-id/usb-0658_0200-if00-port0:/dev/ttyACM0"
ports:
- "8080:8080"
volumes:
- ./config:/opt/domoticz/userdata
environment:
- TZ=Europe/Amsterdam
#- LOG_PATH=/opt/domoticz/userdata/domoticz.log

I have a problem i think. Can i remove docker and start from the beginning?
How can i do that?
Dave47
Posts: 136
Joined: Thursday 19 July 2018 14:36
Target OS: -
Domoticz version: 2023.1
Contact:

Re: Zwave JS- UI install how. Help please!

Post by Dave47 »

I make a clean install from Rasberry first en then istall zwave-js-ui first?
Or install dockers with the file docker-compose.yml in
Opt/domoticz?
But /dev/serial/by-id/usb-0658_0200-if00-port0:/dev/ttyACM0
did not work.
thomasbaetge
Posts: 153
Joined: Wednesday 02 October 2019 11:47
Target OS: Linux
Domoticz version: 2023.1
Location: DE / BY / LT
Contact:

Re: Zwave JS- UI install how. Help please!

Post by thomasbaetge »

I don't think you need to remove docker.
there is an error in your file above:

Code: Select all

- "/dev/serial/by-id/usb-0658_0200-if00-port0:/dev/ttyACM0"
Should probably read:

Code: Select all

- "/dev/serial/by-id/usb-0658_0200-if00:/dev/ttyACM0"
I think we had that before, Walter pointed this out in the other thread.
thomasbaetge
Posts: 153
Joined: Wednesday 02 October 2019 11:47
Target OS: Linux
Domoticz version: 2023.1
Location: DE / BY / LT
Contact:

Re: Zwave JS- UI install how. Help please!

Post by thomasbaetge »

there is no need for a fresh install and I assume, your docker installation is fine.

Please see my folder structure vor the various docker containers that I am running below. It's not a Raspberry, but a NUC, but the process is the same.

there is always one folder for each image, inside is the respective docker-compose.yaml and required subfolders for persistant data storage.
This is REALLY simple.
Bildschirmfoto vom 2023-03-21 13-47-14.png
Bildschirmfoto vom 2023-03-21 13-47-14.png (25.64 KiB) Viewed 3635 times
Dave47
Posts: 136
Joined: Thursday 19 July 2018 14:36
Target OS: -
Domoticz version: 2023.1
Contact:

Re: Zwave JS- UI install how. Help please!

Post by Dave47 »

there is no need for a fresh install and I assume, your docker installation is fine.
ok but these docker-compose.yml file version 3.3 is not there.


Ok but /zwjs docker compose up Is not possible because its running another zwave with that name.
Its not possible for me i think so.
thomasbaetge
Posts: 153
Joined: Wednesday 02 October 2019 11:47
Target OS: Linux
Domoticz version: 2023.1
Location: DE / BY / LT
Contact:

Re: Zwave JS- UI install how. Help please!

Post by thomasbaetge »

I don't understand.
if you have a zwjs container up and running, what is the problem then?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest