Open Middendorf opened 2 months ago
frontend: true # <- remove this line
frontend:
port: 8020
host: 0.0.0.0
auth_token: 123456
Hello Koenkk,
I have removed it. Unfortunately I still can't get to the web interface. The page is not accessible. Do you have any other ideas??
Unfortunately I can't get any further
Does z2m start now? If yes, than the frontend should be accessible on http://localhost:8020
Hi according to npm start it seems to start but I can't get to the web interface.
this is what the npm start looks like. `:/opt/zigbee2mqtt $ npm start
zigbee2mqtt@1.39.1 start node index.js
Starting Zigbee2MQTT without watchdog.
/opt/zigbee2mqtt/node_modules/js-yaml/lib/loader.js:183 return new YAMLException(message, mark); ^ YAMLException: unexpected end of the stream within a single quoted scalar (32:1)
29 | auth_token: 123456 30 | url: http://localhost 31 | 32 | ------^ at generateError (/opt/zigbee2mqtt/node_modules/js-yaml/lib/loader.js:183:10) at throwError (/opt/zigbee2mqtt/node_modules/js-yaml/lib/loader.js:187:9) at readSingleQuotedScalar (/opt/zigbee2mqtt/node_modules/js-yaml/lib/loader.js:624:3) at composeNode (/opt/zigbee2mqtt/node_modules/js-yaml/lib/loader.js:1446:13) at readBlockMapping (/opt/zigbee2mqtt/node_modules/js-yaml/lib/loader.js:1164:11) at composeNode (/opt/zigbee2mqtt/node_modules/js-yaml/lib/loader.js:1441:12) at readBlockMapping (/opt/zigbee2mqtt/node_modules/js-yaml/lib/loader.js:1164:11) at composeNode (/opt/zigbee2mqtt/node_modules/js-yaml/lib/loader.js:1441:12) at readDocument (/opt/zigbee2mqtt/node_modules/js-yaml/lib/loader.js:1625:3) at loadDocuments (/opt/zigbee2mqtt/node_modules/js-yaml/lib/loader.js:1688:5) `
I have already done sudo systemctl enable zigbee2mqtt.service but unfortunately it didn't work
pi@Zuhause:~
$ sudo journalctl -f -u zigbee2mqtt
-- Journal begins at Mon 2024-05-27 15:02:05 CEST. --
Aug 17 08:48:40 Zuhause systemd[1]: zigbee2mqtt.service: Main process exited, code=exited, status=1/FAILURE
Aug 17 08:48:40 Zuhause systemd[1]: zigbee2mqtt.service: Failed with result 'exit-code'.
Aug 17 08:48:40 Zuhause systemd[1]: zigbee2mqtt.service: Consumed 2.943s CPU time.
Aug 17 08:48:41 Zuhause systemd[1]: zigbee2mqtt.service: Scheduled restart job, restart counter is at 38.
Aug 17 08:48:41 Zuhause systemd[1]: Stopped zigbee2mqtt.
Aug 17 08:48:41 Zuhause systemd[1]: zigbee2mqtt.service: Consumed 2.943s CPU time.
Aug 17 08:48:41 Zuhause systemd[1]: Started zigbee2mqtt.
Aug 17 08:48:41 Zuhause npm[79179]: > zigbee2mqtt@1.39.1 start
Aug 17 08:48:41 Zuhause npm[79179]: > node index.js
Aug 17 08:48:42 Zuhause npm[79191]: Starting Zigbee2MQTT without watchdog.
Aug 17 08:48:43 Zuhause npm[79191]: /opt/zigbee2mqtt/node_modules/js-yaml/lib/loader.js:183
Aug 17 08:48:43 Zuhause npm[79191]: return new YAMLException(message, mark);
Aug 17 08:48:43 Zuhause npm[79191]: ^
Aug 17 08:48:43 Zuhause npm[79191]: YAMLException: unexpected end of the stream within a single quoted scalar (32:1)
Aug 17 08:48:43 Zuhause npm[79191]: 29 | auth_token: 123456
Aug 17 08:48:43 Zuhause npm[79191]: 30 | url: http://localhost
Aug 17 08:48:43 Zuhause npm[79191]: 31 |
Aug 17 08:48:43 Zuhause npm[79191]: 32 |
Aug 17 08:48:43 Zuhause npm[79191]: ------^
Aug 17 08:48:43 Zuhause npm[79191]: at generateError (/opt/zigbee2mqtt/node_modules/js-yaml/lib/loader.js:183:10)
Aug 17 08:48:43 Zuhause npm[79191]: at throwError (/opt/zigbee2mqtt/node_modules/js-yaml/lib/loader.js:187:9)
Aug 17 08:48:43 Zuhause npm[79191]: at readSingleQuotedScalar (/opt/zigbee2mqtt/node_modules/js-yaml/lib/loader.js:624:3)
Aug 17 08:48:43 Zuhause npm[79191]: at composeNode (/opt/zigbee2mqtt/node_modules/js-yaml/lib/loader.js:1446:13)
Aug 17 08:48:43 Zuhause npm[79191]: at readBlockMapping (/opt/zigbee2mqtt/node_modules/js-yaml/lib/loader.js:1164:11)
Aug 17 08:48:43 Zuhause npm[79191]: at composeNode (/opt/zigbee2mqtt/node_modules/js-yaml/lib/loader.js:1441:12)
Aug 17 08:48:43 Zuhause npm[79191]: at readBlockMapping (/opt/zigbee2mqtt/node_modules/js-yaml/lib/loader.js:1164:11)
Aug 17 08:48:43 Zuhause npm[79191]: at composeNode (/opt/zigbee2mqtt/node_modules/js-yaml/lib/loader.js:1441:12)
Aug 17 08:48:43 Zuhause npm[79191]: at readDocument (/opt/zigbee2mqtt/node_modules/js-yaml/lib/loader.js:1625:3)
Aug 17 08:48:43 Zuhause npm[79191]: at loadDocuments (/opt/zigbee2mqtt/node_modules/js-yaml/lib/loader.js:1688:5)
maybe that will help with expenses
Your yaml file is wrong, use e.g. https://www.yamllint.com/ to fix it (copy paste your configuration.yaml file in there)
What does the end look like? I looked at the file that I found on the web and there is no end listed there either.
Missing closing 'quote at line 31, column 1
home Assistant 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://mqtt server authentication, uncomment if required: user: Middendorf password: 123456 Serial settings serial: Location of the adapter (see first step of this guide) port: /dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_b8b49abd27a6ed11a280eba32981d5c7-if00-port0
advanced: network_key: GENERATE ikea_ota_use_test_url: true legacy_api: false log_level: debug
frontend: port: 8020 host: 0.0.0.0 auth_token: 123456 url: http://localhost
Hello everyone,
I uninstalled everything again and then did it again exactly as described here: https://www.zigbee2mqtt.io/guide/installation/01_linux.html#installing
I've got this far but I just can't get any further, I've already copied the error messages out individually and entered them into Google, but I'm already using channel 11, for example.
I have no idea.
I hope someone can tell me what I have to set where so that it finally does what it's supposed to.
This is what the error message looks like
[2024-08-17 23:10:03] info: z2m: Logging to console, file (filename: log.log) [2024-08-17 23:10:03] info: z2m: Starting Zigbee2MQTT version 1.39.1 (commit #9027c41f) [2024-08-17 23:1 0:03] info: z2m: Starting zigbee-herdsman (0.55.3) [2024-08-17 23:10:04] info: zh:zstack:znp: Opening SerialPort with {"path":"/dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_b8b49abd27a6ed11a280eba32981d5c7-if00-port0","baudRate":115200,"rtscts":false,"autoOpen":false} [2024-0 8-17 23:10:04] info: zh:zstack:znp: Serialport opened [2024-08-17 23:10:05] error: zh:adapter:zstack:manager: Configuration is not consistent with adapter state/backup! [2024-08-17 23:10:05] error: zh:adapter:zstack:manager: - PAN ID: configured=43003, adapter=6754 30ca5de3 [2024-08-17 23:10:05] error: zh:adapter:zstack:manager: - Network Key: configured=a68694af6fcb1496d1da3a07603e6c24, adapter=01030507090b0d0f00020406080a0c0d [2024-08-17 23:10:05] error: zh:adapter:zstack:manager: - Channel List: configured=11, adapter=11 [2024-08-17 23:10:05] error: zh:adapter:zstack:manager: Please update configuration to prevent further issues. [2024-08-17 23:10:05] error: zh:adapter:zstack:manager: If you wish to re-commission your network, please remove coordinator backup at /opt/zigbee2mqtt/data/coordinator_backup.json. [2024-08-17 23:10:05] error: zh:adapter:zstack:manager: Re-commissioning your network will require re-pairing of all devices! [2024-08-17 23:10:05] error: z2m: Error while starting zigbee-herdsman [2024-08-17 23:10:05] error: z2m: Failed to start zigbee [2024-08-17 23:10:05] error: z2m: Check https://www.zigbee2mqtt.io/guide/installation/ 20_zigbee2mqtt-fails-to-start.html for possible solutions [2024-08-17 23:10:05] error: z2m: Exiting... [2024-08-17 23:10:05] error: z2m: Error: startup failed - configuration-adapter mismatch - see logs above for more information at ZnpAdapterManager.determineStrategy (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/adapter/z-stack/adapter/manager.ts:244:35) at ZnpAdapterManager.start (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/adapter/z-stack/adapter/manager.ts:57:26) at Controller.start ( /opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/controller/controller.ts:127:29) at Zigbee.start (/opt/zigbee2mqtt/lib/zigbee.ts:63:27) at Controller.start (/opt/zigbee2mqtt/lib/controller.ts:139:27) at start (/opt/zigbee2mqtt/index.js:154:5)
[2024-08-17 23:10:05] error: zh:adapter:zstack:manager: If you wish to re-commission your network, please remove coordinator backup at /opt/zigbee2mqtt/data/coordinator_backup.json.
[2024-08-17 23:10:05] error: zh:adapter:zstack:manager: Re-commissioning your network will require re-pairing of all devices!
I would suggest to read carefully your log😉
If you wish to start a new installation, renamecoordinator_backup.json
like coordinator_backup.json_original
. Like this you have a backup of this file and Z2M will not read it.
Restart Z2M and you should be fine. Keep in mind, you will have to re-pair your devices.
What happened?
Hello folks,
until a few days ago I was still with Conbee, but they stopped the service.
Now I wanted to try out a Sonoff USB 3 stick.
ls
/dev/serial/by-id/` usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_b8b49abd27a6ed11a280eba32981d5c7-if00-port0it is also recognized.
sudo nano /opt/zigbee2mqtt/data/configuration.yaml
--- this is what the start of npm looks like----
cd /opt/zigbee2mqtt
pi@Zuhause:/opt/zigbee2mqtt $ npm start
Starting Zigbee2MQTT without watchdog.
/opt/zigbee2mqtt/node_modules/js-yaml/lib/loader.js:183 return new YAMLException(message, mark); ^ YAMLException: unexpected end of the stream within a single quoted scalar (32:1)
29 | host: 0.0.0.0 30 | auth_token: 123456 31 | url: http://localhost 32 | ------^ at generateError (/opt/zigbee2mqtt/node_modules/js-yaml/lib/loader.js:183:10) at throwError (/opt/zigbee2mqtt/node_modules/js-yaml/lib/loader.js:187:9) at readSingleQuotedScalar (/opt/zigbee2mqtt/node_modules/js-yaml/lib/loader.js:624:3) at composeNode (/opt/zigbee2mqtt/node_modules/js-yaml/lib/loader.js:1446:13) at readBlockMapping (/opt/zigbee2mqtt/node_modules/js-yaml/lib/loader.js:1164:11) at composeNode (/opt/zigbee2mqtt/node_modules/js-yaml/lib/loader.js:1441:12) at readBlockMapping (/opt/zigbee2mqtt/node_modules/js-yaml/lib/loader.js:1164:11) at composeNode (/opt/zigbee2mqtt/node_modules/js-yaml/lib/loader.js:1441:12) at readDocument (/opt/zigbee2mqtt/node_modules/js-yaml/lib/loader.js:1625:3) at loadDocuments (/opt/zigbee2mqtt/node_modules/js-yaml/lib/loader.js:1688:5) pi@Zuhause:/opt/zigbee2mqtt $
I followed this page, but only from the point where they talk about setting up Zigbee2mqtt configuration https://nerdiy.de/de_de/howto-zigbee-installation-von-zigbee2mqtt-auf-dem-raspberry-pi/
Have I forgotten something or made a mistake?? Is there software on the stick?? Or do you have to flash it when you buy it?
I'm a beginner when it comes to this, if I have to flash it it's enough for me to know this, then I'll google it.
I would like to have the web interface, because I can certainly handle something like that better than with codes. I use Fhem as a home assistant on a Raspberry pi4
What did you expect to happen?
No response
How to reproduce it (minimal and precise)
No response
Zigbee2MQTT version
1.22.1
Adapter firmware version
.
Adapter
sonoff zigbee 3.0 usb dongle plus
Setup
Fhem, Raspberry Pi4
Debug log
No response