@apollon77
Erstmal vielen Dank für die Anleitung. Fast alles hat auch so geklappt. Zigbee ging mit Warten grundsätzlich auch. Ich habe allerdings 2 Zigbee Instanzen und die zweite macht Ärger:
2021-05-01 21:17:22.097 - error: host.raspberrypi Caught by controller[0]: /opt/iobroker/node_modules/zigbee-herdsman/node_modules/bindings/bindings.js:121
2021-05-01 21:17:22.097 - error: host.raspberrypi Caught by controller[0]: throw e;
2021-05-01 21:17:22.097 - error: host.raspberrypi Caught by controller[0]: ^
2021-05-01 21:17:22.097 - error: host.raspberrypi Caught by controller[0]: Error: The module '/opt/iobroker/node_modules/zigbee-herdsman/node_modules/@serialport/bindings/build/Release/bindings.node'
2021-05-01 21:17:22.098 - error: host.raspberrypi Caught by controller[0]: was compiled against a different Node.js version using
2021-05-01 21:17:22.098 - error: host.raspberrypi Caught by controller[0]: NODE_MODULE_VERSION 64. This version of Node.js requires
2021-05-01 21:17:22.098 - error: host.raspberrypi Caught by controller[0]: NODE_MODULE_VERSION 72. Please try re-compiling or re-installing
2021-05-01 21:17:22.098 - error: host.raspberrypi Caught by controller[0]: the module (for instance, using `npm rebuild` or `npm install`).
2021-05-01 21:17:22.098 - error: host.raspberrypi Caught by controller[0]: at Object.Module._extensions..node (internal/modules/cjs/loader.js:1057:18)
2021-05-01 21:17:22.098 - error: host.raspberrypi Caught by controller[0]: at Module.load (internal/modules/cjs/loader.js:863:32)
2021-05-01 21:17:22.098 - error: host.raspberrypi Caught by controller[0]: at Function.Module._load (internal/modules/cjs/loader.js:708:14)
2021-05-01 21:17:22.099 - error: host.raspberrypi Caught by controller[0]: at Module.require (internal/modules/cjs/loader.js:887:19)
2021-05-01 21:17:22.099 - error: host.raspberrypi Caught by controller[0]: at require (internal/modules/cjs/helpers.js:74:18)
2021-05-01 21:17:22.099 - error: host.raspberrypi Caught by controller[0]: at bindings (/opt/iobroker/node_modules/zigbee-herdsman/node_modules/bindings/bindings.js:112:48)
2021-05-01 21:17:22.099 - error: host.raspberrypi Caught by controller[0]: at Object. (/opt/iobroker/node_modules/zigbee-herdsman/node_modules/@serialport/bindings/lib/linux.js:2:36)
2021-05-01 21:17:22.099 - error: host.raspberrypi Caught by controller[0]: at Module._compile (internal/modules/cjs/loader.js:999:30)
2021-05-01 21:17:22.099 - error: host.raspberrypi Caught by controller[0]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
2021-05-01 21:17:22.099 - error: host.raspberrypi Caught by controller[0]: at Module.load (internal/modules/cjs/loader.js:863:32)
2021-05-01 21:17:22.100 - error: host.raspberrypi instance system.adapter.zigbee.1 terminated with code 1 (JS_CONTROLLER_STOPPED)
Daraufhin habe ich npm install --production in /opt/iobroker/node_modules/serialport/node_modules/@serialport/bindings ausgeführt.
Zigbee.0 ist grün, Zigbee.1 bleibt auf gelb.
Es kommt Folgendes (hab mal alles kopiert, keine Ahnung was wichtig ist...):
2021-05-02 09:29:30.152 - error: zigbee.1 (26947) Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().
2021-05-02 09:29:30.153 - error: zigbee.1 (26947) unhandled promise rejection: Cannot read property 'getEntries' of null
2021-05-02 09:29:30.155 - error: zigbee.1 (26947) TypeError: Cannot read property 'getEntries' of null
at Function.loadFromDatabaseIfNecessary (/opt/iobroker/node_modules/iobroker.zigbee/node_modules/zigbee-herdsman/dist/controller/model/device.js:221:55)
at Function.all (/opt/iobroker/node_modules/iobroker.zigbee/node_modules/zigbee-herdsman/dist/controller/model/device.js:241:16)
at Controller.getDevices (/opt/iobroker/node_modules/iobroker.zigbee/node_modules/zigbee-herdsman/dist/controller/controller.js:289:31)
at ZigbeeController.getClients (/opt/iobroker/node_modules/iobroker.zigbee/lib/zigbeecontroller.js:206:49)
at DeviceAvailability.stop (/opt/iobroker/node_modules/iobroker.zigbee/lib/zbDeviceAvailability.js:222:43)
at ZigbeeController.callExtensionMethod (/opt/iobroker/node_modules/iobroker.zigbee/lib/zigbeecontroller.js:192:42)
at ZigbeeController.stop (/opt/iobroker/node_modules/iobroker.zigbee/lib/zigbeecontroller.js:310:20)
at Zigbee.onUnload (/opt/iobroker/node_modules/iobroker.zigbee/main.js:581:41)
at Zigbee.emit (events.js:314:20)
at stop (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:8620:22)
2021-05-02 09:29:30.156 - error: zigbee.1 (26947) Cannot read property 'getEntries' of null
2021-05-02 09:29:31.145 - info: host.raspberrypi stopInstance system.adapter.zigbee.1 killing pid 26947
2021-05-02 09:29:32.520 - info: host.raspberrypi "system.adapter.zigbee.1" enabled
2021-05-02 09:29:32.554 - info: host.raspberrypi instance system.adapter.zigbee.1 started with pid 11723
2021-05-02 09:29:34.829 - error: zigbee.1 (11723) zigbee.1 already running
2021-05-02 09:29:34.832 - warn: zigbee.1 (11723) Terminated (ADAPTER_ALREADY_RUNNING): Without reason
2021-05-02 09:29:35.423 - error: host.raspberrypi instance system.adapter.zigbee.1 terminated with code 7 (ADAPTER_ALREADY_RUNNING)
2021-05-02 09:29:35.424 - info: host.raspberrypi Restart adapter system.adapter.zigbee.1 because enabled
2021-05-02 09:29:35.784 - error: host.raspberrypi instance system.adapter.zigbee.1 terminated by request of the instance itself and will not be restarted, before user restarts it.
2021-05-02 09:29:35.784 - info: host.raspberrypi Do not restart adapter system.adapter.zigbee.1 because desired by instance
2021-05-02 09:30:05.470 - info: host.raspberrypi instance system.adapter.zigbee.1 started with pid 11737
2021-05-02 09:30:08.265 - info: zigbee.1 (11737) starting. Version 1.4.4 in /opt/iobroker/node_modules/iobroker.zigbee, node: v12.22.1, js-controller: 3.2.16
2021-05-02 09:30:08.366 - info: zigbee.1 (11737) Starting Zigbee npm ...
2021-05-02 09:30:08.921 - info: zigbee.1 (11737) Installed Version: iobroker.zigbee@1.4.4
2021-05-02 09:30:11.604 - info: host.raspberrypi Updating repository "stable" under "http://download.iobroker.net/sources-dist.json"
2021-05-02 09:30:48.540 - error: zigbee.1 (11737) Failed to start Zigbee
2021-05-02 09:30:48.543 - error: zigbee.1 (11737) Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)
at ZStackAdapter. (/opt/iobroker/node_modules/iobroker.zigbee/node_modules/zigbee-herdsman/dist/adapter/z-stack/adapter/zStackAdapter.js:94:31)
at Generator.throw ()
at rejected (/opt/iobroker/node_modules/iobroker.zigbee/node_modules/zigbee-herdsman/dist/adapter/z-stack/adapter/zStackAdapter.js:25:65)
2021-05-02 09:30:58.546 - info: zigbee.1 (11737) Try to reconnect. 1 attempts left
2021-05-02 09:30:58.548 - info: zigbee.1 (11737) Starting Zigbee npm ...
2021-05-02 09:30:58.592 - info: zigbee.1 (11737) Installed Version: iobroker.zigbee@1.4.4
2021-05-02 09:31:03.854 - error: zigbee.1 (11737) Failed to start Zigbee
2021-05-02 09:31:03.856 - error: zigbee.1 (11737) Error: Error while opening serialport 'Error: Error Resource temporarily unavailable Cannot lock port'
at Znp. (/opt/iobroker/node_modules/iobroker.zigbee/node_modules/zigbee-herdsman/dist/adapter/z-stack/znp/znp.js:136:32)
at Generator.next ()
at /opt/iobroker/node_modules/iobroker.zigbee/node_modules/zigbee-herdsman/dist/adapter/z-stack/znp/znp.js:27:71
at new Promise ()
at __awaiter (/opt/iobroker/node_modules/iobroker.zigbee/node_modules/zigbee-herdsman/dist/adapter/z-stack/znp/znp.js:23:12)
at SerialPort. (/opt/iobroker/node_modules/iobroker.zigbee/node_modules/zigbee-herdsman/dist/adapter/z-stack/znp/znp.js:134:49)
at SerialPort._error (/opt/iobroker/node_modules/iobroker.zigbee/node_modules/zigbee-herdsman/node_modules/@serialport/stream/lib/index.js:198:14)
at /opt/iobroker/node_modules/iobroker.zigbee/node_modules/zigbee-herdsman/node_modules/@serialport/stream/lib/index.js:242:12
2021-05-02 09:37:16.246 - info: host.raspberrypi "system.adapter.zigbee.1" disabled
2021-05-02 09:37:16.258 - info: host.raspberrypi stopInstance system.adapter.zigbee.1 (force=false, process=true)
2021-05-02 09:37:16.268 - info: zigbee.1 (11737) Got terminate signal TERMINATE_YOURSELF
2021-05-02 09:37:16.268 - info: host.raspberrypi stopInstance system.adapter.zigbee.1 send kill signal
2021-05-02 09:37:16.270 - info: zigbee.1 (11737) cleaned everything up...
2021-05-02 09:37:16.277 - info: zigbee.1 (11737) Zigbee: disabling joining new devices.
2021-05-02 09:37:16.280 - warn: zigbee.1 (11737) Failed to stop zigbee during startup
2021-05-02 09:37:16.281 - info: zigbee.1 (11737) terminating
2021-05-02 09:37:16.283 - info: zigbee.1 (11737) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason
2021-05-02 09:37:16.285 - error: zigbee.1 (11737) Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().
2021-05-02 09:37:16.286 - error: zigbee.1 (11737) unhandled promise rejection: Cannot read property 'getEntries' of null
2021-05-02 09:37:16.292 - error: zigbee.1 (11737) TypeError: Cannot read property 'getEntries' of null
at Function.loadFromDatabaseIfNecessary (/opt/iobroker/node_modules/iobroker.zigbee/node_modules/zigbee-herdsman/dist/controller/model/device.js:221:55)
at Function.all (/opt/iobroker/node_modules/iobroker.zigbee/node_modules/zigbee-herdsman/dist/controller/model/device.js:241:16)
at Controller.getDevices (/opt/iobroker/node_modules/iobroker.zigbee/node_modules/zigbee-herdsman/dist/controller/controller.js:289:31)
at ZigbeeController.getClients (/opt/iobroker/node_modules/iobroker.zigbee/lib/zigbeecontroller.js:206:49)
at DeviceAvailability.stop (/opt/iobroker/node_modules/iobroker.zigbee/lib/zbDeviceAvailability.js:222:43)
at ZigbeeController.callExtensionMethod (/opt/iobroker/node_modules/iobroker.zigbee/lib/zigbeecontroller.js:192:42)
at ZigbeeController.stop (/opt/iobroker/node_modules/iobroker.zigbee/lib/zigbeecontroller.js:310:20)
at Zigbee.onUnload (/opt/iobroker/node_modules/iobroker.zigbee/main.js:581:41)
at Zigbee.emit (events.js:314:20)
at stop (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:8620:22)
2021-05-02 09:37:16.292 - error: zigbee.1 (11737) Cannot read property 'getEntries' of null
2021-05-02 09:37:17.277 - info: host.raspberrypi stopInstance system.adapter.zigbee.1 killing pid 11737
2021-05-02 09:37:18.707 - info: host.raspberrypi "system.adapter.zigbee.1" enabled
2021-05-02 09:37:18.763 - info: host.raspberrypi instance system.adapter.zigbee.1 started with pid 12125
2021-05-02 09:37:20.991 - error: zigbee.1 (12125) zigbee.1 already running
2021-05-02 09:37:20.993 - warn: zigbee.1 (12125) Terminated (ADAPTER_ALREADY_RUNNING): Without reason
2021-05-02 09:37:21.589 - error: host.raspberrypi instance system.adapter.zigbee.1 terminated with code 7 (ADAPTER_ALREADY_RUNNING)
2021-05-02 09:37:21.590 - info: host.raspberrypi Restart adapter system.adapter.zigbee.1 because enabled
2021-05-02 09:37:21.598 - info: javascript.0 (23961) script.js.Eigene_Skripte.##on_log_-_Überwachung_und_telegram: ERROR an telegram gesendet
2021-05-02 09:37:21.906 - error: host.raspberrypi instance system.adapter.zigbee.1 terminated by request of the instance itself and will not be restarted, before user restarts it.
2021-05-02 09:37:21.907 - info: host.raspberrypi Do not restart adapter system.adapter.zigbee.1 because desired by instance
2021-05-02 09:37:48.558 - info: host.raspberrypi "system.adapter.zigbee.0" disabled
2021-05-02 09:37:48.562 - info: host.raspberrypi stopInstance system.adapter.zigbee.0 (force=false, process=true)
2021-05-02 09:37:48.580 - info: host.raspberrypi stopInstance system.adapter.zigbee.0 send kill signal
2021-05-02 09:37:48.578 - info: zigbee.0 (25626) Got terminate signal TERMINATE_YOURSELF
2021-05-02 09:37:48.581 - info: zigbee.0 (25626) cleaned everything up...
2021-05-02 09:37:48.586 - info: zigbee.0 (25626) Zigbee: disabling joining new devices.
2021-05-02 09:37:48.871 - info: zigbee.0 (25626) terminating
2021-05-02 09:37:48.872 - info: zigbee.0 (25626) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason
2021-05-02 09:37:49.496 - info: host.raspberrypi instance system.adapter.zigbee.0 terminated with code 11 (ADAPTER_REQUESTED_TERMINATION)
2021-05-02 09:37:49.860 - info: host.raspberrypi "system.adapter.zigbee.1" disabled
2021-05-02 09:37:54.304 - error: zigbee.1 (12144) adapter disabled
2021-05-02 09:37:54.323 - warn: zigbee.1 (12144) Terminated (NO_ADAPTER_CONFIG_FOUND): Without reason
2021-05-02 09:37:54.930 - error: host.raspberrypi instance system.adapter.zigbee.1 terminated with code 3 (NO_ADAPTER_CONFIG_FOUND)
2021-05-02 09:37:54.931 - info: host.raspberrypi Do not restart adapter system.adapter.zigbee.1 because disabled or deleted
2021-05-02 09:37:57.145 - info: host.raspberrypi "system.adapter.zigbee.0" enabled
2021-05-02 09:37:57.197 - info: host.raspberrypi instance system.adapter.zigbee.0 started with pid 12174
2021-05-02 09:37:58.011 - info: host.raspberrypi "system.adapter.zigbee.1" enabled
2021-05-02 09:37:58.053 - info: host.raspberrypi instance system.adapter.zigbee.1 started with pid 12181
2021-05-02 09:37:59.855 - info: zigbee.0 (12174) starting. Version 1.4.4 in /opt/iobroker/node_modules/iobroker.zigbee, node: v12.22.1, js-controller: 3.2.16
2021-05-02 09:37:59.966 - info: zigbee.0 (12174) Starting Zigbee npm ...
2021-05-02 09:38:00.629 - info: zigbee.0 (12174) Installed Version: iobroker.zigbee@1.4.4
2021-05-02 09:38:00.910 - info: zigbee.1 (12181) starting. Version 1.4.4 in /opt/iobroker/node_modules/iobroker.zigbee, node: v12.22.1, js-controller: 3.2.16
2021-05-02 09:38:01.013 - info: zigbee.1 (12181) Starting Zigbee npm ...
2021-05-02 09:38:01.576 - info: zigbee.1 (12181) Installed Version: iobroker.zigbee@1.4.4
2021-05-02 09:38:02.235 - info: zigbee.0 (12174) Coordinator firmware version: {"type":"zStack30x","meta":{"transportrev":2,"product":2,"majorrel":2,"minorrel":7,"maintrel":2,"revision":20200211}}
2021-05-02 09:38:02.239 - info: zigbee.0 (12174) Disable LED
2021-05-02 09:38:02.242 - info: zigbee.0 (12174) --> transmitPower : normal
2021-05-02 09:38:02.249 - info: zigbee.0 (12174) Currently 5 devices are joined:
2021-05-02 09:38:02.280 - info: zigbee.0 (12174) Configuring 0x04cf8cdf3c7759af lumi.sen_ill.mgl01
2021-05-02 09:38:02.288 - info: zigbee.0 (12174) 0x00158d0004094af0 (addr 26820): WXKG02LM_rev2 - Xiaomi Aqara double key wireless wall switch (2018 model) (EndDevice)
2021-05-02 09:38:02.291 - info: zigbee.0 (12174) 0xd0cf5efffe1194fb (addr 36701): ICPSHC24-30EU-IL-1 - IKEA TRADFRI driver for wireless control (30 watt) (Router)
2021-05-02 09:38:02.293 - info: zigbee.0 (12174) 0x680ae2fffe9178f4 (addr 28525): ICPSHC24-10EU-IL-1 - IKEA TRADFRI driver for wireless control (10 watt) (Router)
2021-05-02 09:38:02.294 - info: zigbee.0 (12174) 0x04cf8cdf3c7759af (addr 65466): GZCGQ01LM - Xiaomi MiJia light intensity sensor (EndDevice)
2021-05-02 09:38:02.296 - info: zigbee.0 (12174) 0x00158d00027d7fb3 (addr 27291): WXKG11LM - Xiaomi Aqara wireless switch (EndDevice)
2021-05-02 09:38:02.297 - info: zigbee.0 (12174) Zigbee started
2021-05-02 09:38:12.313 - warn: zigbee.0 (12174) DeviceConfigure failed 0x04cf8cdf3c7759af lumi.sen_ill.mgl01, attempt 1 (Error: Bind 0x04cf8cdf3c7759af/1 genPowerCfg from '0x00124b00062d5b84/1' failed (AREQ - ZDO - bindRsp after 10000ms)
at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.zigbee/node_modules/zigbee-herdsman/dist/utils/waitress.js:37:35)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7))
2021-05-02 09:38:41.177 - error: zigbee.1 (12181) Failed to start Zigbee
2021-05-02 09:38:41.179 - error: zigbee.1 (12181) Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)
at ZStackAdapter. (/opt/iobroker/node_modules/iobroker.zigbee/node_modules/zigbee-herdsman/dist/adapter/z-stack/adapter/zStackAdapter.js:94:31)
at Generator.throw ()
at rejected (/opt/iobroker/node_modules/iobroker.zigbee/node_modules/zigbee-herdsman/dist/adapter/z-stack/adapter/zStackAdapter.js:25:65)
2021-05-02 09:38:41.184 - info: javascript.0 (23961) script.js.Eigene_Skripte.##on_log_-_Überwachung_und_telegram: ERROR an telegram gesendet
2021-05-02 09:38:41.187 - info: javascript.0 (23961) script.js.Eigene_Skripte.##on_log_-_Überwachung_und_telegram: ERROR an telegram gesendet
2021-05-02 09:38:51.181 - info: zigbee.1 (12181) Try to reconnect. 1 attempts left
2021-05-02 09:38:51.183 - info: zigbee.1 (12181) Starting Zigbee npm ...
2021-05-02 09:38:51.230 - info: zigbee.1 (12181) Installed Version: iobroker.zigbee@1.4.4
2021-05-02 09:38:56.494 - error: zigbee.1 (12181) Failed to start Zigbee
2021-05-02 09:38:56.496 - error: zigbee.1 (12181) Error: Error while opening serialport 'Error: Error Resource temporarily unavailable Cannot lock port'