Thanks for the guide. I was having issue when trying to run "npm start" If anyone else runs into issue with the zigbee2mqtt service failing to start, try what I attempted. I was getting this Error: Resource temporarily unavailable Cannot lock port In looking at the official site support under installation page it was suggesting to find out what program is locking/using the adapter. This gave me no information. Turns out somehow zigbee2mqtt service had been running prematurely, however, there was no front end showing. The fix for me, although took quite some time, was simple. Kill both services running "mosquitto.service" and " zigbee2mqtt.service" Next start up again mosquitto.service itself by using systemctl start service command. Do not start up the zigbee service. Finally, try re-running npm start command. Hope this helps someone.
Hello Eddie! Just wanna say a BIG thank you for that how to video detailed enough for a LINUX newbie like me, I am a network engineer and IT Director for a big international company and I decided to go into home automation and it is not an easy task when you go mix and match but you help me so much! Not like other guy’s doing HomeKit channel your not pushing to buy stuff and your solution make everyone save money so that is a great thing!! Thank you again and again!! Your awesome!!!!
You're very welcome! And welcome to the DIY community ... Dont forget to subscribe ... I have a lot of new videos on how I used homebridge for my newly built home as well as document my journey to Hoem Assistant as well. 😇
Eddie, it is impossible for me to thank you enough for the exceptional videos you produce. The time, research, and explanation in this video is truly next level. I know what you are thinking, “send me some money bud”. I will as soon as my finances are in an appropriate place. I have never donated to a creator and many are worthy but you are truly next level. Please keep producing! You are the man! 🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉
thank you so much, this really boggled me reading online but this walkthrough and your quick links were extremely helpful - really grateful you posted this. great job
Thanks for your very helpful video - hopefully a tip that might save others some time, it's taken me several hours to work this one out. I'm using a Sonoff ZBDongle-e. In the config under serial: the following needed to be added adapter: ember
Thank you very much for the great instructions. Everything worked so far, but I have the problem that zigbee2mqtt doesn't stay on. Shortly after I started the service, the devices can no longer be controlled and the dongle is no longer accessible via the browser. What can I do?
Hey Patrick ... Please make sure you also want to start the service automatically. There is one more step to complete the deployment - please follow the guide here www.zigbee2mqtt.io/guide/installation/01_linux.html#optional-running-as-a-daemon-with-systemctl
Hi Eddie, thanks a lot for this amazing tutorial. Do you run the Homebridge Image installed on the Raspberry pi or do you you raspbian image (bullseye or bookworm) on the raspberry pi and then install the homebridge on top of that? Cheers a lot and thanks for you support!
What I have done is used the default Homebridge image which is 64bit and is bookworm, If you are looking to setup containers or use the pi for other applications - then its 64bit Bookworm
Great video! For those who stuck at "ls -l /dev/serial/by-id", use "ls -l /dev/serial/by-path" instead. For those who stuck at "Error while starting zigbee-herdsman", change the channel from 11 to 15. That's how I fixed the problems.
@@alexwrightmusic you can do it only via the Z2M UI by going to Settings > Advanced. Now once you update this value - you will need to repair all your zigbee devices. Do this if its really necessary
@@eddiedsuza Hey Eddie, sorry for my ignorance but how do i acces Z2M UI ? I have this error while runing - npm start - and i can seem to fix it. Thanks for your video mate !
Hi Eddie, I am trying to make the steps as the tutorial shows, however I am stuch at contacting the Raspberry pi 4 as it say permission denied (publickey, password). I am not sure if this problem is because I already have installed Hoobs on the raspberry pi 4 on a flashed micro SD card or it is a different problem. Hoobs works well, connection is stable... Any advice would be appreciated
Great video !! The only difference for me is that I don't use a Rpi, but a ThinClient running Docker on Ubuntu. I'm growing into working with Docker (+ Portainer), so I'm not completely sure from which point to step into this video. Should I also follow the MQTT-part or should I step in at the Homebridge-part. Homebridge is installed and running in Docker already.
Well, this at least got me off on down the road in the right direction. I don't know why all my additionally pointers keep disappearing from here. Maybe someone else got my links and notes and can make them stick. Good luck! And thanks d'souza for the pointers! AT LAST--all my various mismatched brands actually WORK! Now, on to linking it all to HomeKit. :-)
Woot! Thanks to you both I finally got all my mismatched iot junk working in AppleHome and siri! Now when it’s beer o’clock I can fire up the bar lights, pinball machines, music and disco ball with a single command, and focus of mixing awesome cocktails. 🍸 🍹 🍻
@@CemSolak-eh9kd appreciate the feedback. I strongly recommend to not access the UI remotely as it would be available to World Wide Web. Always access it when on your network. Lastly - the main goal is that the device is online and accessible in the Apple home app
@@eddiedsuza Thank you bro. I know it is not ideal but when I was my summer home last mont some devices stuck on on homekit even though I made them manually offline through switches. The only reason I need such a thing is to fix these kind of occurrences. Anyway as always great help. Cheers and many thanks.
Hi Eddie! Your videos are amazing. I've learned a lot from you. I have a question, is it possible to run this in docker? Since my homebridge service is running via docker on a raspberry pi. Thanks and keep up the good work!
Thanks for this amazing video, when I prompt sudo npm start it fails after half a minute saying error while starting zigbee-herdsman. The dongle is out of the box so did not check for updating the firmware of the stick. Used a usb 2.0 connection but not with an extension cable ( is in order) any thoughts?
Hi Eddie ! Do you have any recommandations for make clean install ? I followed your tutorial, but i also have a herdsman error. I re tried the z2m part but I have another errors… so if you have a tips to delete all, I will re try correctly. Thanks !🙂
For herdsman error - you'll need to read the logs and most cases it can be fixed. If you can't then download a backup of homebridge > refresh the microSD card and do a clean Homebridge install, restore from backup and try the Z2M install
hey, my raspberry fails to start zigbee2mqtt. "Error while starting zigbee-herdsman". Im using the son off dongle-e version and added "adapter: ezsp" in the configuration.yaml file. Still can't get it working unfortunately
This error to start means alot and this link can provide a possible answer - however i'd go back and check the configuration.yaml one more time (line by line) www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html
hmm, I put my Sonoff antenna on Homeassistant back then, and somewhere I flashed it (to make it work with Matter too). Unfortunately I don't remember the link where it is described how and with which image I can get the original image back on. I think maybe this is the reason i got connection problems now.
Hi Eddie! Your tutorial is very nice and cool. It answered my question about running everything needed for Zigbee on the same Pi where Homebridge is running. In my case, I already have Homebridge running and want to add the Zigbee Dongle, etc. I have a question: Why did you change "localhost" to the "IP address" in the Homebridge plugin settings? Since it's only one Raspberry Pi, I thought you would leave "localhost" as the default setting.
A question about the installation of Z2M, in the video at (6:55) you saying that we need to install the "dev repository". But in the script you linked here written: git checkout master (instead of dev). Just that I'm tried to install it (twice) and I keep getting errors. maybe this is the reason?
Hey Eddie, great videos and video was a tremendous help. I have everything up and running but have an issue with front end. I can run npm start from terminal and access front end using web address 8082 but once i exit the terminal, or it times out, i cant access front page web any longer. I get cant find page. I have add npm start to etc/systemd/system/Zigbee MQTT.service but not sure its working. How can i tell? Thanks in advance
Hello Jack ,,, please check if Z2M is running as a daemon as welll... follow these steps www.zigbee2mqtt.io/guide/installation/01_linux.html#optional-running-as-a-daemon-with-systemctl
Dear Eddie, you're awesome! you help me so much with your videos! thank you!! My question is probably really silly because I'm kind of new to this. Trying to connect with my Mac to my Homebridge as you do here. But can't and getting an error: Permission denied, please try again. I have the correct ip and password for sure as I connect to it through my Safari.
Hy Eddie,if i have ARMv6 node.js is not available.What can i go because npm command not work?Actualy after i reinstall node.js ,node and npm give me errors (one of them is Failed at the zigbee2mqtt@1.30.1 start script 'node index.js'.) Thanks for video and explanation!
Hi there can you please execute the below commands sudo curl -fsSL deb.nodesource.com/setup_18.x | sudo -E bash - sudo apt-get install -y nodejs git make g++ gcc node --version npm --version Lastly follow this guide as well www.zigbee2mqtt.io/guide/installation/01_linux.html#determine-location-of-the-adapter-and-checking-user-permissions
@@eddiedsuza I try for the firs time with a Pi0w and after many atempts node was upgraded at 18.x, but npm give me erorrs so i put my usb dongle on another raspberry pi4 with raspbian and everything almost works because when i give the command npm start, surprize...another erors.Now i start with a new fresh raspbian 64 and i hope this time have more luck ! I try with raspbian because i want to use that rapspberry pi with pihole,vpn,webmin,Gpio relay,Ina219 sensor and desktop for vnc when (if) i need it. On the other hands i need to pair my Sonoff usb dongle CC2531 with a pi0w (i make a temperature and humidity with DTH22) and an Sonoff SNZB-02.For my other sonoff relay and sensors i found plugin in HomeBrige.I think is posible with a "little" work :) When i try with Home Asisstant zigbee dongle and SNZP-02 works fine. Thanks for everything!
Hi Eddie and community, when I run npm start the zigbee2mqtt always gives error i have be told that could be because the dongle needs a firmware update but I having difficulty with that and to really discover what is the problem, please Eddie do a new video how to add the dongle to the Homebridge with the firmware update 😁 btw love the videos and have learning so much, the have been my most help to make the perfect smart home 😀
Hey Carlos thanks for the compliment and please can you paste the error in the comments section to provide a north star to solve it. Infact yesterday i was able to update to the latest cordinator firmware by following this guide - www.zigbee2mqtt.io/guide/adapters/flashing/flashing_via_cc2538-bsl.html?fbclid=IwAR30bhQSMBWQ82gyIR3tewr0VUktJWETEUjWFt_pSznuYe8yj0veOWEJyCw
@@eddiedsuza thanks for the help, with the firmware update and the new video you just post i was able to make it work, love you channel keep doing a great work of creating this community of geeks 😂
Hi Eddie, thanks for your time with the tutorial. I have followed along and been able to set everything up via terminal correctly, however when it comes time to log into the front end I am unable to do so via either the HOOBS app (Mac) or any web browser. I can still log into the device via terminal, but not into the front end. I flashed the microSD card and started from the beginning, thinking I did something incorrectly, but it has done the same thing the 2nd time around and I am stuck. Are you able to offer any suggestions where I've gone wrong and how to correct? Cheers!
@@eddiedsuza Hi Eddie, thanks for the super speedy response! I can confirm I have double checked the ip address using a network scanner, and I have this right, however I am unsure if I should be adjusting the port for both the MQQT server URL and the Frontend. I currently have the Server URL set to 1883 as you do in your tutorial and the Frontend set to the default of 8080.
Hi Eddie, a small question but do all Zigbee2MQTT devices work with this Sonoff dongle? For example the Aqara P1? (Without Aqara bridge) Is it also possible to add normal WiFi Tuya bulbs to this system, or is it best to keep using Smart Life for those products?
Hey Brent .... Please refer to this link to know which device types are compatible with Z2M zigbee.blakadder.com/ As the dongle is already compatible with Z2M - you will not have any issues to add zigbee devices to Z2M - just make sure you refer to the above link to know which devices. And if all the devices are supported by Z2M - you dont necessarily need the Tuya zigbee hub or the app 😇
Hey man! I’m planning to make the transition from smartthings to HomeKit but all tutorials that I see all about zigbee…but what about ZWave? Are you planning to make some video about ZWave? Thanks in advance!
Hey Carlos .... the only way to get Zwave into Homekit is via the Aeotec stick or the ST hub.... I dont have many Zwave devices as there is a limited availability in the region i Live.... Thats why opted for Zigbee
I've had a clean install. Followed every step by the minute :) But i had an error... What to do with the "error starting zigbee-herdsman"? Cant find anything to fix it.
Hi Piotr - Yes it works with Tuya Zigbee 3.0 devices. Hers a zigbee device database zigbee.blakadder.com for all the devices that work with Zigbee2MQTT - if its there, it should work with the dongle as well.
Thank you for showing the way! Currently have Homebridge installed on my Windows desktop for trying out. Looking to get a Raspberry Pi 4, setup Homebridge, MQTT and the Zigbee2mqtt plugin with a Consbee II. Does it sounds correct?
heya Eddie, thank you for making this video. I've been trying to follow your video for a few days now, and no matter what I do, when I try to install z2mqtt I get an error message saying "bash: line 15: npm: command not found" I tried updating npm & node, tried reinstalling npm & node, starting from scratch several times but whatever I do I can't seem to get it to work. seems like npm is missing from the tutorial? any suggestions that I might try? thank you.
I had the same problem and ended up copying everything from the first line in the code all the way to line 14 and putting that in the terminal. Once I did that, I ran the "npm ci" in the terminal that appears to be causing the issue and that seemed to run fine, then I copied the rest over. Seems to be working for me now.
Juster entered the HomeKit world. Great videos you have!. Now trying homebridge with the zonoff usb dongle. I get as far as "npm start", and this fails. I have to add "sudo npm start" for things to work, but then also the services is not autostarting at reboot. Any ideas?
Hmm... on a reimaged HB I did not get this. Now I have adapter issues. Realised that I have the E version, which is problematic to get working. On my 3rd image now, and have tried all tips I could find (most from HAS forum), but nothing helps. The P version is problematic to find. Project on hold until I find new ideas to try.
Hey Lars ... If you check aliexpress - you can find the *P* version easily and these are the current supported adapters www.zigbee2mqtt.io/guide/adapters/#recommended
Sonoff = Budget Friendly & Stable Performance + Supported officially by Zigbee2mqtt / Conbee = 3x price & Stable Performance + NOT Supported officially by Zigbee2mqtt Both devices function well. However - the Zemismart can work both as a Coordinator (default) & as a Router (to amplify your network) - you get dual functionality.
Hello Eddie, Thanks for your hard work, you are really my hero, i have a synology nas DS220+ ,is it possible to install Homebridge & Zigbee2MQTT and plug this sonoff dongle to the usb and it still work? Thanks.
I’m getting constantly this error on homebridge - zigbee2mqtt is offline - any idea why? I’m using a rpi 4 and a Sonoff Zigbee dongle plus. Even though I get the error, the devices still work on HomeKit. Don’t find any answer around. Thanks in advance 🙏
can you access the Z2M webui .... If not (assuming the service is still working) - check the Pi 4 IP address. Reserve that in the router settings and update Z2M configuration yaml and restart the pi 4
thanks for a great tutorial! I however do get an error called "Error: network commissioning timed out" you have any idea how I should go about? Best regards
Please check out this issue to resolve github.com/Koenkk/zigbee2mqtt/issues/10209 and it's something to do with Pan ID. You can add the below to your configuration yaml to fix the issue and paste it under advance pan_id: GENERATE
Hello Eddie! I am stuck on npm start. I hawe tryd a lot settings on comf.yaml, but end of the day i am getting still an error. Zigbee2mqtt link also not help me further. :(
hey Eddie thanks for the tutorial i had successfully setup everything and it works great. Except one thing, when my zigbee smart bulb went out of power, both homebridge & home app doesnt label it as 'no response', i can still toggle on/off thou it doesnt do anything. Is there anyway to trigger the 'no response' in home app so i know which device is offline with this setup? thanks in advance
@@eddiedsuza checked with the homekit-z2m dev, currently there's no way of knowing the device status when its out of electricity. It wont trigger 'no response' status when its offline.
Hi Eddie, I ran across some of your videos about zigbee installation on Raspi and they were awesome. Thanks for spending time to create those educational videos. Anyway, I just came back from a large convention in Vegas with my demo having a Pi 4 acting as a Wifi Router sending REST API to control IoT race cars with Raspi 3B+ running ASGI webservices. Everything worked fine for me except the Wifi network kept dropping a couple times a day probably due to massive number of wifi channels and devices at the show. So now I am looking into replacing Wifi network with Zigbee network for reliability and less interference . I can understand the part of configure my Raspi 4B Wifi Router a zigbee bridge using one of the Zigbee USB dongle running zigbee2mqtt/mosquitto. Can I then use the same USB dongles and plug them in to USB port on my IoT race cars with Raspi 3B to make them 'zipbee devices' so I can communicate with them from my zipbee bridge? Is there a better way? I don't think I can use the zipbee module because the car motor controller board (Freenove 4WD race cars) is plugin to the same pins on the IO ports in the Raspi 3B+. Hope I make my question clear. Thanks again for your expertise and help. Looking forward to hearing from you.
Hi David ... This was a curve ball and had to investigate on whats BEST - well zigbee2mqtt will be using the 2.4Ghz bandwidth with a default channel 11. Now keep them connected to a car plus reduce battery consumption - i came across this pen drive like device that connects to Z2M plus works as a repeater meaning its emitting a powerful zigbee signal - you may want to try it our s.click.aliexpress.com/e/_DmmSTkP I am not sure if i assisted :P
Hello Eddie, thanks for the video! Based on this, I also tried to install it, but I ran into some problems. In principle, I got to the point where mosquitto was installed, but I can't do this on explorer because I get "Disconnect" all the time. I didn't deal with this because I read that it happens to other people as well. Then I tried to query the port of the dongle, but no matter which one I plug in, I always get the same: ttyACM0 I finally entered this in the config, but when I run the npm start command, it says "MQTT error: connect ECONNREFUSED 192.168..." And I can't go any further from here. Thank you.
i am using the cone 2 stick with this and I am not abled to get it running. I did everything correct and it still won't work. is it because of the congee 2 instead of the son off stick?
Hi Eddie, I am stuck and am wondering if you could help? I am at the Command List an try to run "npm start". Unfortunately I'm getting the error "Zigbee2MQTT:error 2022-12-18 20:48:23: Configuration is not consistent with adapter state/backup!". I have checked the IP, Port and Adapter Setting but everything seems to be fine. Do you have any idea? Thank you!
Good morning, I follow your teachings. I have a problem when "ls -l /dev/ttyUSB0" I get "ls: cannot access '/dev/ttyUSB0': No such file or directory". I have " /ttyACM0". Can you tell me the way to have "ttyUSB0" on the raspberry pi 4 model B? thank you
Hi Eddie, are there any significant differences between ZBDongle-P and ZBDongle-E. Especially for "Building The Ultimate HomeKit Hub For Your DIY Smart Home" 🙂
Hey Artur - There are hardware / chip improvements with the newer version. Would you see any real world difference - may be yes for those devices that are installed further away from the dongle. Please scroll to the end of the page to know the hardware differences sonoff.tech/product/diy-smart-switch/sonoff-zigbee-3-0-usb-dongle-plus-e/ However for regular use - you use the -p with no issues. Cheers
hi did excatly how you said in the video but when i try to do npm start i get this error Error: Error while opening serialport 'Error: Error Resource temporarily unavailable Cannot lock port'. I checked the possible solutions on the website and it tells me to run this This error occurs when another program is already using (and thus locking) the adapter. You can find out which via the following command: ls -l /proc/[0-9]/fd/ |grep /dev/ttyACM0 (replace /dev/ttyACM0 with your adapter port. When i run this like they are saying i get nothing what can i do please help
Hello There - please make sure you have executed this command (again) sudo chown -R pi:pi /opt/zigbee2mqtt And reboot your raspberry PI by typing sudo reboot Let me know if it worked
@@eddiedsuza i'm having this same exact issue and tried granting permissions again and rebooting as you instructed but i still get the same error as HyperZ
Hi Eddie, I followed your steps, so far so good. But at the point at 10:22 npm start, I get the error -bash: npm: command not found. I think the download and installation of npm is missing in your scripts. Can you explain starting from the scratch on a fresh installed raspberry OS?
I'm running into this same issue too and sorry for not fully understanding. Do you recommend I reflash my SD card with Homebridge and start the whole thing over?
thanks Eddie its been running for 6 months great , iv got some new lamps that are not supported in this version of MQTT , iv been struggling to find away to update it with the dev package . any help would be fab
Good morning When checking ttyACM0 instead of usb0 I can't get on the frontend web page and unfortunately it doesn't go up in homebridge Can you help me THANKS
Hi Eddie. I am stuck and am wondering if you could help. Certainly willing to slide you a donation/support for your time. I have a RPi4 with Homebridge. I am new to this specific type of IT but am generally IT-capable. I have the Pi and Homebridge up and running and connected to my security system no problem. Now I am working on getting the Zigbee dongle working. I have installed Mosquitto and confirmed it is working properly. I have also run some commands to confirm that the RPi is seeing the dongle. But from there I am lost and I do not know how to get unstuck. Specifically I am stuck on installing Zigbee2MQTT and creating the related config file. Thank you.
hey eddie, i have 60 zigbee devices in my home and i have tested this sonoff usb 3.0 plus but the lqi is verry low compared to conbee2 some of devices are under 50 lqi and with conbee2 must of them are on 200-255 lqi do you know if is frimware problem or this is the power of sonoff usb 3.0?
Hey there - you´ll definetly need to upgrade the firmware and the guide can be found here. I dont have a PC to do the process but there are videos on how it can be done. Basically with the updated firmware, the network output gain goes from 5db to 20 db. sonoff.tech/wp-content/uploads/2022/01/SONOFF-Zigbee-3.0-USB-dongle-plus-firmware-flashing-.pdf
@@eddiedsuza i have updated to the last frimware but no changes... some of devices do not connect to the network and must of them are in low LQI ... so change back to conbee2 :D
@@eddiedsuza All steps up to the yaml file work. The stick sonoff stick is recognized. When I load the yaml file it looks completely different than yours. If I change the IP address there and then confirm it, I get lots of debug and error messages. so the yaml config would no longer be correct. thanks for helping!
Yes you can do it on a windows machine following this guide here. However i havent attempted this yet - www.zigbee2mqtt.io/guide/installation/05_windows.html#updating-zigbee2mqtt
Does anyone have any idea why my homebridge won't link up? I'm getting this error in the web page linking to my homebridge program running on the same RPi as all the zigbee and mtqq stuff. [homebridge-z2m] Incorrect configuration: Entry for device is not correct: {"exclude":false,"converters":{"switch":{"type":"switch"},"occupancy":{"type":"occupancy"}}} [homebridge-z2m] INVALID CONFIGURATION FOR PLUGIN: homebridge-z2m This plugin will NOT WORK until this problem is resolved.
@@eddiedsuza thanks. It turned out to be some kruft in the config file. I removed all references matching those items in the error file and it fired up and linked to HomeKit... unfortunately, it doesn't STAY connected for long. I think this has to do with caching of data. I'll have to go re-find the document that discusses this, but it's something like cache_data: false iirc. This is proving to be quite a slog! Typical of ANYTHING Apple when not 100% Apple. sigh I guess that's the price we pay for not having all of our data sold to the highest bidder by unscrupulous giga giants of corporate greed.
Eddie, great tutorial but I think what was missing is initial build: pi@raspberrypi:/opt/zigbee2mqtt $ sudo npm run build > zigbee2mqtt@1.28.4 build > tsc && node index.js writehash Before that after starting the service CPU has skyrocket to 50%. Now it's several percents!
Thanks, will do. I have managed to install Zigbee2MQTT according to your step on Raspberry Pi Zero W 2 with only 512 MB RAM! The trick was to permanently increase swap memory from 100MB to 1024MB. Before that ‘top’ and ‘free’ commands were showing 0 swap memory available during execution of ‘npm ci’ command and device has become almost unresponsive.
Hi Eddie, I tried it to install EXACTLY following your tutorial, that is really good. But whatever I do, I end up in lots of errors. Look here: Zigbee2MQTT:info 2023-01-23 19:02:09: Starting Zigbee2MQTT version 1.29.2 (commit #bb3e8f6d) Zigbee2MQTT:info 2023-01-23 19:02:09: Starting zigbee-herdsman (0.14.83-hotfix.0) Zigbee2MQTT:debug 2023-01-23 19:02:09: Using zigbee-herdsman with settings: '{"adapter":{"concurrent":null,"delay":null,"disableLED":false},"backupPath":"/opt/zigbee2mqtt/data/coordinator_backup.json","databaseBackupPath":"/opt/zigbee2mqtt/data/database.db.backup","databasePath":"/opt/zigbee2mqtt/data/database.db","network":{"channelList":[11],"extendedPanID":[221,221,221,221,221,221,221,221],"networkKey":"HIDDEN","panID":6754},"serialPort":{"path":"/dev/ttyUSB0"}}' Zigbee2MQTT:error 2023-01-23 19:02:10: Error while starting zigbee-herdsman Zigbee2MQTT:error 2023-01-23 19:02:10: Failed to start zigbee Zigbee2MQTT:error 2023-01-23 19:02:10: Check www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions Zigbee2MQTT:error 2023-01-23 19:02:10: Exiting... Zigbee2MQTT:error 2023-01-23 19:02:11: Error: Error while opening serialport 'Error: Error: No such file or directory, cannot open /dev/ttyUSB0' at SerialPort. (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/adapter/z-stack/znp/znp.ts:146:28) at SerialPort._error (/opt/zigbee2mqtt/node_modules/@serialport/stream/dist/index.js:76:22) at /opt/zigbee2mqtt/node_modules/@serialport/stream/dist/index.js:112:18 I have no idea what to do... When I do the command: pi@homebridge:~ $ ls -l /dev/serial/by-id then this is the result: total 0 lrwxrwxrwx 1 root root 13 Jan 23 19:04 usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20221202100055-if00 -> ../../ttyACM0 Can you help me please? I don't get it running and have no clue... Thanks a lot.
@@eddiedsuza unfortunately the Dongle-E seems not to work: Zigbee2MQTT:debug 2023-02-02 20:31:50: Using zigbee-herdsman with settings: '{"a dapter":{"concurrent":null,"delay":null,"disableLED":false},"backupPath":"/opt/z igbee2mqtt/data/coordinator_backup.json","databaseBackupPath":"/opt/zigbee2mqtt/ data/database.db.backup","databasePath":"/opt/zigbee2mqtt/data/database.db","net work":{"channelList":[11],"extendedPanID":[221,221,221,221,221,221,221,221],"net workKey":"HIDDEN","panID":6754},"serialPort":{"path":"/dev/ttyACM0"}}' Zigbee2MQTT:error 2023-02-02 20:32:11: Error while starting zigbee-herdsman Zigbee2MQTT:error 2023-02-02 20:32:11: Failed to start zigbee Zigbee2MQTT:error 2023-02-02 20:32:11: Check www.zigbee2mqtt.io/guide/in stallation/20_zigbee2mqtt-fails-to-start.html for possible solutions Zigbee2MQTT:error 2023-02-02 20:32:11: Exiting... Zigbee2MQTT:error 2023-02-02 20:32:12: Error: Failed to connect to the adapter (
Hi Eddie, you're a great help but I have a problem after updating the configuration.yaml file. I've run npm start and this is the error: pi@homebridge:/opt/zigbee2mqtt $ sudo npm start > zigbee2mqtt@1.40.1 start > node index.js node:internal/modules/package_json_reader:92 throw error; ^ SyntaxError: Error parsing /opt/zigbee2mqtt/node_modules/semver/package.json: Unexpected token in JSON at position 0 at parse () at read (node:internal/modules/package_json_reader:79:16) at readPackage (node:internal/modules/package_json_reader:140:10) at resolveExports (node:internal/modules/cjs/loader:586:15) at Module._findPath (node:internal/modules/cjs/loader:664:31) at Module._resolveFilename (node:internal/modules/cjs/loader:1126:27) at Module._load (node:internal/modules/cjs/loader:981:27) at Module.require (node:internal/modules/cjs/loader:1231:19) at require (node:internal/modules/helpers:177:18) at Object. (/opt/zigbee2mqtt/index.js:1:16) { path: '/opt/zigbee2mqtt/node_modules/semver/package.json' } Node.js v18.20.4 Would you be kind enough to assist on my installation?
Hey Darren .. seems like a database issue - can you please take a look at these issues for possible solutions ... github.com/Koenkk/zigbee2mqtt/issues/2891 or github.com/Koenkk/zigbee2mqtt/issues/3680
Hi Eddie, thanks for this outstanding video on Z2M. However, I ran into problem when adding the USB Dongle in SSH. Rebooted more than 10 times. Need your help on this what to do next. Would appreciateyour help on this. Thanks. Below was progress. - [x] i have successfully installed MQTT in my Homebridge Step 1 Shut down RPi4 - [x] Step 2 Connect Sonoff Dongle - [x] Step 3 Install scrip via SSH as below:- - [x] Copy and paste this: "" curl -sk paste sudo | bash "" - [x] Step 4 Z2M already installed: RPi4 will reboot Step 5 See Screenshot below for next 9 steps (5.1 to 5.9) - [ ] Step 5.1: Change directory: cd /opt/zigbee2mqtt/ - [ ] Step 5.2: Grant Permissions B: sudo chown -R pi:pi /opt/zigbee2mqtt - [ ] Step 5.3: Device Location: ls -l /dev/serial/by-id - [ ] Step 5.4: Update Configuration YAML: sudo nano /opt/zigbee2mqtt/data/configuration.yaml - [ ] Step 5.5: Run NPM Start: npm start - [ ] Step 5.6: Update Configuration YAML With Pan: sudonano/opt/zigbee2mqtt/data/configuration.yaml - [ ] Step 5.7: Run NPM Start: npm start - [ ] Step 5.8: Run Automatically on Boot Up: sudonano/etc/systemd/system/zigbee2mqtt.service - [ ] Step 5.9: Restart Server: sudo reboot
Hi Eddie, Thanks for this tutorial. So far I can manage most of it. Only when I am follow some steps in the scripts, i get the following error: chown: invalid user: ‘pi:pi’. This is when I am hashed in my Raspberry Pi (I run hoobs) and then try to run: sudo chown -R pi:pi /opt/zigbee2mqtt I really can't find anything about, please help me! I will be eternally grateful! Sam
Hey Sheuves - Since you are using HOOBS - use this command sudo chown -R hoobs:hoobs /opt/zigbee2mqtt This is because the root privileges will be provided to hoobs. Please try and let me know if it works
@@eddiedsuza Amazing! Thanks a lot! Indeed I did some more research about the chown command, and that helped a lot! I also have another question which is related to Hoobs/Homebridge, but not related to the subject of this video. Is there a way I can send you a message and you might help me out? Thanks in advance!
Hi Eddie, Thanks for great video. Everything is great but whenever I try 'npm start' I got these error. > zigbee2mqtt@1.34.0 start > node index.js Building Zigbee2MQTT... (initial build), failed Error: Command failed: npm run build Error: ENOENT: no such file or directory, open '/opt/zigbee2mqtt/dist/.hash' at Object.openSync (node:fs:603:3) at Object.writeFileSync (node:fs:2324:35) at writeHash (/opt/zigbee2mqtt/index.js:38:8) at processTicksAndRejections (node:internal/process/task_queues:95:5) at ChildProcess.exithandler (node:child_process:419:12) at ChildProcess.emit (node:events:514:28) at maybeClose (node:internal/child_process:1091:16) at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5) Any ideas? Thank you.
please check if node was installed by using this command *node -v* if there is no output then you will need to install node by following the guide here www.zigbee2mqtt.io/guide/installation/01_linux.html#installing
@@eddiedsuza didn't you hard code the username too? But then later you mention that it could be "pi" OR "noobs" in the config file. Personally, I created a user JUST for zigbee, but then I had to make some fixes since that user doesn't have sudo powers, as any IOT thing should be! ;-p Thanks again for all the good pointers. I think I finally got it to work! :-D
Hi Eddie, I'm having the same issue as @user-dz4mr7vx2h. I can't find the id number of the Sonoff Zigbee 3.0 USB Dongle Plus: pi@homebridge:/opt/zigbee2mqtt $ ls -l /dev/serial/by-id ls: cannot access '/dev/serial/by-id': No such file or directory Please, can you help?
Thanks for the guide. I was having issue when trying to run "npm start" If anyone else runs into issue with the zigbee2mqtt service failing to start, try what I attempted. I was getting this Error: Resource temporarily unavailable Cannot lock port
In looking at the official site support under installation page it was suggesting to find out what program is locking/using the adapter. This gave me no information. Turns out somehow zigbee2mqtt service had been running prematurely, however, there was no front end showing. The fix for me, although took quite some time, was simple. Kill both services running "mosquitto.service" and " zigbee2mqtt.service"
Next start up again mosquitto.service itself by using systemctl start service command. Do not start up the zigbee service. Finally, try re-running npm start command.
Hope this helps someone.
Thanks for the tip. Your comment has been pinned
@decepti0n thank you very much, struggling for many hours with the firmware version with no results, until i saw your comment. Big up for you
👍👍👍👍👍
@@mrxox33 glad it could help someone, cheers!
Hello Eddie! Just wanna say a BIG thank you for that how to video detailed enough for a LINUX newbie like me, I am a network engineer and IT Director for a big international company and I decided to go into home automation and it is not an easy task when you go mix and match but you help me so much! Not like other guy’s doing HomeKit channel your not pushing to buy stuff and your solution make everyone save money so that is a great thing!! Thank you again and again!! Your awesome!!!!
You're very welcome! And welcome to the DIY community ... Dont forget to subscribe ... I have a lot of new videos on how I used homebridge for my newly built home as well as document my journey to Hoem Assistant as well. 😇
Eddie, it is impossible for me to thank you enough for the exceptional videos you produce. The time, research, and explanation in this video is truly next level. I know what you are thinking, “send me some money bud”. I will as soon as my finances are in an appropriate place. I have never donated to a creator and many are worthy but you are truly next level. Please keep producing! You are the man! 🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉
Wow, thank you! And appreciate the awesome feedback. Positive Vibes to You .... Cheers
thank you so much, this really boggled me reading online but this walkthrough and your quick links were extremely helpful - really grateful you posted this. great job
Glad it was helpful! Cheers
Thanks for your very helpful video - hopefully a tip that might save others some time, it's taken me several hours to work this one out. I'm using a Sonoff ZBDongle-e. In the config under serial: the following needed to be added adapter: ember
Great tip! Cheers
Thank you very much for the great instructions. Everything worked so far, but I have the problem that zigbee2mqtt doesn't stay on. Shortly after I started the service, the devices can no longer be controlled and the dongle is no longer accessible via the browser. What can I do?
Hey Patrick ... Please make sure you also want to start the service automatically. There is one more step to complete the deployment - please follow the guide here www.zigbee2mqtt.io/guide/installation/01_linux.html#optional-running-as-a-daemon-with-systemctl
I love that he shows us how to install this on an existing raspberry pi, rather than insisting that we burn a whole new SD card, like most. Thanks!
Your welcome 🙏
Hi Eddie, thanks a lot for this amazing tutorial. Do you run the Homebridge Image installed on the Raspberry pi or do you you raspbian image (bullseye or bookworm) on the raspberry pi and then install the homebridge on top of that?
Cheers a lot and thanks for you support!
What I have done is used the default Homebridge image which is 64bit and is bookworm, If you are looking to setup containers or use the pi for other applications - then its 64bit Bookworm
Great video!
For those who stuck at "ls -l /dev/serial/by-id", use "ls -l /dev/serial/by-path" instead.
For those who stuck at "Error while starting zigbee-herdsman", change the channel from 11 to 15. That's how I fixed the problems.
Brilliant! How do you change the channel?
@@alexwrightmusic you can do it only via the Z2M UI by going to Settings > Advanced. Now once you update this value - you will need to repair all your zigbee devices. Do this if its really necessary
Thanks for the tip and you comment has been pinned
@@eddiedsuza no problem. Glad I could help.
@@eddiedsuza Hey Eddie, sorry for my ignorance but how do i acces Z2M UI ? I have this error while runing - npm start - and i can seem to fix it. Thanks for your video mate !
Hi Eddie, I am trying to make the steps as the tutorial shows, however I am stuch at contacting the Raspberry pi 4 as it say permission denied (publickey, password). I am not sure if this problem is because I already have installed Hoobs on the raspberry pi 4 on a flashed micro SD card or it is a different problem. Hoobs works well, connection is stable... Any advice would be appreciated
please use the command sudo
@@eddiedsuza Used it, nothing works in he end.
First make sure SSH is active
Great video !! The only difference for me is that I don't use a Rpi, but a ThinClient running Docker on Ubuntu. I'm growing into working with Docker (+ Portainer), so I'm not completely sure from which point to step into this video. Should I also follow the MQTT-part or should I step in at the Homebridge-part. Homebridge is installed and running in Docker already.
TO use the dongle - setup Z2M via docker and map the USB port it is at and add that to the configuration.yaml
Well, this at least got me off on down the road in the right direction. I don't know why all my additionally pointers keep disappearing from here. Maybe someone else got my links and notes and can make them stick. Good luck! And thanks d'souza for the pointers! AT LAST--all my various mismatched brands actually WORK! Now, on to linking it all to HomeKit. :-)
Glad it was helpful! Cheers
Woot! Thanks to you both I finally got all my mismatched iot junk working in AppleHome and siri! Now when it’s beer o’clock I can fire up the bar lights, pinball machines, music and disco ball with a single command, and focus of mixing awesome cocktails. 🍸 🍹 🍻
@@ckeilah Cheers 🍺
Eddie man you're great 🤘🤘🤘 this worked flawlessly :)) know all I need is to solve remote access to homebridge ui for me any suggesttions :)
@@CemSolak-eh9kd appreciate the feedback. I strongly recommend to not access the UI remotely as it would be available to World Wide Web. Always access it when on your network. Lastly - the main goal is that the device is online and accessible in the Apple home app
@@eddiedsuza Thank you bro. I know it is not ideal but when I was my summer home last mont some devices stuck on on homekit even though I made them manually offline through switches. The only reason I need such a thing is to fix these kind of occurrences. Anyway as always great help. Cheers and many thanks.
Hi Eddie!
Your videos are amazing. I've learned a lot from you.
I have a question, is it possible to run this in docker? Since my homebridge service is running via docker on a raspberry pi.
Thanks and keep up the good work!
Yes you can! You can view this video to setup via docker ... th-cam.com/video/kykvC2cGlNQ/w-d-xo.html
Thanks for this amazing video, when I prompt sudo npm start it fails after half a minute saying error while starting zigbee-herdsman. The dongle is out of the box so did not check for updating the firmware of the stick. Used a usb 2.0 connection but not with an extension cable ( is in order) any thoughts?
Try using a USB cable and restart the server using the command *sudo reboot*
Hi Eddie ! Do you have any recommandations for make clean install ? I followed your tutorial, but i also have a herdsman error. I re tried the z2m part but I have another errors… so if you have a tips to delete all, I will re try correctly. Thanks !🙂
For herdsman error - you'll need to read the logs and most cases it can be fixed. If you can't then download a backup of homebridge > refresh the microSD card and do a clean Homebridge install, restore from backup and try the Z2M install
Hi Eddie! Just wondering if I should be doing anything differently from the video if I'm running Homebridge on Mac instead of Raspberry Pi?
I have a video enabling Z2M using a MAC th-cam.com/video/22uUYXCu39I/w-d-xo.html
@@eddiedsuza It worked Eddie! Thank you so much!
hey, my raspberry fails to start zigbee2mqtt. "Error while starting zigbee-herdsman". Im using the son off dongle-e version and added "adapter: ezsp" in the configuration.yaml file. Still can't get it working unfortunately
This error to start means alot and this link can provide a possible answer - however i'd go back and check the configuration.yaml one more time (line by line) www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html
does this tutorial also work for Dongle E?
Yes
hmm, I put my Sonoff antenna on Homeassistant back then, and somewhere I flashed it (to make it work with Matter too). Unfortunately I don't remember the link where it is described how and with which image I can get the original image back on. I think maybe this is the reason i got connection problems now.
Sometimes (which works) restart the system and check out what’s the last know error to debug further
Hi Eddie, great work.
After installing z2m, the terminal tab in Hoobs is missing.
Do you know how to get it back?
Oh boy ! its a while i have used the HOOBS system. You will need to reach out to their support groups
Worked like a charm!
Awedome. Cheers
Hi Eddie! Your tutorial is very nice and cool. It answered my question about running everything needed for Zigbee on the same Pi where Homebridge is running. In my case, I already have Homebridge running and want to add the Zigbee Dongle, etc.
I have a question: Why did you change "localhost" to the "IP address" in the Homebridge plugin settings? Since it's only one Raspberry Pi, I thought you would leave "localhost" as the default setting.
Yes you could leave it as is. I just make it sure it knows where it resides on the network (its just me 😇)
A question about the installation of Z2M, in the video at (6:55) you saying that we need to install the "dev repository". But in the script you linked here written: git checkout master (instead of dev). Just that I'm tried to install it (twice) and I keep getting errors. maybe this is the reason?
Are you still having issues
Hey Eddie, great videos and video was a tremendous help. I have everything up and running but have an issue with front end. I can run npm start from terminal and access front end using web address 8082 but once i exit the terminal, or it times out, i cant access front page web any longer. I get cant find page. I have add npm start to etc/systemd/system/Zigbee MQTT.service but not sure its working. How can i tell? Thanks in advance
Hello Jack ,,, please check if Z2M is running as a daemon as welll... follow these steps www.zigbee2mqtt.io/guide/installation/01_linux.html#optional-running-as-a-daemon-with-systemctl
Dear Eddie, you're awesome! you help me so much with your videos! thank you!!
My question is probably really silly because I'm kind of new to this.
Trying to connect with my Mac to my Homebridge as you do here.
But can't and getting an error:
Permission denied, please try again.
I have the correct ip and password for sure as I connect to it through my Safari.
use *raspberry* as the password
Hy Eddie,if i have ARMv6 node.js is not available.What can i go because npm command not work?Actualy after i reinstall node.js ,node and npm give me errors (one of them is Failed at the zigbee2mqtt@1.30.1 start script 'node index.js'.)
Thanks for video and explanation!
Hi there can you please execute the below commands
sudo curl -fsSL deb.nodesource.com/setup_18.x | sudo -E bash -
sudo apt-get install -y nodejs git make g++ gcc
node --version
npm --version
Lastly follow this guide as well www.zigbee2mqtt.io/guide/installation/01_linux.html#determine-location-of-the-adapter-and-checking-user-permissions
@@eddiedsuza I try for the firs time with a Pi0w and after many atempts node was upgraded at 18.x, but npm give me erorrs so i put my usb dongle on another raspberry pi4 with raspbian and everything almost works because when i give the command npm start, surprize...another erors.Now i start with a new fresh raspbian 64 and i hope this time have more luck ! I try with raspbian because i want to use that rapspberry pi with pihole,vpn,webmin,Gpio relay,Ina219 sensor and desktop for vnc when (if) i need it. On the other hands i need to pair my Sonoff usb dongle CC2531 with a pi0w (i make a temperature and humidity with DTH22) and an Sonoff SNZB-02.For my other sonoff relay and sensors i found plugin in HomeBrige.I think is posible with a "little" work :)
When i try with Home Asisstant zigbee dongle and SNZP-02 works fine.
Thanks for everything!
And i succeded...Thank you for everything Eddie !
@@rukie6654 Cheers
Hi Eddie and community, when I run npm start the zigbee2mqtt always gives error i have be told that could be because the dongle needs a firmware update but I having difficulty with that and to really discover what is the problem, please Eddie do a new video how to add the dongle to the Homebridge with the firmware update 😁 btw love the videos and have learning so much, the have been my most help to make the perfect smart home 😀
Hey Carlos thanks for the compliment and please can you paste the error in the comments section to provide a north star to solve it. Infact yesterday i was able to update to the latest cordinator firmware by following this guide - www.zigbee2mqtt.io/guide/adapters/flashing/flashing_via_cc2538-bsl.html?fbclid=IwAR30bhQSMBWQ82gyIR3tewr0VUktJWETEUjWFt_pSznuYe8yj0veOWEJyCw
@@eddiedsuza thanks for the help, with the firmware update and the new video you just post i was able to make it work, love you channel keep doing a great work of creating this community of geeks 😂
@@carlosroque759 Glad to know your setup is running. Cheers
Hi, does this sonoff usb adapter work with zigbee devices from zemismart?
Hi There - yes the adapter works with Zemismart devices. Please use this link to know which devices work with Zigbee2mqtt zigbee.blakadder.com/
Error: Command failed: npm run build zigbee2mqtt.service: Failed with result 'exit-code'.
Please check the configuration.yaml
Hi Eddie, thanks for your time with the tutorial.
I have followed along and been able to set everything up via terminal correctly, however when it comes time to log into the front end I am unable to do so via either the HOOBS app (Mac) or any web browser.
I can still log into the device via terminal, but not into the front end.
I flashed the microSD card and started from the beginning, thinking I did something incorrectly, but it has done the same thing the 2nd time around and I am stuck.
Are you able to offer any suggestions where I've gone wrong and how to correct?
Cheers!
Hey Benjamin,
Please check the ip & port information included in the configuration yaml file
@@eddiedsuza Hi Eddie, thanks for the super speedy response!
I can confirm I have double checked the ip address using a network scanner, and I have this right, however I am unsure if I should be adjusting the port for both the MQQT server URL and the Frontend.
I currently have the Server URL set to 1883 as you do in your tutorial and the Frontend set to the default of 8080.
@@benjaminjvella the ports are correct .. change the Z2M frontend to 8081 (could be a fix)
Hi Eddie, a small question but do all Zigbee2MQTT devices work with this Sonoff dongle? For example the Aqara P1? (Without Aqara bridge) Is it also possible to add normal WiFi Tuya bulbs to this system, or is it best to keep using Smart Life for those products?
Hey Brent .... Please refer to this link to know which device types are compatible with Z2M zigbee.blakadder.com/
As the dongle is already compatible with Z2M - you will not have any issues to add zigbee devices to Z2M - just make sure you refer to the above link to know which devices. And if all the devices are supported by Z2M - you dont necessarily need the Tuya zigbee hub or the app 😇
@@eddiedsuza thanks 🙏
Hey man! I’m planning to make the transition from smartthings to HomeKit but all tutorials that I see all about zigbee…but what about ZWave? Are you planning to make some video about ZWave? Thanks in advance!
Hey Carlos .... the only way to get Zwave into Homekit is via the Aeotec stick or the ST hub.... I dont have many Zwave devices as there is a limited availability in the region i Live.... Thats why opted for Zigbee
@@eddiedsuza all zwave devices that i have are from aeotec… that’s why im interested on this…but i dont get any tutorial online
I've had a clean install. Followed every step by the minute :) But i had an error... What to do with the "error starting zigbee-herdsman"? Cant find anything to fix it.
Please refer to this guide with possible fixes - www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html
Hey Eddie, would it work with Tuya zigbee 3.0 devices too? Eg. Tuya electric floor thermostat zigbee 3.0?
Hi Piotr - Yes it works with Tuya Zigbee 3.0 devices. Hers a zigbee device database zigbee.blakadder.com for all the devices that work with Zigbee2MQTT - if its there, it should work with the dongle as well.
Thank you for showing the way!
Currently have Homebridge installed on my Windows desktop for trying out.
Looking to get a Raspberry Pi 4, setup Homebridge, MQTT and the Zigbee2mqtt plugin with a Consbee II.
Does it sounds correct?
Absolutely yes ! And have done a video on that setup as well. Cheers
hey, What if I using Mac OS/VirtualBox/HomeBridge how do I install it? Thank you
Please refer to this video using a MacBook Pro th-cam.com/video/22uUYXCu39I/w-d-xo.html
heya Eddie, thank you for making this video. I've been trying to follow your video for a few days now, and no matter what I do, when I try to install z2mqtt I get an error message saying "bash: line 15: npm: command not found" I tried updating npm & node, tried reinstalling npm & node, starting from scratch several times but whatever I do I can't seem to get it to work. seems like npm is missing from the tutorial? any suggestions that I might try? thank you.
Here's a detailed guide to fix the NPM command not found cloudlinuxtech.com/npm-command-not-found-fix/
I had the same problem and ended up copying everything from the first line in the code all the way to line 14 and putting that in the terminal. Once I did that, I ran the "npm ci" in the terminal that appears to be causing the issue and that seemed to run fine, then I copied the rest over. Seems to be working for me now.
Juster entered the HomeKit world. Great videos you have!. Now trying homebridge with the zonoff usb dongle. I get as far as "npm start", and this fails. I have to add "sudo npm start" for things to work, but then also the services is not autostarting at reboot. Any ideas?
Hmm... on a reimaged HB I did not get this. Now I have adapter issues. Realised that I have the E version, which is problematic to get working. On my 3rd image now, and have tried all tips I could find (most from HAS forum), but nothing helps. The P version is problematic to find. Project on hold until I find new ideas to try.
Hey Lars ... If you check aliexpress - you can find the *P* version easily and these are the current supported adapters www.zigbee2mqtt.io/guide/adapters/#recommended
what would you recommend eddie sonoff or conbee?
Sonoff = Budget Friendly & Stable Performance + Supported officially by Zigbee2mqtt / Conbee = 3x price & Stable Performance + NOT Supported officially by Zigbee2mqtt
Both devices function well. However - the Zemismart can work both as a Coordinator (default) & as a Router (to amplify your network) - you get dual functionality.
Hello Eddie,
Thanks for your hard work, you are really my hero, i have a synology nas DS220+ ,is it possible to install Homebridge & Zigbee2MQTT and plug this sonoff dongle to the usb and it still work? Thanks.
Aha Ofor .... stay tuned for my next video 11/12 to enable USB support for DSM 7. Cheers
Can you install device moes (UFO - R11) via zigbee2mqtt into a controller that supports homebridge via homkit?
please use this site to check which devices work with Z2M - zigbee.blakadder.com or www.zigbee2mqtt.io/supported-devices/
I’m getting constantly this error on homebridge - zigbee2mqtt is offline - any idea why? I’m using a rpi 4 and a Sonoff Zigbee dongle plus. Even though I get the error, the devices still work on HomeKit. Don’t find any answer around. Thanks in advance 🙏
can you access the Z2M webui .... If not (assuming the service is still working) - check the Pi 4 IP address. Reserve that in the router settings and update Z2M configuration yaml and restart the pi 4
thanks for a great tutorial! I however do get an error called "Error: network commissioning timed out" you have any idea how I should go about? Best regards
Please check out this issue to resolve github.com/Koenkk/zigbee2mqtt/issues/10209 and it's something to do with Pan ID. You can add the below to your configuration yaml to fix the issue and paste it under advance
pan_id: GENERATE
I'm using homebridge in hyper-v
command ls -l /dev/serial/by-id not working
ls: cannot access "/dev/serial/by-id": no such file or directory
If I am not mistaken - you will need to do a USB pass thru
Do you need the Sonoff Zigbee Bridge for these things to work?
You can use dongles such as conbee as well.
@@eddiedsuza I have already bought the sonoff you mentioned, but it’s the E version. 🤷♂️
I have the e version as well. Works flawlessly with my homeassitant but can't get it working with home bridge atm. Have you succeeded yet? @@Valnurat
Is there some kind of list available which devices are supported ?
please use this site zigbee.blakadder.com/
Hello Eddie! I am stuck on npm start. I hawe tryd a lot settings on comf.yaml, but end of the day i am getting still an error. Zigbee2mqtt link also not help me further. :(
can you try using the command sudo npm start
Hello and thank you for the video. I have homebridge in a raspberry pi zero 2 w. Can I plug the dongle in it and work?
As long as it has a US port - you are good to install along side
great video eddie!
Glad you enjoyed it ! Cheers
hey Eddie thanks for the tutorial i had successfully setup everything and it works great.
Except one thing, when my zigbee smart bulb went out of power, both homebridge & home app doesnt label it as 'no response', i can still toggle on/off thou it doesnt do anything.
Is there anyway to trigger the 'no response' in home app so i know which device is offline with this setup? thanks in advance
Please check the Homebridge logs ... And check if the bulb is still available in Z2M frontend. Maybe you'll need to repair
@@eddiedsuza checked with the homekit-z2m dev, currently there's no way of knowing the device status when its out of electricity. It wont trigger 'no response' status when its offline.
Hi Eddie, I ran across some of your videos about zigbee installation on Raspi and they were awesome. Thanks for spending time to create those educational videos. Anyway, I just came back from a large convention in Vegas with my demo having a Pi 4 acting as a Wifi Router sending REST API to control IoT race cars with Raspi 3B+ running ASGI webservices. Everything worked fine for me except the Wifi network kept dropping a couple times a day probably due to massive number of wifi channels and devices at the show. So now I am looking into replacing Wifi network with Zigbee network for reliability and less interference . I can understand the part of configure my Raspi 4B Wifi Router a zigbee bridge using one of the Zigbee USB dongle running zigbee2mqtt/mosquitto. Can I then use the same USB dongles and plug them in to USB port on my IoT race cars with Raspi 3B to make them 'zipbee devices' so I can communicate with them from my zipbee bridge? Is there a better way? I don't think I can use the zipbee module because the car motor controller board (Freenove 4WD race cars) is plugin to the same pins on the IO ports in the Raspi 3B+. Hope I make my question clear. Thanks again for your expertise and help. Looking forward to hearing from you.
Hi David ... This was a curve ball and had to investigate on whats BEST - well zigbee2mqtt will be using the 2.4Ghz bandwidth with a default channel 11. Now keep them connected to a car plus reduce battery consumption - i came across this pen drive like device that connects to Z2M plus works as a repeater meaning its emitting a powerful zigbee signal - you may want to try it our s.click.aliexpress.com/e/_DmmSTkP
I am not sure if i assisted :P
can you help with windows vm install please ?
I have tried and tried ... Was having issues to setup the auto start script .... Still looking for a solution. Cheers
Very good!!! Thank you 😊
Welcome 😊
Hello Eddie, thanks for the video!
Based on this, I also tried to install it, but I ran into some problems.
In principle, I got to the point where mosquitto was installed, but I can't do this on explorer because I get "Disconnect" all the time. I didn't deal with this because I read that it happens to other people as well.
Then I tried to query the port of the dongle, but no matter which one I plug in, I always get the same: ttyACM0 I finally entered this in the config, but when I run the npm start command, it says "MQTT error: connect ECONNREFUSED 192.168..." And I can't go any further from here.
Thank you.
Hello Istvan ... please check the mosquitto.conf and ensure you have the below
*allow_anonymous true*
@@eddiedsuza Thank you, but yes, that's included.
@@MrExCat Is the MQTT service running on the same server that Zigbee2MQTT is installed on .... Check the IP address
@@eddiedsuza I checked and I think it's good. I also tried with localhost, but it still didn't improve. :(
i am using the cone 2 stick with this and I am not abled to get it running. I did everything correct and it still won't work. is it because of the congee 2 instead of the son off stick?
make sure in the configurations yaml you have the below values included
serial:
port: /dev/ttyACM0
adapter: deconz
Hi Eddie, I am stuck and am wondering if you could help? I am at the Command List an try to run "npm start". Unfortunately I'm getting the error "Zigbee2MQTT:error 2022-12-18 20:48:23: Configuration is not consistent with adapter state/backup!". I have checked the IP, Port and Adapter Setting but everything seems to be fine. Do you have any idea? Thank you!
check the configuration.yaml and also the indenting as well
Hi Eddie, when testing with MQTT explorer it just repeatedly says “disconnected from server” how do I get around this?
Make sure the server that is running MQTT has a reserved IP address
Good morning, I follow your teachings. I have a problem when "ls -l /dev/ttyUSB0" I get "ls: cannot access '/dev/ttyUSB0': No such file or directory". I have " /ttyACM0".
Can you tell me the way to have "ttyUSB0" on the raspberry pi 4 model B?
thank you
Try rebooting the pi and use this command ls -l /dev/serial/by-id
@@eddiedsuzaI'm having the same problem. Tried restarted, tried different usb ports but no luck. any idea?
Ah, i dit have also problems with can not connect, i did :sudo systemctl stop zigbee2mqtt and then sudo start and now it works.
Perfect ! Welcome to the Smart home DIY world. 🍾🍾🍾
I don’t see nothing about frontend on mine, and when I do bump start it says error
Please check your configuration yaml file thats where the commands check to start the service
Hi Eddie, are there any significant differences between ZBDongle-P and ZBDongle-E. Especially for "Building The Ultimate HomeKit Hub For Your DIY Smart Home" 🙂
Hey Artur - There are hardware / chip improvements with the newer version. Would you see any real world difference - may be yes for those devices that are installed further away from the dongle. Please scroll to the end of the page to know the hardware differences sonoff.tech/product/diy-smart-switch/sonoff-zigbee-3-0-usb-dongle-plus-e/
However for regular use - you use the -p with no issues. Cheers
hi did excatly how you said in the video but when i try to do npm start i get this error Error: Error while opening serialport 'Error: Error Resource temporarily unavailable Cannot lock port'. I checked the possible solutions on the website and it tells me to run this This error occurs when another program is already using (and thus locking) the adapter. You can find out which via the following command: ls -l /proc/[0-9]/fd/ |grep /dev/ttyACM0 (replace /dev/ttyACM0 with your adapter port. When i run this like they are saying i get nothing what can i do please help
Hello There - please make sure you have executed this command (again) sudo chown -R pi:pi /opt/zigbee2mqtt
And reboot your raspberry PI by typing sudo reboot
Let me know if it worked
@@eddiedsuza i'm having this same exact issue and tried granting permissions again and rebooting as you instructed but i still get the same error as HyperZ
@@e4tmonkieshyt At what step are you seeing the error.
Hi Eddie,
I followed your steps, so far so good. But at the point at 10:22 npm start, I get the error -bash: npm: command not found. I think the download and installation of npm is missing in your scripts. Can you explain starting from the scratch on a fresh installed raspberry OS?
Hi Jochbart - I used the Linux version that Homebridge comes with. Please try using it or reflash your sd card and redo the process.
@@eddiedsuza ah ok thx. I was able now to get it running. Much appreciated
@@WoschtkoddelJim what was your fix? Running into the same problem.
I had to install npm as well as I ran into this on the homebridge os freshly flashed
I'm running into this same issue too and sorry for not fully understanding. Do you recommend I reflash my SD card with Homebridge and start the whole thing over?
Dear Eddie, is it possible to update the script for Z2B install. I have an error message saying the node version is outdated...
Sorry.
Yes you can ... Please follow this guide - github.com/homebridge/homebridge/wiki/How-To-Update-Node.js
How do I do this with Windows? Getting lost on some of the steps as I dont know how to convert to windows...
Here's a link to installing on a windows machine www.zigbee2mqtt.io/guide/installation/05_windows.html
thanks Eddie its been running for 6 months great , iv got some new lamps that are not supported in this version of MQTT , iv been struggling to find away to update it with the dev package . any help would be fab
Hey Ian - please use this link to update the dev packages www.zigbee2mqtt.io/advanced/more/switch-to-dev-branch.html#linux
@@eddiedsuza thanks Eddie , ended up trashing the whole setup having to start again ,
I get his error now when running your z2m line ?
'npm-shrinkwrap.json' did not match any file(s) known to git
M data/configuration.yaml
@@TheDalejake you can ignore the error and have updated the script as well. Thanks for the feedback.
Good morning
When checking ttyACM0 instead of usb0
I can't get on the frontend web page and unfortunately it doesn't go up in homebridge
Can you help me
THANKS
This information needs to be same as the configuration. Yaml
Are you using the dongle-p or -e?
Hey Andy - its the p version
@@eddiedsuza awesome. Thanks. Wish me luck getting one. The market is flooded with -e’s
@@andymuzzo8568 it should with e as well .. just check the serial id and add that to the config ... And yeah - all the best
@@eddiedsuza so it won’t matter if it’s the newer version (e)?
@@andymuzzo8568 It doesnt matter ... the command line remains the same
and no frondend, tried it with 8080 and 8082 but then no connection
The port always needs to be the same used in the configuration.yaml
Hi Eddie. I am stuck and am wondering if you could help. Certainly willing to slide you a donation/support for your time. I have a RPi4 with Homebridge. I am new to this specific type of IT but am generally IT-capable. I have the Pi and Homebridge up and running and connected to my security system no problem. Now I am working on getting the Zigbee dongle working. I have installed Mosquitto and confirmed it is working properly. I have also run some commands to confirm that the RPi is seeing the dongle. But from there I am lost and I do not know how to get unstuck. Specifically I am stuck on installing Zigbee2MQTT and creating the related config file. Thank you.
Hey Ted - please email me at info@buildasmarthome.org and will support you with the setup
Hi, does this work with a Raspberry Zero w?
thanks
It should using the USB port
hey eddie, i have 60 zigbee devices in my home and i have tested this sonoff usb 3.0 plus but the lqi is verry low compared to conbee2 some of devices are under 50 lqi and with conbee2 must of them are on 200-255 lqi do you know if is frimware problem or this is the power of sonoff usb 3.0?
Hey there - you´ll definetly need to upgrade the firmware and the guide can be found here. I dont have a PC to do the process but there are videos on how it can be done. Basically with the updated firmware, the network output gain goes from 5db to 20 db. sonoff.tech/wp-content/uploads/2022/01/SONOFF-Zigbee-3.0-USB-dongle-plus-firmware-flashing-.pdf
@@eddiedsuza i have updated to the last frimware but no changes... some of devices do not connect to the network and must of them are in low LQI ... so change back to conbee2 :D
Is there an Update for the Video? It does Not work for me
Hey Henry - let me know where you’re seeing the error
@@eddiedsuza All steps up to the yaml file work. The stick sonoff stick is recognized. When I load the yaml file it looks completely different than yours. If I change the IP address there and then confirm it, I get lots of debug and error messages. so the yaml config would no longer be correct. thanks for helping!
@@Henry4390 can you paste the logs here and send pastebin.com .. Attach the link here and will try to help
@EddiedSuZa ?
@@Henry4390 attach the logs as I mentioned earlier. Without that I can’t help you
It seems your script doesn't pull the dev branch anymore. Is that right?
Hey Dan - its now back to the dev branch ... Cheers
did you have window version ..... newbie here
Hello Calvin .... at the moment i dont have a windows machine to test ....
@@eddiedsuza is it same do in the window version ? Just follow same step ?
@@calvinleong4102 here is the link to the guide www.zigbee2mqtt.io/guide/installation/04_windows.html
@@eddiedsuza thank you I will try it
How do I do this on windows?
Yes you can do it on a windows machine following this guide here. However i havent attempted this yet - www.zigbee2mqtt.io/guide/installation/05_windows.html#updating-zigbee2mqtt
I don’t see frontend on mine
Please check the IP and the assign port information in configuration.yaml
Does anyone have any idea why my homebridge won't link up? I'm getting this error in the web page linking to my homebridge program running on the same RPi as all the zigbee and mtqq stuff.
[homebridge-z2m] Incorrect configuration: Entry for device is not correct: {"exclude":false,"converters":{"switch":{"type":"switch"},"occupancy":{"type":"occupancy"}}}
[homebridge-z2m] INVALID CONFIGURATION FOR PLUGIN: homebridge-z2m
This plugin will NOT WORK until this problem is resolved.
Please check if the Homebridge-z2m plugin has all the information like the ip address of MQTT ... please revisit the plugin configuration.
@@eddiedsuza thanks. It turned out to be some kruft in the config file. I removed all references matching those items in the error file and it fired up and linked to HomeKit... unfortunately, it doesn't STAY connected for long. I think this has to do with caching of data. I'll have to go re-find the document that discusses this, but it's something like cache_data: false iirc. This is proving to be quite a slog! Typical of ANYTHING Apple when not 100% Apple. sigh I guess that's the price we pay for not having all of our data sold to the highest bidder by unscrupulous giga giants of corporate greed.
Well, I wrote too soon. Now HomeKit won't acknowledge ANY of my z2m shared devices.
@@crapple5759 Has your issued fixed ?
I cannot Grant permissions. says Invalid user
please use the command *sudo*
This is incredibly complex for a noob who is just starting out like me.
Aditya ... I have a video coming up to setup a zigbee smart home with no line of code ... Stay Tuned
aaaarhgh, for ssh you need password but that is i think password of the pi, not password of the homebridge
It’s *raspberry*
@@eddiedsuza yes the first time, but when trying sudo chown -R pi:pi /opt/zigbee2mqtt01~ then it wil not do in again with raspberry
Will Matter obviate all of this?! 🤦🏻♂️
Not at all ..... You will still need these platforms to support your legacy smart home products
Eddie, great tutorial but I think what was missing is initial build:
pi@raspberrypi:/opt/zigbee2mqtt $ sudo npm run build
> zigbee2mqtt@1.28.4 build
> tsc && node index.js writehash
Before that after starting the service CPU has skyrocket to 50%.
Now it's several percents!
You are right ... Please check out my updated video in setting Z2M
Thanks, will do.
I have managed to install Zigbee2MQTT according to your step on Raspberry Pi Zero W 2 with only 512 MB RAM!
The trick was to permanently increase swap memory from 100MB to 1024MB.
Before that ‘top’ and ‘free’ commands were showing 0 swap memory available during execution of ‘npm ci’ command and device has become almost unresponsive.
You mean this video?
th-cam.com/video/kykvC2cGlNQ/w-d-xo.html
Hi Eddie, I tried it to install EXACTLY following your tutorial, that is really good. But whatever I do, I end up in lots of errors. Look here:
Zigbee2MQTT:info 2023-01-23 19:02:09: Starting Zigbee2MQTT version 1.29.2 (commit #bb3e8f6d)
Zigbee2MQTT:info 2023-01-23 19:02:09: Starting zigbee-herdsman (0.14.83-hotfix.0)
Zigbee2MQTT:debug 2023-01-23 19:02:09: Using zigbee-herdsman with settings: '{"adapter":{"concurrent":null,"delay":null,"disableLED":false},"backupPath":"/opt/zigbee2mqtt/data/coordinator_backup.json","databaseBackupPath":"/opt/zigbee2mqtt/data/database.db.backup","databasePath":"/opt/zigbee2mqtt/data/database.db","network":{"channelList":[11],"extendedPanID":[221,221,221,221,221,221,221,221],"networkKey":"HIDDEN","panID":6754},"serialPort":{"path":"/dev/ttyUSB0"}}'
Zigbee2MQTT:error 2023-01-23 19:02:10: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2023-01-23 19:02:10: Failed to start zigbee
Zigbee2MQTT:error 2023-01-23 19:02:10: Check www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
Zigbee2MQTT:error 2023-01-23 19:02:10: Exiting...
Zigbee2MQTT:error 2023-01-23 19:02:11: Error: Error while opening serialport 'Error: Error: No such file or directory, cannot open /dev/ttyUSB0'
at SerialPort. (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/adapter/z-stack/znp/znp.ts:146:28)
at SerialPort._error (/opt/zigbee2mqtt/node_modules/@serialport/stream/dist/index.js:76:22)
at /opt/zigbee2mqtt/node_modules/@serialport/stream/dist/index.js:112:18
I have no idea what to do...
When I do the command: pi@homebridge:~ $ ls -l /dev/serial/by-id
then this is the result:
total 0
lrwxrwxrwx 1 root root 13 Jan 23 19:04 usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20221202100055-if00 -> ../../ttyACM0
Can you help me please? I don't get it running and have no clue...
Thanks a lot.
In the configuration.yaml - instead of using *ttyUSB0* use this *ttyACM0*
@@eddiedsuza unfortunately the Dongle-E seems not to work:
Zigbee2MQTT:debug 2023-02-02 20:31:50: Using zigbee-herdsman with settings: '{"a dapter":{"concurrent":null,"delay":null,"disableLED":false},"backupPath":"/opt/z igbee2mqtt/data/coordinator_backup.json","databaseBackupPath":"/opt/zigbee2mqtt/ data/database.db.backup","databasePath":"/opt/zigbee2mqtt/data/database.db","net work":{"channelList":[11],"extendedPanID":[221,221,221,221,221,221,221,221],"net workKey":"HIDDEN","panID":6754},"serialPort":{"path":"/dev/ttyACM0"}}'
Zigbee2MQTT:error 2023-02-02 20:32:11: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2023-02-02 20:32:11: Failed to start zigbee
Zigbee2MQTT:error 2023-02-02 20:32:11: Check www.zigbee2mqtt.io/guide/in stallation/20_zigbee2mqtt-fails-to-start.html for possible solutions
Zigbee2MQTT:error 2023-02-02 20:32:11: Exiting...
Zigbee2MQTT:error 2023-02-02 20:32:12: Error: Failed to connect to the adapter (
Hello, were you able ti fix this error? I'm having the same problem as you. Already have ttyACM0 in the configuration.yaml
@@luiscarlosgzaa please paste logs or paste the error lines
Hi Eddie, you're a great help but I have a problem after updating the configuration.yaml file.
I've run npm start and this is the error:
pi@homebridge:/opt/zigbee2mqtt $ sudo npm start
> zigbee2mqtt@1.40.1 start
> node index.js
node:internal/modules/package_json_reader:92
throw error;
^
SyntaxError: Error parsing /opt/zigbee2mqtt/node_modules/semver/package.json: Unexpected token in JSON at position 0
at parse ()
at read (node:internal/modules/package_json_reader:79:16)
at readPackage (node:internal/modules/package_json_reader:140:10)
at resolveExports (node:internal/modules/cjs/loader:586:15)
at Module._findPath (node:internal/modules/cjs/loader:664:31)
at Module._resolveFilename (node:internal/modules/cjs/loader:1126:27)
at Module._load (node:internal/modules/cjs/loader:981:27)
at Module.require (node:internal/modules/cjs/loader:1231:19)
at require (node:internal/modules/helpers:177:18)
at Object. (/opt/zigbee2mqtt/index.js:1:16) {
path: '/opt/zigbee2mqtt/node_modules/semver/package.json'
}
Node.js v18.20.4
Would you be kind enough to assist on my installation?
Hey Darren .. seems like a database issue - can you please take a look at these issues for possible solutions ... github.com/Koenkk/zigbee2mqtt/issues/2891 or github.com/Koenkk/zigbee2mqtt/issues/3680
Hi Eddie, thanks for this outstanding video on Z2M. However, I ran into problem when adding the USB Dongle in SSH. Rebooted more than 10 times. Need your help on this what to do next. Would appreciateyour help on this. Thanks. Below was progress. -
[x] i have successfully installed MQTT in my Homebridge
Step 1 Shut down RPi4
- [x] Step 2 Connect Sonoff Dongle
- [x] Step 3 Install scrip via SSH as below:-
- [x] Copy and paste this: "" curl -sk paste sudo | bash ""
- [x] Step 4 Z2M already installed: RPi4 will reboot
Step 5 See Screenshot below for next 9 steps (5.1 to 5.9)
- [ ] Step 5.1: Change directory: cd /opt/zigbee2mqtt/
- [ ] Step 5.2: Grant Permissions B: sudo chown -R pi:pi /opt/zigbee2mqtt
- [ ] Step 5.3: Device Location: ls -l /dev/serial/by-id
- [ ] Step 5.4: Update Configuration YAML: sudo nano /opt/zigbee2mqtt/data/configuration.yaml
- [ ] Step 5.5: Run NPM Start: npm start
- [ ] Step 5.6: Update Configuration YAML With Pan: sudonano/opt/zigbee2mqtt/data/configuration.yaml
- [ ] Step 5.7: Run NPM Start: npm start
- [ ] Step 5.8: Run Automatically on Boot Up: sudonano/etc/systemd/system/zigbee2mqtt.service
- [ ] Step 5.9: Restart Server: sudo reboot
what is it the error you see when you run *npm start*
Does it connect to the dongle & mqtt service ?
@@eddiedsuza Hi, mqtt service is running, but dongle cannot be connected. (USB not found)
Hi Eddie,
Thanks for this tutorial. So far I can manage most of it. Only when I am follow some steps in the scripts, i get the following error: chown: invalid user: ‘pi:pi’.
This is when I am hashed in my Raspberry Pi (I run hoobs) and then try to run: sudo chown -R pi:pi /opt/zigbee2mqtt
I really can't find anything about, please help me! I will be eternally grateful!
Sam
Hey Sheuves - Since you are using HOOBS - use this command sudo chown -R hoobs:hoobs /opt/zigbee2mqtt
This is because the root privileges will be provided to hoobs. Please try and let me know if it works
@@eddiedsuza Amazing! Thanks a lot! Indeed I did some more research about the chown command, and that helped a lot!
I also have another question which is related to Hoobs/Homebridge, but not related to the subject of this video. Is there a way I can send you a message and you might help me out? Thanks in advance!
@@sheuves sure you can reach me via my eddie@buildasmarthome.org
Hi Eddie, Thanks for great video.
Everything is great but whenever I try 'npm start' I got these error.
> zigbee2mqtt@1.34.0 start
> node index.js
Building Zigbee2MQTT... (initial build), failed
Error: Command failed: npm run build
Error: ENOENT: no such file or directory, open '/opt/zigbee2mqtt/dist/.hash'
at Object.openSync (node:fs:603:3)
at Object.writeFileSync (node:fs:2324:35)
at writeHash (/opt/zigbee2mqtt/index.js:38:8)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at ChildProcess.exithandler (node:child_process:419:12)
at ChildProcess.emit (node:events:514:28)
at maybeClose (node:internal/child_process:1091:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
Any ideas? Thank you.
please check if node was installed by using this command *node -v* if there is no output then you will need to install node by following the guide here www.zigbee2mqtt.io/guide/installation/01_linux.html#installing
It's never a good idea to HARDCODE user:group ids nor IP addresses. FACEPALM
Well only the IP address is hard coded / reserved for the Hub
@@eddiedsuza didn't you hard code the username too? But then later you mention that it could be "pi" OR "noobs" in the config file. Personally, I created a user JUST for zigbee, but then I had to make some fixes since that user doesn't have sudo powers, as any IOT thing should be! ;-p
Thanks again for all the good pointers. I think I finally got it to work! :-D
@@crapple5759 😇
Hi Eddie,
I'm having the same issue as @user-dz4mr7vx2h.
I can't find the id number of the Sonoff Zigbee 3.0 USB Dongle Plus:
pi@homebridge:/opt/zigbee2mqtt $ ls -l /dev/serial/by-id
ls: cannot access '/dev/serial/by-id': No such file or directory
Please, can you help?
please type *cd* where you will be taken to the root folder and then try the command again
I'm always getting error following error.
Tried every step 2 times.
Anyone have an idea?
pi@homebridge:/opt/zigbee2mqtt $ npm start
> zigbee2mqtt@1.30.3 start
> node index.js
Zigbee2MQTT:debug 2023-04-18 23:17:46: Loaded state from file /opt/zigbee2mqtt/data/state.json
Zigbee2MQTT:info 2023-04-18 23:17:46: Logging to console and directory: '/opt/zigbee2mqtt/data/log/2023-04-18.23-17-46' filename: log.txt
Zigbee2MQTT:info 2023-04-18 23:17:47: Starting Zigbee2MQTT version 1.30.3 (commit #24c6b2e2)
Zigbee2MQTT:info 2023-04-18 23:17:47: Starting zigbee-herdsman (0.14.103)
Zigbee2MQTT:debug 2023-04-18 23:17:47: Using zigbee-herdsman with settings: '{"adapter":{"concurrent":null,"delay":null,"disableLED":false},"backupPath":"/opt/zigbee2mqtt/data/coordinator_backup.json","databaseBackupPath":"/opt/zigbee2mqtt/data/database.db.backup","databasePath":"/opt/zigbee2mqtt/data/database.db","network":{"channelList":[11],"extendedPanID":[221,221,221,221,221,221,221,221],"networkKey":"HIDDEN","panID":6754},"serialPort":{"path":"/dev/ttyUSB0"}}'
Zigbee2MQTT:error 2023-04-18 23:17:49: Configuration is not consistent with adapter state/backup!
Zigbee2MQTT:error 2023-04-18 23:17:49: - PAN ID: configured=6754, adapter=6754
Zigbee2MQTT:error 2023-04-18 23:17:49: - Extended PAN ID: configured=00124b002a2f22a8, adapter=00124b002a2f22a8
Zigbee2MQTT:error 2023-04-18 23:17:49: - Network Key: configured=f5999948fd8838fefaa4b12d874db140, adapter=b881b4ce4d67d98f87d4388a3ef4f3cd
Zigbee2MQTT:error 2023-04-18 23:17:49: - Channel List: configured=11, adapter=11
Zigbee2MQTT:error 2023-04-18 23:17:49: Please update configuration to prevent further issues.
Zigbee2MQTT:error 2023-04-18 23:17:49: If you wish to re-commission your network, please remove coordinator backup at /opt/zigbee2mqtt/data/coordinator_backup.json.
Zigbee2MQTT:error 2023-04-18 23:17:49: Re-commissioning your network will require re-pairing of all devices!
Zigbee2MQTT:error 2023-04-18 23:17:49: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2023-04-18 23:17:49: Failed to start zigbee
Zigbee2MQTT:error 2023-04-18 23:17:49: Check www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
Zigbee2MQTT:error 2023-04-18 23:17:49: Exiting...
Zigbee2MQTT:error 2023-04-18 23:17:49: 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:229:35)
at ZnpAdapterManager.start (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/adapter/z-stack/adapter/manager.ts:63:26)
at Controller.start (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/controller/controller.ts:132:29)
at Zigbee.start (/opt/zigbee2mqtt/lib/zigbee.ts:58:27)
at Controller.start (/opt/zigbee2mqtt/lib/controller.ts:101:27)
at start (/opt/zigbee2mqtt/index.js:107:5)
please check configuration.yaml seems like the tty information is different