2022-04-21 Zigbee2MQTT entfernt von RPI4 ----------------------------- rm -rf /opt/zigbee2mqtt 2022-04-21 Neu-Installation Zigbee2MQTT ---------------------------- pi@RaspberryPi4:~ $ ls -l /dev/serial/by-id totaal 0 lrwxrwxrwx 1 root root 13 apr 10 16:23 usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_348c50c5c7c9eb1198218b4f1d69213e-if00-port0 -> ../../ttyUSB0 pi@RaspberryPi4:~ $ ls -l /dev/ttyUSB0 crw-rw---- 1 root dialout 188, 0 apr 20 20:24 /dev/ttyUSB0 pi@RaspberryPi4:~ $ nano /opt/zigbee2mqtt/data/configuration.yaml CONFIGURATION.YAML GNU nano 3.2 /opt/zigbee2mqtt/data/configuration.yaml homeassistant: false permit_join: true mqtt: base_topic: zigbee2mqtt server: mqtt://192.168.178.55:1883 serial: port: /dev/ttyUSB0 frontend: true devices: '0x60a423fffe05548a': friendly_name: '0x60a423fffe05548a' pi@RaspberryPi4:~ $ node --version v16.14.1 pi@RaspberryPi4:~ $ npm --version 8.5.0 pi@RaspberryPi4:~ $ git clone https://github.com/Koenkk/zigbee2mqtt.git Cloning into 'zigbee2mqtt'... remote: Enumerating objects: 21602, done. remote: Counting objects: 100% (4396/4396), done. remote: Compressing objects: 100% (181/181), done. remote: Total 21602 (delta 4266), reused 4278 (delta 4215), pack-reused 17206 Receiving objects: 100% (21602/21602), 100.18 MiB | 4.46 MiB/s, done. Resolving deltas: 100% (16225/16225), done. pi@RaspberryPi4:~ $ sudo mv zigbee2mqtt /opt/zigbee2mqtt pi@RaspberryPi4:~ $ cd /opt/zigbee2mqtt pi@RaspberryPi4:/opt/zigbee2mqtt $ dir babel.config.js CONTRIBUTING.md images LICENSE README.md tsconfig.json cli.js data index.js npm-shrinkwrap.json scripts update.sh CODE_OF_CONDUCT.md docker lib package.json test pi@RaspberryPi4:/opt/zigbee2mqtt $ npm ci npm WARN old lockfile npm WARN old lockfile The npm-shrinkwrap.json file was created with an old version of npm, npm WARN old lockfile so supplemental metadata must be fetched from the registry. npm WARN old lockfile npm WARN old lockfile This is a one-time fix-up, please be patient... npm WARN old lockfile added 976 packages, and audited 977 packages in 2m 75 packages are looking for funding run `npm fund` for details 2 vulnerabilities (1 high, 1 critical) To address all issues, run: npm audit fix Run `npm audit` for details. pi@RaspberryPi4:/opt/zigbee2mqtt $ npm fund zigbee2mqtt@1.25.0 ├── https://github.com/sponsors/epoberezkin │ └── ajv@8.11.0, ajv@6.12.6 ├── https://opencollective.com/core-js │ └── core-js@3.21.1, core-js-compat@3.21.1 ├── https://github.com/sponsors/isaacs │ └── rimraf@3.0.2, glob@7.2.0 ├─┬ https://opencollective.com/babel │ │ └── @babel/core@7.17.8 │ └── https://opencollective.com/browserslist │ └── browserslist@4.20.2, caniuse-lite@1.0.30001320 ├── https://opencollective.com/typescript-eslint │ └── @typescript-eslint/eslint-plugin@5.16.0, @typescript-eslint/scope-manager@5.16.0, @typescript-eslint/types@5.16.0, @typescript-eslint/visitor-keys@5.16.0, @typescript-eslint/type-utils@5.16.0, @typescript-eslint/utils@5.16.0, @typescript-eslint/typescript-estree@5.16.0, @typescript-eslint/parser@5.16.0 ├── https://opencollective.com/eslint │ └── eslint@8.12.0 ├── https://opencollective.com/serialport/donate │ └── serialport@9.2.8, @serialport/binding-mock@9.2.4, @serialport/binding-abstract@9.2.3, @serialport/bindings@9.2.8, @serialport/parser-byte-length@9.2.4, @serialport/parser-cctalk@9.2.4, @serialport/parser-delimiter@9.2.4, @serialport/parser-inter-byte-timeout@9.2.4, @serialport/parser-readline@9.2.4, @serialport/parser-ready@9.2.4, @serialport/parser-regex@9.2.4, @serialport/stream@9.2.4 ├── https://github.com/sponsors/RubenVerborgh │ └── follow-redirects@1.14.9 ├── https://github.com/sponsors/ljharb │ └── object.assign@4.1.2, call-bind@1.0.2, get-intrinsic@1.1.1, has-symbols@1.0.3, resolve@1.22.0, is-core-module@2.8.1, supports-preserve-symlinks-flag@1.0.0 ├─┬ https://github.com/chalk/chalk?sponsor=1 │ │ └── chalk@4.1.2 │ └── https://github.com/chalk/ansi-styles?sponsor=1 │ └── ansi-styles@4.3.0, ansi-styles@5.2.0 ├── https://github.com/chalk/supports-color?sponsor=1 │ └── supports-color@8.1.1 ├── https://github.com/sindresorhus/emittery?sponsor=1 │ └── emittery@0.8.1 ├── https://github.com/sindresorhus/execa?sponsor=1 │ └── execa@5.1.1 └── https://github.com/chalk/wrap-ansi?sponsor=1 └── wrap-ansi@7.0.0 pi@RaspberryPi4:/opt/zigbee2mqtt $ npm audit fix npm WARN old lockfile npm WARN old lockfile The npm-shrinkwrap.json file was created with an old version of npm, npm WARN old lockfile so supplemental metadata must be fetched from the registry. npm WARN old lockfile npm WARN old lockfile This is a one-time fix-up, please be patient... npm WARN old lockfile removed 123 packages, changed 1 package, and audited 854 packages in 24s 75 packages are looking for funding run `npm fund` for details found 0 vulnerabilities pi@RaspberryPi4:/opt/zigbee2mqtt $ nano /opt/zigbee2mqtt/data/configuration.yaml pi@RaspberryPi4:/opt/zigbee2mqtt $ pi@RaspberryPi4:/opt/zigbee2mqtt $ npm start > zigbee2mqtt@1.25.0 start > node index.js Building Zigbee2MQTT... (initial build), finished Zigbee2MQTT:info 2022-04-21 20:01:13: Logging to console and directory: '/opt/zigbee2mqtt/data/log/2022-04-21.20-01-11' filename: log.txt Zigbee2MQTT:info 2022-04-21 20:01:13: Starting Zigbee2MQTT version 1.25.0 (commit #6f1460e4) Zigbee2MQTT:info 2022-04-21 20:01:13: Starting zigbee-herdsman (0.14.20) Zigbee2MQTT:info 2022-04-21 20:01:23: zigbee-herdsman started (resumed) Zigbee2MQTT:info 2022-04-21 20:01:23: Coordinator firmware version: '{"meta":{"maintrel":1,"majorrel":2,"minorrel":7,"product":1,"revision":20210708,"transportrev":2},"type":"zStack3x0"}' Zigbee2MQTT:info 2022-04-21 20:01:23: Currently 0 devices are joined: Zigbee2MQTT:warn 2022-04-21 20:01:23: `permit_join` set to `true` in configuration.yaml. Zigbee2MQTT:warn 2022-04-21 20:01:23: Allowing new devices to join. Zigbee2MQTT:warn 2022-04-21 20:01:23: Set `permit_join` to `false` once you joined all devices. Zigbee2MQTT:info 2022-04-21 20:01:23: Zigbee: allowing new devices to join. Zigbee2MQTT:info 2022-04-21 20:01:24: Connecting to MQTT server at mqtt://192.168.178.55:1883 Zigbee2MQTT:info 2022-04-21 20:01:24: Connected to MQTT server Zigbee2MQTT:info 2022-04-21 20:01:24: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload 'online' Zigbee2MQTT:info 2022-04-21 20:01:24: Started frontend on port 0.0.0.0:8080 Zigbee2MQTT:info 2022-04-21 20:01:24: MQTT publish: topic 'zigbee2mqtt/bridge/config', payload '{"commit":"6f1460e4","coordinator":{"meta":{"maintrel":1,"majorrel":2,"minorrel":7,"product":1,"revision":20210708,"transportrev":2},"type":"zStack3x0"},"log_level":"info","network":{"channel":11,"extendedPanID":"0x00124b0024c08786","panID":6754},"permit_join":true,"version":"1.25.0"}' Zigbee2MQTT:info 2022-04-21 20:04:10: Device '0x60a423fffe05548a' joined Zigbee2MQTT:info 2022-04-21 20:04:10: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x60a423fffe05548a","ieee_address":"0x60a423fffe05548a"},"type":"device_joined"}' Zigbee2MQTT:info 2022-04-21 20:04:10: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":{"friendly_name":"0x60a423fffe05548a"},"type":"device_connected"}' Zigbee2MQTT:info 2022-04-21 20:04:10: Starting interview of '0x60a423fffe05548a' Zigbee2MQTT:info 2022-04-21 20:04:10: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x60a423fffe05548a","ieee_address":"0x60a423fffe05548a","status":"started"},"type":"device_interview"}' Zigbee2MQTT:info 2022-04-21 20:04:10: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"interview_started","meta":{"friendly_name":"0x60a423fffe05548a"},"type":"pairing"}' Zigbee2MQTT:info 2022-04-21 20:04:10: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x60a423fffe05548a","ieee_address":"0x60a423fffe05548a"},"type":"device_announce"}' Zigbee2MQTT:info 2022-04-21 20:04:10: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"announce","meta":{"friendly_name":"0x60a423fffe05548a"},"type":"device_announced"}' Zigbee2MQTT:info 2022-04-21 20:04:11: Successfully interviewed '0x60a423fffe05548a', device has successfully been paired Zigbee2MQTT:info 2022-04-21 20:04:11: Device '0x60a423fffe05548a' is supported, identified as: Lidl Silvercrest smart plug (EU, CH, FR, BS, DK) (HG06337) Zigbee2MQTT:info 2022-04-21 20:04:11: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"definition":{"description":"Silvercrest smart plug (EU, CH, FR, BS, DK)","exposes":[{"features":[{"access":7,"description":"On/off state of the switch","name":"state","property":"state","type":"binary","value_off":"OFF","value_on":"ON","value_toggle":"TOGGLE"}],"type":"switch"},{"access":1,"description":"Link quality (signal strength)","name":"linkquality","property":"linkquality","type":"numeric","unit":"lqi","value_max":255,"value_min":0}],"model":"HG06337","options":[],"supports_ota":false,"vendor":"Lidl"},"friendly_name":"0x60a423fffe05548a","ieee_address":"0x60a423fffe05548a","status":"successful","supported":true},"type":"device_interview"}' Zigbee2MQTT:info 2022-04-21 20:04:11: Configuring '0x60a423fffe05548a' Zigbee2MQTT:info 2022-04-21 20:04:11: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"interview_successful","meta":{"description":"Silvercrest smart plug (EU, CH, FR, BS, DK)","friendly_name":"0x60a423fffe05548a","model":"HG06337","supported":true,"vendor":"Lidl"},"type":"pairing"}' Zigbee2MQTT:info 2022-04-21 20:04:11: Successfully configured '0x60a423fffe05548a' Zigbee2MQTT:info 2022-04-21 20:04:16: MQTT publish: topic 'zigbee2mqtt/0x60a423fffe05548a', payload '{"linkquality":150,"state":"ON"}' Zigbee2MQTT:info 2022-04-21 20:14:19: Starting network scan (includeRoutes 'false') Zigbee2MQTT:error 2022-04-21 20:14:21: Publish 'set' 'state' to '0x60a423fffe05548a' failed: 'Error: Command 0x60a423fffe05548a/1 genOnOff.off({}, {"sendWhen":"immediate","timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (Data request failed with error: 'MAC no ack' (233))' Zigbee2MQTT:info 2022-04-21 20:14:21: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"Publish 'set' 'state' to '0x60a423fffe05548a' failed: 'Error: Command 0x60a423fffe05548a/1 genOnOff.off({}, {\"sendWhen\":\"immediate\",\"timeout\":10000,\"disableResponse\":false,\"disableRecovery\":false,\"disableDefaultResponse\":false,\"direction\":0,\"srcEndpoint\":null,\"reservedBits\":0,\"manufacturerCode\":null,\"transactionSequenceNumber\":null,\"writeUndiv\":false}) failed (Data request failed with error: 'MAC no ack' (233))'","meta":{"friendly_name":"0x60a423fffe05548a"},"type":"zigbee_publish_error"}' Zigbee2MQTT:error 2022-04-21 20:14:38: Publish 'set' 'state' to '0x60a423fffe05548a' failed: 'Error: Command 0x60a423fffe05548a/1 genOnOff.off({}, {"sendWhen":"immediate","timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (Data request failed with error: 'MAC no ack' (233))' Zigbee2MQTT:info 2022-04-21 20:14:38: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"Publish 'set' 'state' to '0x60a423fffe05548a' failed: 'Error: Command 0x60a423fffe05548a/1 genOnOff.off({}, {\"sendWhen\":\"immediate\",\"timeout\":10000,\"disableResponse\":false,\"disableRecovery\":false,\"disableDefaultResponse\":false,\"direction\":0,\"srcEndpoint\":null,\"reservedBits\":0,\"manufacturerCode\":null,\"transactionSequenceNumber\":null,\"writeUndiv\":false}) failed (Data request failed with error: 'MAC no ack' (233))'","meta":{"friendly_name":"0x60a423fffe05548a"},"type":"zigbee_publish_error"}' Zigbee2MQTT:error 2022-04-21 20:15:03: Failed to execute LQI for '0x60a423fffe05548a' Zigbee2MQTT:info 2022-04-21 20:15:03: Network scan finished Zigbee2MQTT:info 2022-04-21 20:15:03: MQTT publish: topic 'zigbee2mqtt/bridge/response/networkmap', payload '{"data":{"routes":false,"type":"raw","value":{"links":[],"nodes":[{"definition":null,"failed":[],"friendlyName":"Coordinator","ieeeAddr":"0x00124b0024c08786","lastSeen":null,"networkAddress":0,"type":"Coordinator"},{"definition":{"description":"Silvercrest smart plug (EU, CH, FR, BS, DK)","model":"HG06337","supports":"switch (state), linkquality","vendor":"Lidl"},"failed":["lqi"],"friendlyName":"0x60a423fffe05548a","ieeeAddr":"0x60a423fffe05548a","lastSeen":1650564256607,"manufacturerName":"_TZ3000_kdi2o9m6","modelID":"TS011F","networkAddress":26609,"type":"Router"}]}},"status":"ok","transaction":"xdune-1"}'