hi sihui,
danke das Du geantwortet hast, leider bekomme ich das nicht hin warum auch immer.
Die vorherigen Posts hatte ich gelesen.
Nit dem Frontend klappt es leider auch nicht, ich habe die Configuration.yaml angepasst, es will einfach nicht. Entweder übersehe etwas oder mit meinem ZigBee2Mqtt stimmt etwas nicht.
Wenn ich den Status abfrage kommt:
Code: Alles auswählen
● zigbee2mqtt.service - zigbee2mqtt
Loaded: loaded (/etc/systemd/system/zigbee2mqtt.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2022-06-30 19:02:17 CEST; 5s ago
Main PID: 17688 (node)
Tasks: 11 (limit: 3980)
CGroup: /system.slice/zigbee2mqtt.service
└─17688 npm
Jun 30 19:02:22 openHABianDevice npm[17688]: at readBlockMapping (/opt/zigbee2mqtt/node_modules/js-yaml/lib/loader.js:1182:7)
Jun 30 19:02:22 openHABianDevice npm[17688]: at composeNode (/opt/zigbee2mqtt/node_modules/js-yaml/lib/loader.js:1441:12)
Jun 30 19:02:22 openHABianDevice npm[17688]: at readDocument (/opt/zigbee2mqtt/node_modules/js-yaml/lib/loader.js:1625:3)
Jun 30 19:02:22 openHABianDevice npm[17688]: at loadDocuments (/opt/zigbee2mqtt/node_modules/js-yaml/lib/loader.js:1688:5)
Jun 30 19:02:22 openHABianDevice npm[17688]: at Object.load (/opt/zigbee2mqtt/node_modules/js-yaml/lib/loader.js:1714:19)
Jun 30 19:02:22 openHABianDevice npm[17688]: at Object.read (/opt/zigbee2mqtt/lib/util/yaml.ts:7:21)
Jun 30 19:02:22 openHABianDevice npm[17688]: at read (/opt/zigbee2mqtt/lib/util/settings.ts:310:20)
Jun 30 19:02:22 openHABianDevice npm[17688]: at getInternalSettings (/opt/zigbee2mqtt/lib/util/settings.ts:406:21)
Jun 30 19:02:22 openHABianDevice npm[17688]: (node:17705) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which w
Jun 30 19:02:22 openHABianDevice npm[17688]: (node:17705) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit co
rufe ich journalctl -u zigbee2mqtt.service -f auf kommt:
Code: Alles auswählen
Jun 30 19:29:09 openHABianDevice systemd[1]: zigbee2mqtt.service: Succeeded.
Jun 30 19:29:09 openHABianDevice systemd[1]: zigbee2mqtt.service: Service RestartSec=100ms expired, scheduling restart.
Jun 30 19:29:09 openHABianDevice systemd[1]: zigbee2mqtt.service: Scheduled restart job, restart counter is at 159.
Jun 30 19:29:09 openHABianDevice systemd[1]: Stopped zigbee2mqtt.
Jun 30 19:29:09 openHABianDevice systemd[1]: Started zigbee2mqtt.
Jun 30 19:29:11 openHABianDevice npm[6646]: > zigbee2mqtt@1.25.0 start /opt/zigbee2mqtt
Jun 30 19:29:11 openHABianDevice npm[6646]: > node index.js
Jun 30 19:29:14 openHABianDevice npm[6646]: (node:6692) UnhandledPromiseRejectionWarning: YAMLException: bad indentation of a mapping entry (14:2)
Jun 30 19:29:14 openHABianDevice npm[6646]: 11 | # MQTT server URL
Jun 30 19:29:14 openHABianDevice npm[6646]: 12 | server: 'mqtt://localhost'
Jun 30 19:29:14 openHABianDevice npm[6646]: 13 | # MQTT server authentication, ...
Jun 30 19:29:14 openHABianDevice npm[6646]: 14 | user: xxxxxxxxxx
Jun 30 19:29:14 openHABianDevice npm[6646]: -------^
Jun 30 19:29:14 openHABianDevice npm[6646]: 15 | password: xxxxxxx
Jun 30 19:29:14 openHABianDevice npm[6646]: 16 |
Jun 30 19:29:14 openHABianDevice npm[6646]: at generateError (/opt/zigbee2mqtt/node_modules/js-yaml/lib/loader.js:183:10)
Jun 30 19:29:14 openHABianDevice npm[6646]: at throwError (/opt/zigbee2mqtt/node_modules/js-yaml/lib/loader.js:187:9)
Jun 30 19:29:14 openHABianDevice npm[6646]: at readBlockMapping (/opt/zigbee2mqtt/node_modules/js-yaml/lib/loader.js:1182:7)
Jun 30 19:29:14 openHABianDevice npm[6646]: at composeNode (/opt/zigbee2mqtt/node_modules/js-yaml/lib/loader.js:1441:12)
Jun 30 19:29:14 openHABianDevice npm[6646]: at readDocument (/opt/zigbee2mqtt/node_modules/js-yaml/lib/loader.js:1625:3)
Jun 30 19:29:14 openHABianDevice npm[6646]: at loadDocuments (/opt/zigbee2mqtt/node_modules/js-yaml/lib/loader.js:1688:5)
Jun 30 19:29:14 openHABianDevice npm[6646]: at Object.load (/opt/zigbee2mqtt/node_modules/js-yaml/lib/loader.js:1714:19)
Jun 30 19:29:14 openHABianDevice npm[6646]: at Object.read (/opt/zigbee2mqtt/lib/util/yaml.ts:7:21)
Jun 30 19:29:14 openHABianDevice npm[6646]: at read (/opt/zigbee2mqtt/lib/util/settings.ts:310:20)
Jun 30 19:29:14 openHABianDevice npm[6646]: at getInternalSettings (/opt/zigbee2mqtt/lib/util/settings.ts:406:21)
Jun 30 19:29:14 openHABianDevice npm[6646]: (node:6692) UnhandledPromiseRejectionWarning: 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(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
Jun 30 19:29:14 openHABianDevice npm[6646]: (node:6692) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Jun 30 19:29:14 openHABianDevice systemd[1]: zigbee2mqtt.service: Succeeded.
Jun 30 19:29:14 openHABianDevice systemd[1]: zigbee2mqtt.service: Service RestartSec=100ms expired, scheduling restart.
Jun 30 19:29:14 openHABianDevice systemd[1]: zigbee2mqtt.service: Scheduled restart job, restart counter is at 160.
Jun 30 19:29:14 openHABianDevice systemd[1]: Stopped zigbee2mqtt.
Jun 30 19:29:14 openHABianDevice systemd[1]: Started zigbee2mqtt.
das läuft dann immer weiter so durch.
Frage mich warum immer wieder
Code: Alles auswählen
Jun 30 19:29:14 openHABianDevice systemd[1]: Stopped zigbee2mqtt.
Jun 30 19:29:14 openHABianDevice systemd[1]: Started zigbee2mqtt.
kommt.
Ich kann leider mit den "Warning Meldungen" nichts anfangen, dafür bin ich nicht fit genug in der Materie.
Finde nichts im "journal" das Frontend auf port:8089 gestartet wird
Muss unter auth_token: your-secret-token etwas geändert/eingetragen werden ?
Als "host" habe ich die IP von dem Raspi eingtragen
mein yaml sieht so aus:
Code: Alles auswählen
# Home Assistant integration (MQTT discovery)
homeassistant: false
# allow new devices to join
permit_join: true
# MQTT settings
mqtt:
# MQTT base topic for zigbee2mqtt MQTT messages
base_topic: zigbee2mqtt
# MQTT server URL
server: 'mqtt://localhost'
# MQTT server authentication, uncomment if required:
user: xxxxxxxxx
password: xxxxxx
# Serial settings
serial:
# Location of CC2531 USB sniffer
port: /dev/ttyACM0
frontend: true
# Optional, default 8080
port: 8089
# Optional, default 0.0.0.0
host: 192.168.123.141
# Optional, enables authentication, disabled by default
auth_token: your-secret-token
# Optional, url on which the frontend can be reached, currently only used for the Home Assistant device configuration page
url: 'https://zigbee2mqtt.myhouse.org'
Kannst Du mir weiter unter die Arme greifen ?
Danke