stekl
(Stefano)
May 3, 2023, 6:04am
1
Hi,
I have HASS running on one VM for quite some time without any problems and I want to integrate Z-WAVE on rasperry PI with the Razberry module.
on rasperry PI I installed the zwavejs/zwave-js-ui docker.
On docker-compose.yml I defined the following:
devices:
- ‘/dev/ttyAMA0:/dev/zwave’
I can start the docker and setup the ws-server 3000, but I can’t access to the port 3000
On docker-compose.yml I defined the following:
ports:
- ‘8091:8091’ # port for web interface
- ‘3000:3000’ # port for Z-Wave JS websocket server
No way and no idea how to goes forward.
thanks and regards
Stefano
tmjpugh
(Tmjpugh)
May 3, 2023, 2:14pm
2
Can you access web interface 8091?
Are you sure zwavejsui is started and not stopped due to error?
stekl
(Stefano)
May 3, 2023, 3:42pm
3
Yes I can accesso to the UH on port 8091, From there, I run the WS Server on port 3000, but I can’t access it. I have no idea where to look.
stekl
(Stefano)
May 4, 2023, 7:57am
4
After quite a while there is a fatal error, but the deamon starts again.
How can I look for the error?
pi@raspberrypi:~/zwavejs2mqtt $ sudo docker-compose up
Recreating zwave-js-ui ... done
Attaching to zwave-js-ui
zwave-js-ui | 2023-05-04 06:02:43.921 INFO APP: Version: 8.14.2.c234053
zwave-js-ui | 2023-05-04 06:02:43.937 INFO APP: Application path:/usr/src/app
zwave-js-ui | ______ __ __ _ _____ _ _ _____
zwave-js-ui | |___ / \ \ / / | |/ ____| | | | |_ _|
zwave-js-ui | / /____\ \ /\ / /_ ___ _____ | | (___ | | | | | |
zwave-js-ui | / /______\ \/ \/ / _' \ \ / / _ \ _ | |\___ \ | | | | | |
zwave-js-ui | / /__ \ /\ / (_| |\ V / __/ | |__| |____) | | |__| |_| |_
zwave-js-ui | /_____| \/ \/ \__,_| \_/ \___| \____/|_____/ \____/|_____|
zwave-js-ui |
zwave-js-ui | 2023-05-04 06:02:44.043 WARN STORE: scenes.json not found
zwave-js-ui | 06:02:44.638 DRIVER ███████╗ ██╗ ██╗ █████╗ ██╗ ██╗ ███████╗ ██╗ ███████╗
zwave-js-ui | ╚══███╔╝ ██║ ██║ ██╔══██╗ ██║ ██║ ██╔════╝ ██║ ██╔════╝
zwave-js-ui | ███╔╝ ██║ █╗ ██║ ███████║ ██║ ██║ █████╗ █████╗ ██║ ███████╗
zwave-js-ui | ███╔╝ ██║███╗██║ ██╔══██║ ╚██╗ ██╔╝ ██╔══╝ ╚════╝ ██ ██║ ╚════██║
zwave-js-ui | ███████╗ ╚███╔███╔╝ ██║ ██║ ╚████╔╝ ███████╗ ╚█████╔╝ ███████║
zwave-js-ui | ╚══════╝ ╚══╝╚══╝ ╚═╝ ╚═╝ ╚═══╝ ╚══════╝ ╚════╝ ╚══════╝
zwave-js-ui | 06:02:44.652 DRIVER version 10.16.0
zwave-js-ui | 06:02:44.656 DRIVER
zwave-js-ui | 06:02:44.661 DRIVER starting driver...
zwave-js-ui | 06:02:44.758 DRIVER opening serial port /dev/zwave
zwave-js-ui | Logging to file:
zwave-js-ui | /usr/src/app/store/logs/zwavejs_2023-05-04.log
zwave-js-ui | 06:02:44.803 DRIVER serial port opened
zwave-js-ui | 06:02:44.809 SERIAL » 0x15 (1 bytes)
zwave-js-ui |
zwave-js-ui | <--- Last few GCs --->
zwave-js-ui |
zwave-js-ui | [1:0x741a8030] 231112 ms: Mark-sweep 224.4 (235.2) -> 222.4 (235.4) MB, 2390.5 / 0.0 ms (average mu = 0.260, current mu = 0.067) task; scavenge might not succeed
zwave-js-ui | [1:0x741a8030] 233635 ms: Mark-sweep 224.1 (235.4) -> 222.4 (235.7) MB, 2352.8 / 0.0 ms (average mu = 0.178, current mu = 0.067) task; scavenge might not succeed
zwave-js-ui | [1:0x741a8030] 238217 ms: Mark-sweep 224.4 (235.7) -> 222.5 (235.4) MB, 4425.1 / 0.0 ms (average mu = 0.091, current mu = 0.034) task; scavenge might not succeed
zwave-js-ui |
zwave-js-ui |
zwave-js-ui | <--- JS stacktrace --->
zwave-js-ui |
zwave-js-ui | FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
zwave-js-ui | 2023-05-04 06:08:27.040 INFO APP: Version: 8.14.2.c234053
zwave-js-ui | 2023-05-04 06:08:27.059 INFO APP: Application path:/usr/src/app
zwave-js-ui | ______ __ __ _ _____ _ _ _____
zwave-js-ui | |___ / \ \ / / | |/ ____| | | | |_ _|
zwave-js-ui | / /____\ \ /\ / /_ ___ _____ | | (___ | | | | | |
zwave-js-ui | / /______\ \/ \/ / _' \ \ / / _ \ _ | |\___ \ | | | | | |
zwave-js-ui | / /__ \ /\ / (_| |\ V / __/ | |__| |____) | | |__| |_| |_
zwave-js-ui | /_____| \/ \/ \__,_| \_/ \___| \____/|_____/ \____/|_____|
zwave-js-ui |
zwave-js-ui | 2023-05-04 06:08:27.169 WARN STORE: scenes.json not found
zwave-js-ui | 06:08:27.837 DRIVER ███████╗ ██╗ ██╗ █████╗ ██╗ ██╗ ███████╗ ██╗ ███████╗
zwave-js-ui | ╚══███╔╝ ██║ ██║ ██╔══██╗ ██║ ██║ ██╔════╝ ██║ ██╔════╝
zwave-js-ui | ███╔╝ ██║ █╗ ██║ ███████║ ██║ ██║ █████╗ █████╗ ██║ ███████╗
zwave-js-ui | ███╔╝ ██║███╗██║ ██╔══██║ ╚██╗ ██╔╝ ██╔══╝ ╚════╝ ██ ██║ ╚════██║
zwave-js-ui | ███████╗ ╚███╔███╔╝ ██║ ██║ ╚████╔╝ ███████╗ ╚█████╔╝ ███████║
zwave-js-ui | ╚══════╝ ╚══╝╚══╝ ╚═╝ ╚═╝ ╚═══╝ ╚══════╝ ╚════╝ ╚══════╝
zwave-js-ui | 06:08:27.852 DRIVER version 10.16.0
zwave-js-ui | 06:08:27.856 DRIVER
zwave-js-ui | 06:08:27.860 DRIVER starting driver...
zwave-js-ui | 06:08:27.949 DRIVER opening serial port /dev/zwave
zwave-js-ui | Logging to file:
zwave-js-ui | /usr/src/app/store/logs/zwavejs_2023-05-04.log
zwave-js-ui | 06:08:27.987 DRIVER serial port opened
zwave-js-ui | 06:08:27.994 SERIAL » 0x15 (1 bytes)
zwave-js-ui |
zwave-js-ui | <--- Last few GCs --->
zwave-js-ui |
zwave-js-ui | [1:0x74230030] 235090 ms: Mark-sweep 224.2 (235.2) -> 222.4 (235.4) MB, 4510.4 / 0.0 ms (average mu = 0.203, current mu = 0.029) task; scavenge might not succeed
zwave-js-ui | [1:0x74230030] 237673 ms: Mark-sweep 224.2 (235.4) -> 222.4 (235.2) MB, 2425.8 / 0.0 ms (average mu = 0.152, current mu = 0.061) task; scavenge might not succeed
zwave-js-ui | [1:0x74230030] 242204 ms: Mark-sweep 224.1 (235.2) -> 222.5 (235.4) MB, 4392.2 / 0.0 ms (average mu = 0.084, current mu = 0.031) task; scavenge might not succeed
zwave-js-ui |
zwave-js-ui |
zwave-js-ui | <--- JS stacktrace --->
zwave-js-ui |
zwave-js-ui | FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
zwave-js-ui exited with code 132
Otherwise, I have to find an alternative. I am migrating these devices from iobrocker to HASS. On iobrocker they worked and I am very disappointed that HASS does not work.
I thought everything was easier on HASS, but instead it is a mess!
tmjpugh
(Tmjpugh)
May 4, 2023, 1:28pm
5
You install HAOS in a VM?
What resources you give it? Maybe add memory to vm.
Your issues so far are not HA problem
incorrect permissions
current issue likely related to your VM
This is system setup issue. Server setup is complicated especially if you choose VM or docker where you must manually configure hardware and some software requirements. Patience is needed if you choose these routes
tmjpugh
(Tmjpugh)
May 4, 2023, 1:42pm
6
Have a look here
EDIT
Some report issues with zwave device close to server and need to add usb extender. I think this was solution
It is not possible to put Raszberry module on extender is it? It connect direct to GPIO?
What about simple reboot of server? Just want to be sure you try reboot server(RasPi) and not just container or VM reboot.
Did you disable bluetooth on the GPIO?
stekl
(Stefano)
May 4, 2023, 3:21pm
8
Interesting, now I disabled BT and I have the following behavior:
pi@raspberrypi:~/zwavejs2mqtt $ sudo docker-compose up
Starting zwave-js-ui ... done
Attaching to zwave-js-ui
zwave-js-ui | 2023-05-04 15:18:38.454 INFO APP: Version: 8.14.2.c234053
zwave-js-ui | 2023-05-04 15:18:38.468 INFO APP: Application path:/usr/src/app
zwave-js-ui | ______ __ __ _ _____ _ _ _____
zwave-js-ui | |___ / \ \ / / | |/ ____| | | | |_ _|
zwave-js-ui | / /____\ \ /\ / /_ ___ _____ | | (___ | | | | | |
zwave-js-ui | / /______\ \/ \/ / _' \ \ / / _ \ _ | |\___ \ | | | | | |
zwave-js-ui | / /__ \ /\ / (_| |\ V / __/ | |__| |____) | | |__| |_| |_
zwave-js-ui | /_____| \/ \/ \__,_| \_/ \___| \____/|_____/ \____/|_____|
zwave-js-ui |
zwave-js-ui | 2023-05-04 15:18:38.538 WARN STORE: scenes.json not found
zwave-js-ui | 15:18:39.146 DRIVER ███████╗ ██╗ ██╗ █████╗ ██╗ ██╗ ███████╗ ██╗ ███████╗
zwave-js-ui | ╚══███╔╝ ██║ ██║ ██╔══██╗ ██║ ██║ ██╔════╝ ██║ ██╔════╝
zwave-js-ui | ███╔╝ ██║ █╗ ██║ ███████║ ██║ ██║ █████╗ █████╗ ██║ ███████╗
zwave-js-ui | ███╔╝ ██║███╗██║ ██╔══██║ ╚██╗ ██╔╝ ██╔══╝ ╚════╝ ██ ██║ ╚════██║
zwave-js-ui | ███████╗ ╚███╔███╔╝ ██║ ██║ ╚████╔╝ ███████╗ ╚█████╔╝ ███████║
zwave-js-ui | ╚══════╝ ╚══╝╚══╝ ╚═╝ ╚═╝ ╚═══╝ ╚══════╝ ╚════╝ ╚══════╝
zwave-js-ui | 15:18:39.161 DRIVER version 10.16.0
zwave-js-ui | 15:18:39.165 DRIVER
zwave-js-ui | 15:18:39.170 DRIVER starting driver...
zwave-js-ui | 15:18:39.238 DRIVER opening serial port /dev/zwave
zwave-js-ui | Logging to file:
zwave-js-ui | /usr/src/app/store/logs/zwavejs_2023-05-04.log
zwave-js-ui | 15:18:39.348 DRIVER serial port opened
zwave-js-ui | 15:18:39.355 SERIAL » 0x15 (1 bytes)
zwave-js-ui | 15:18:40.416 DRIVER loading configuration...
zwave-js-ui | 15:18:40.462 CONFIG Using external configuration dir /usr/src/app/store/.config-db
zwave-js-ui | 15:18:40.468 CONFIG version 10.16.0
zwave-js-ui | 15:18:43.549 DRIVER beginning interview...
zwave-js-ui | 15:18:43.559 DRIVER added request handler for AddNodeToNetwork (0x4a)...
zwave-js-ui | 1 registered
zwave-js-ui | 15:18:43.565 DRIVER added request handler for RemoveNodeFromNetwork (0x4b)...
zwave-js-ui | 1 registered
zwave-js-ui | 15:18:43.569 DRIVER added request handler for ReplaceFailedNode (0x63)...
zwave-js-ui | 1 registered
zwave-js-ui | 15:18:43.575 CNTRLR querying controller IDs...
zwave-js-ui | 15:18:44.428 SERIAL » 0x01030020dc (5 bytes)
zwave-js-ui | 15:18:44.435 DRIVER » [REQ] [GetControllerId]
zwave-js-ui | 15:18:45.464 CNTRLR Failed to execute controller command after 1/3 attempts. Scheduling next try i
zwave-js-ui | n 100 ms.
zwave-js-ui | 15:18:45.574 SERIAL » 0x01030020dc (5 bytes)
zwave-js-ui | 15:18:45.580 DRIVER » [REQ] [GetControllerId]
zwave-js-ui | 15:18:46.595 CNTRLR Failed to execute controller command after 2/3 attempts. Scheduling next try i
zwave-js-ui | n 1100 ms.
zwave-js-ui | 15:18:47.706 SERIAL » 0x01030020dc (5 bytes)
zwave-js-ui | 15:18:47.711 DRIVER » [REQ] [GetControllerId]
zwave-js-ui | 15:18:48.768 DRIVER Failed to initialize the driver: ZWaveError: Timeout while waiting for an ACK
zwave-js-ui | from the controller (ZW0200)
zwave-js-ui | at Driver.sendMessage (/usr/src/app/node_modules/zwave-js/src/lib/driver/D
zwave-js-ui | river.ts:4199:23)
zwave-js-ui | at ZWaveController.identify (/usr/src/app/node_modules/zwave-js/src/lib/co
zwave-js-ui | ntroller/Controller.ts:930:33)
zwave-js-ui | at Driver.initializeControllerAndNodes (/usr/src/app/node_modules/zwave-js
zwave-js-ui | /src/lib/driver/Driver.ts:1292:26)
zwave-js-ui | at Immediate.<anonymous> (/usr/src/app/node_modules/zwave-js/src/lib/drive
zwave-js-ui | r/Driver.ts:1098:16)
zwave-js-ui | 2023-05-04 15:18:48.790 INFO Z-WAVE-SERVER: Server closed
zwave-js-ui | 15:18:48.795 DRIVER destroying driver instance...
zwave-js-ui | 15:18:48.806 DRIVER driver instance destroyed
stekl
(Stefano)
May 5, 2023, 12:22pm
9
the “Z-Wave.Me Razberry 2 (500 series)” dosen’t works!
Ok tnks.
I joust ordered one aeotech zwave module, tomorrow I will tray with them
regards
Stefano