I am still on my issue of hassio hang when launching this addon:
When I try to ping I get the following result:
64 bytes from 192.168.1. Xxx: icmp_seq=81 ttl=64 time=1.78 ms
64 bytes from 192.168.1.xxx: icmp_seq=82 ttl=64 time=1.37 ms
64 bytes from 192.168.1.xxx: icmp_seq=83 ttl=64 time=1.39 ms
64 bytes from 192.168.1.xxx: icmp_seq=84 ttl=64 time=1.41 ms
64 bytes from 192.168.1.xxx: icmp_seq=85 ttl=64 time=1.57 ms
64 bytes from 192.168.1.xxx: icmp_seq=86 ttl=64 time=754 ms
64 bytes from 192.168.1.xxx: icmp_seq=87 ttl=64 time=3320 ms
64 bytes from 192.168.1.xxx: icmp_seq=88 ttl=64 time=5319 ms
64 bytes from 192.168.1.xxx: icmp_seq=89 ttl=64 time=5359 ms
64 bytes from 192.168.1.xxx: icmp_seq=90 ttl=64 time=5631 ms
64 bytes from 192.168.1.xxx: icmp_seq=91 ttl=64 time=5898 ms
64 bytes from 192.168.1.xxx: icmp_seq=92 ttl=64 time=5359 ms
64 bytes from 192.168.1.xxx: icmp_seq=93 ttl=64 time=5401 ms
64 bytes from 192.168.1.xxx: icmp_seq=94 ttl=64 time=5815 ms
64 bytes from 192.168.1.xxx: icmp_seq=95 ttl=64 time=6130 ms
64 bytes from 192.168.1.xxx: icmp_seq=96 ttl=64 time=12408 ms
64 bytes from 192.168.1.xxx: icmp_seq=97 ttl=64 time=13463 ms
64 bytes from 192.168.1.xxx: icmp_seq=98 ttl=64 time=13034 ms
64 bytes from 192.168.1.xxx: icmp_seq=99 ttl=64 time=13215 ms
64 bytes from 192.168.1.xxx: icmp_seq=100 ttl=64 time=15294 ms
64 bytes from 192.168.1.xxx: icmp_seq=101 ttl=64 time=16617 ms
Access to hassio is then almost impossible.
Here is the log:
[Info] Configuration file found. Will overwrite configurable fields with values from add-on configuration
[Info] Configuration written to /share/zigbee2mqtt/configuration.yaml
2018-11-24T11:24:44: PM2 log: Launching in no daemon mode
2018-11-24T11:24:44: PM2 log: App [npm:0] starting in -fork mode-
2018-11-24T11:24:45: PM2 log: App [npm:0] online
> [email protected] start /zigbee2mqtt-0.2.0
> node index.js
Zigbee2mqtt requires node version >=8.11 10, you are running v8.11.4!
zigbee2mqtt:info 2018-11-24 11:24:50 Logging to directory: '/share/zigbee2mqtt/log/2018-11-24.11-24-49'
zigbee2mqtt:info 2018-11-24 11:24:51 Starting zigbee2mqtt version 0.2.0 (commit #unknown)
zigbee2mqtt:info 2018-11-24 11:24:51 Starting zigbee-shepherd
zigbee2mqtt:info 2018-11-24 11:24:55 Error while starting zigbee-shepherd, attemping to fix... (takes 60 seconds)
zigbee2mqtt:info 2018-11-24 11:25:55 Starting zigbee-shepherd
zigbee2mqtt:info 2018-11-24 11:26:11 zigbee-shepherd started
zigbee2mqtt:info 2018-11-24 11:26:11 Coordinator firmware version: '20181024'
zigbee2mqtt:info 2018-11-24 11:26:11 Currently 9 devices are joined:
(...)
zigbee2mqtt:info 2018-11-24 11:26:11 Zigbee: disabling joining new devices.
zigbee2mqtt:info 2018-11-24 11:26:11 Connecting to MQTT server at mqtt://192.168.1.101:1883
zigbee2mqtt:info 2018-11-24 11:26:12 zigbee-shepherd ready
zigbee2mqtt:info 2018-11-24 11:26:12 Connected to MQTT server
zigbee2mqtt:info 2018-11-24 11:26:12 MQTT publish, topic: 'zigbee2mqtt/bridge/state', payload: 'online'
zigbee2mqtt:info 2018-11-24 11:26:12 MQTT publish, topic: 'zigbee2mqtt/0x00xxxxxxxxxxxx', payload:
(ā¦)
zigbee2mqtt:info 2018-11-24 11:26:15
{āmessageā:ārequest timeoutā,āstackā:āError: request timeout\n at CcZnp. (/zigbee2mqtt-0.2.0/node_modules/cc-znp/lib/ccznp.js:255:22)\n at Object.onceWrapper (events.js:315:30)\n at emitOne (events.js:116:13)\n at CcZnp.emit (events.js:211:7)\n at Timeout. (/zigbee2mqtt-0.2.0/node_modules/cc-znp/lib/ccznp.js:234:18)\n at ontimeout (timers.js:498:11)\n at tryOnTimeout (timers.js:323:5)\n at Timer.listOnTimeout (timers.js:290:5)ā}
I solved the issue of HASSIO crashing. Uninstall the add on, delete the configuration.yaml and database.db in the share/zigbee2mqtt folder and then everything seems to be fine. But after some time the issue is back again.
I am completely lost and donāt know what to do to permanently solve the issue.
Thank you, that was the old way I configured my zwave stick too. Unfortinatly, the zwave component stopped supporting that way of configuring the usb-path some versions ago, so I had to change it to the TTYACM-way. But maybe I can force the sniffer to be be mounted to TTYACM1 instead of TTYACM0? that could fix my problem.
EDIT: When changing usb places from the front to the back, and vica versa, the problem got solved.
I use the serial/by-id path for zwave using 0.82.1 with no problems. I also use it for zigbee2mqtt with no issues. There is also a way to use udev rules to create a symlink, but that is not as easy. But as long as you donāt change usb ports, it generally will keep it the same device name.
@creznikov thank you for the update. Didnāt know they changed back again the support for zwave by-id. Yes, everything is up and running now, switching the usb sticks did the trick. Thanks anyways
I am a little bit insecure about how to add the TrƄdfri Motion Sensor as a new device.
Do I just make the directory and the file in the share/zigbee2mqtt folder?
Like this: share/zigbee2mqtt/node_modules/zigbee-shepherd-converters
Then add the devices.js in that folder (with the correct info) and then download and add this file in this folder:
I must be missing something, when I go to share/zigbee2mqtt, there is no folder called node_modules. Am I looking in the wrong folder, or do I need to write something in the addon config to make it?
I got the same config. So donāt know why you got the folders automatically, and I donāt. But as long they are in the /share/zigbee2mqtt/ folder, I can just make them according to the guide.
Does anyone have a suggestion for troubleshooting the cc debugger?
I canāt get that green light. Iāve installed drivers (manually, it shows correctly in device manager), Iāve flashed firmware (v 0044) via SmartRF Flash programmer (according to the troubleshooting guide) but still just a red light.
The CC2531 is powered (green LED2 on) when connected to the debugger (not plugged in itself).
Make sure you press the āResetā button on the debugger once itās connected. Sometimes when I use it (not for this project) I have to hold the connector against the PCB juuuust right in order to make the connection, so I end up wiggling it around slowly while spamming the āResetā button until I get a green light, then I hit āProgramā as fast as I can while trying to hold the connector still.