How to Setup a Sonoff Zigbee Dongle with Homebridge & Zigbee2MQTT

แชร์
ฝัง
  • เผยแพร่เมื่อ 12 พ.ย. 2024

ความคิดเห็น • 270

  • @decepti0n
    @decepti0n 26 วันที่ผ่านมา +2

    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.

    • @eddiedsuza
      @eddiedsuza  23 วันที่ผ่านมา +2

      Thanks for the tip. Your comment has been pinned

    • @mrxox33
      @mrxox33 7 วันที่ผ่านมา +2

      @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
      👍👍👍👍👍

    • @decepti0n
      @decepti0n 7 วันที่ผ่านมา

      @@mrxox33 glad it could help someone, cheers!

  • @raymondlabrie672
    @raymondlabrie672 9 หลายเดือนก่อน

    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!!!!

    • @eddiedsuza
      @eddiedsuza  9 หลายเดือนก่อน

      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. 😇

  • @kolemieux
    @kolemieux ปีที่แล้ว +3

    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! 🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉

    • @eddiedsuza
      @eddiedsuza  ปีที่แล้ว

      Wow, thank you! And appreciate the awesome feedback. Positive Vibes to You .... Cheers

  • @cjashchal
    @cjashchal 8 หลายเดือนก่อน

    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

    • @eddiedsuza
      @eddiedsuza  8 หลายเดือนก่อน

      Glad it was helpful! Cheers

  • @craigjohnston1028
    @craigjohnston1028 2 หลายเดือนก่อน

    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

    • @eddiedsuza
      @eddiedsuza  2 หลายเดือนก่อน

      Great tip! Cheers

  • @patrickschl7715
    @patrickschl7715 23 วันที่ผ่านมา +1

    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?

    • @eddiedsuza
      @eddiedsuza  23 วันที่ผ่านมา

      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

  • @ckeilah
    @ckeilah 2 ปีที่แล้ว

    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!

    • @eddiedsuza
      @eddiedsuza  2 ปีที่แล้ว

      Your welcome 🙏

  • @footlooselife5004
    @footlooselife5004 3 หลายเดือนก่อน

    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!

    • @eddiedsuza
      @eddiedsuza  3 หลายเดือนก่อน

      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

  • @binhvuong6174
    @binhvuong6174 ปีที่แล้ว +6

    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
      @alexwrightmusic ปีที่แล้ว +1

      Brilliant! How do you change the channel?

    • @eddiedsuza
      @eddiedsuza  ปีที่แล้ว

      @@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
      @eddiedsuza  ปีที่แล้ว

      Thanks for the tip and you comment has been pinned

    • @binhvuong6174
      @binhvuong6174 ปีที่แล้ว

      @@eddiedsuza no problem. Glad I could help.

    • @gabazurdia
      @gabazurdia 11 หลายเดือนก่อน

      @@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 !

  • @robertbene3125
    @robertbene3125 10 หลายเดือนก่อน +2

    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

    • @eddiedsuza
      @eddiedsuza  8 หลายเดือนก่อน

      please use the command sudo

    • @robertbene3125
      @robertbene3125 8 หลายเดือนก่อน

      @@eddiedsuza Used it, nothing works in he end.

    • @jespervanderwerf
      @jespervanderwerf 2 หลายเดือนก่อน

      First make sure SSH is active

  • @MischaGielen
    @MischaGielen 8 หลายเดือนก่อน

    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.

    • @eddiedsuza
      @eddiedsuza  8 หลายเดือนก่อน

      TO use the dongle - setup Z2M via docker and map the USB port it is at and add that to the configuration.yaml

  • @crapple5759
    @crapple5759 2 ปีที่แล้ว

    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. :-)

    • @eddiedsuza
      @eddiedsuza  2 ปีที่แล้ว

      Glad it was helpful! Cheers

    • @ckeilah
      @ckeilah 2 ปีที่แล้ว

      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. 🍸 🍹 🍻

    • @eddiedsuza
      @eddiedsuza  2 ปีที่แล้ว

      @@ckeilah Cheers 🍺

  • @CemSolak-eh9kd
    @CemSolak-eh9kd 2 หลายเดือนก่อน

    Eddie man you're great 🤘🤘🤘 this worked flawlessly :)) know all I need is to solve remote access to homebridge ui for me any suggesttions :)

    • @eddiedsuza
      @eddiedsuza  2 หลายเดือนก่อน

      @@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

    • @CemSolak-eh9kd
      @CemSolak-eh9kd 2 หลายเดือนก่อน

      @@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.

  • @janisemzins710
    @janisemzins710 ปีที่แล้ว +2

    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!

    • @eddiedsuza
      @eddiedsuza  ปีที่แล้ว

      Yes you can! You can view this video to setup via docker ... th-cam.com/video/kykvC2cGlNQ/w-d-xo.html

  • @coengovaert9191
    @coengovaert9191 27 วันที่ผ่านมา

    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?

    • @eddiedsuza
      @eddiedsuza  23 วันที่ผ่านมา

      Try using a USB cable and restart the server using the command *sudo reboot*

  • @alexishuet6899
    @alexishuet6899 2 หลายเดือนก่อน

    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 !🙂

    • @eddiedsuza
      @eddiedsuza  2 หลายเดือนก่อน

      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

  • @Jerad13247
    @Jerad13247 ปีที่แล้ว +1

    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?

    • @eddiedsuza
      @eddiedsuza  ปีที่แล้ว +1

      I have a video enabling Z2M using a MAC th-cam.com/video/22uUYXCu39I/w-d-xo.html

    • @Jerad13247
      @Jerad13247 ปีที่แล้ว

      @@eddiedsuza It worked Eddie! Thank you so much!

  • @simon057
    @simon057 ปีที่แล้ว +2

    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

    • @eddiedsuza
      @eddiedsuza  ปีที่แล้ว

      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

  • @amansaroha4171
    @amansaroha4171 9 หลายเดือนก่อน +1

    does this tutorial also work for Dongle E?

  • @walberg61
    @walberg61 2 หลายเดือนก่อน

    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.

    • @eddiedsuza
      @eddiedsuza  2 หลายเดือนก่อน

      Sometimes (which works) restart the system and check out what’s the last know error to debug further

  • @ivanlourenco1130
    @ivanlourenco1130 11 หลายเดือนก่อน

    Hi Eddie, great work.
    After installing z2m, the terminal tab in Hoobs is missing.
    Do you know how to get it back?

    • @eddiedsuza
      @eddiedsuza  11 หลายเดือนก่อน

      Oh boy ! its a while i have used the HOOBS system. You will need to reach out to their support groups

  • @BenGristUK
    @BenGristUK ปีที่แล้ว

    Worked like a charm!

  • @grandesalamame3421
    @grandesalamame3421 ปีที่แล้ว +1

    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.

    • @eddiedsuza
      @eddiedsuza  ปีที่แล้ว

      Yes you could leave it as is. I just make it sure it knows where it resides on the network (its just me 😇)

  • @nyaki10
    @nyaki10 7 หลายเดือนก่อน

    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?

    • @eddiedsuza
      @eddiedsuza  7 หลายเดือนก่อน +1

      Are you still having issues

  • @jmorris900
    @jmorris900 ปีที่แล้ว +1

    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

    • @eddiedsuza
      @eddiedsuza  ปีที่แล้ว

      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

  • @nyaki10
    @nyaki10 7 หลายเดือนก่อน

    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.

    • @eddiedsuza
      @eddiedsuza  7 หลายเดือนก่อน +1

      use *raspberry* as the password

  • @rukie6654
    @rukie6654 ปีที่แล้ว +1

    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!

    • @eddiedsuza
      @eddiedsuza  ปีที่แล้ว

      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

    • @rukie6654
      @rukie6654 ปีที่แล้ว

      @@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!

    • @rukie6654
      @rukie6654 ปีที่แล้ว

      And i succeded...Thank you for everything Eddie !

    • @eddiedsuza
      @eddiedsuza  ปีที่แล้ว

      @@rukie6654 Cheers

  • @carlosroque759
    @carlosroque759 2 ปีที่แล้ว +1

    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 😀

    • @eddiedsuza
      @eddiedsuza  2 ปีที่แล้ว +1

      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

    • @carlosroque759
      @carlosroque759 2 ปีที่แล้ว

      @@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 😂

    • @eddiedsuza
      @eddiedsuza  2 ปีที่แล้ว

      @@carlosroque759 Glad to know your setup is running. Cheers

  •  2 ปีที่แล้ว +1

    Hi, does this sonoff usb adapter work with zigbee devices from zemismart?

    • @eddiedsuza
      @eddiedsuza  2 ปีที่แล้ว +1

      Hi There - yes the adapter works with Zemismart devices. Please use this link to know which devices work with Zigbee2mqtt zigbee.blakadder.com/

  • @RedpaX
    @RedpaX ปีที่แล้ว +1

    Error: Command failed: npm run build zigbee2mqtt.service: Failed with result 'exit-code'.

    • @eddiedsuza
      @eddiedsuza  ปีที่แล้ว

      Please check the configuration.yaml

  • @benjaminjvella
    @benjaminjvella ปีที่แล้ว +1

    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
      @eddiedsuza  ปีที่แล้ว

      Hey Benjamin,
      Please check the ip & port information included in the configuration yaml file

    • @benjaminjvella
      @benjaminjvella ปีที่แล้ว

      @@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.

    • @eddiedsuza
      @eddiedsuza  ปีที่แล้ว

      @@benjaminjvella the ports are correct .. change the Z2M frontend to 8081 (could be a fix)

  • @brentkermusic
    @brentkermusic ปีที่แล้ว

    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?

    • @eddiedsuza
      @eddiedsuza  ปีที่แล้ว

      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 😇

    • @brentkermusic
      @brentkermusic ปีที่แล้ว

      @@eddiedsuza thanks 🙏

  • @csevgut
    @csevgut 2 ปีที่แล้ว +1

    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!

    • @eddiedsuza
      @eddiedsuza  2 ปีที่แล้ว +1

      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

    • @csevgut
      @csevgut 2 ปีที่แล้ว

      @@eddiedsuza all zwave devices that i have are from aeotec… that’s why im interested on this…but i dont get any tutorial online

  • @masterpeppi
    @masterpeppi 9 หลายเดือนก่อน

    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.

    • @eddiedsuza
      @eddiedsuza  9 หลายเดือนก่อน

      Please refer to this guide with possible fixes - www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html

  • @jewczukpiotr
    @jewczukpiotr 2 ปีที่แล้ว +1

    Hey Eddie, would it work with Tuya zigbee 3.0 devices too? Eg. Tuya electric floor thermostat zigbee 3.0?

    • @eddiedsuza
      @eddiedsuza  2 ปีที่แล้ว

      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.

  • @colordeficiency
    @colordeficiency 2 ปีที่แล้ว

    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?

    • @eddiedsuza
      @eddiedsuza  2 ปีที่แล้ว

      Absolutely yes ! And have done a video on that setup as well. Cheers

  • @czechdrew5757
    @czechdrew5757 3 หลายเดือนก่อน

    hey, What if I using Mac OS/VirtualBox/HomeBridge how do I install it? Thank you

    • @eddiedsuza
      @eddiedsuza  3 หลายเดือนก่อน

      Please refer to this video using a MacBook Pro th-cam.com/video/22uUYXCu39I/w-d-xo.html

  • @charizardb2029
    @charizardb2029 2 ปีที่แล้ว +1

    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.

    • @eddiedsuza
      @eddiedsuza  2 ปีที่แล้ว

      Here's a detailed guide to fix the NPM command not found cloudlinuxtech.com/npm-command-not-found-fix/

    • @kylemeyer113
      @kylemeyer113 2 ปีที่แล้ว

      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.

  • @LarsRasmussen0405
    @LarsRasmussen0405 ปีที่แล้ว

    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?

    • @LarsRasmussen0405
      @LarsRasmussen0405 ปีที่แล้ว

      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.

    • @eddiedsuza
      @eddiedsuza  ปีที่แล้ว +1

      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

  • @marcoz91
    @marcoz91 2 ปีที่แล้ว +1

    what would you recommend eddie sonoff or conbee?

    • @eddiedsuza
      @eddiedsuza  2 ปีที่แล้ว

      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.

  • @mbam2000
    @mbam2000 2 ปีที่แล้ว

    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.

    • @eddiedsuza
      @eddiedsuza  2 ปีที่แล้ว +1

      Aha Ofor .... stay tuned for my next video 11/12 to enable USB support for DSM 7. Cheers

  • @trongtanle1271
    @trongtanle1271 5 หลายเดือนก่อน

    Can you install device moes (UFO - R11) via zigbee2mqtt into a controller that supports homebridge via homkit?

    • @eddiedsuza
      @eddiedsuza  5 หลายเดือนก่อน

      please use this site to check which devices work with Z2M - zigbee.blakadder.com or www.zigbee2mqtt.io/supported-devices/

  • @ferlavins
    @ferlavins 6 หลายเดือนก่อน

    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 🙏

    • @eddiedsuza
      @eddiedsuza  6 หลายเดือนก่อน

      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

  • @sanjinpepic7933
    @sanjinpepic7933 2 ปีที่แล้ว

    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

    • @eddiedsuza
      @eddiedsuza  2 ปีที่แล้ว

      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

  • @ash.74_1
    @ash.74_1 6 วันที่ผ่านมา

    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

    • @eddiedsuza
      @eddiedsuza  6 วันที่ผ่านมา

      If I am not mistaken - you will need to do a USB pass thru

  • @Valnurat
    @Valnurat ปีที่แล้ว

    Do you need the Sonoff Zigbee Bridge for these things to work?

    • @eddiedsuza
      @eddiedsuza  ปีที่แล้ว

      You can use dongles such as conbee as well.

    • @Valnurat
      @Valnurat ปีที่แล้ว

      @@eddiedsuza I have already bought the sonoff you mentioned, but it’s the E version. 🤷‍♂️

    • @simon057
      @simon057 ปีที่แล้ว

      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

  • @castor4187
    @castor4187 ปีที่แล้ว

    Is there some kind of list available which devices are supported ?

    • @eddiedsuza
      @eddiedsuza  ปีที่แล้ว

      please use this site zigbee.blakadder.com/

  • @MrDevilSkull
    @MrDevilSkull 3 หลายเดือนก่อน

    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. :(

    • @eddiedsuza
      @eddiedsuza  3 หลายเดือนก่อน

      can you try using the command sudo npm start

  • @MitsosXatz
    @MitsosXatz 2 ปีที่แล้ว

    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?

    • @eddiedsuza
      @eddiedsuza  2 ปีที่แล้ว

      As long as it has a US port - you are good to install along side

  • @marcoz91
    @marcoz91 2 ปีที่แล้ว

    great video eddie!

    • @eddiedsuza
      @eddiedsuza  2 ปีที่แล้ว

      Glad you enjoyed it ! Cheers

  • @supertofu2728
    @supertofu2728 2 ปีที่แล้ว

    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
      @eddiedsuza  2 ปีที่แล้ว

      Please check the Homebridge logs ... And check if the bulb is still available in Z2M frontend. Maybe you'll need to repair

    • @supertofu2728
      @supertofu2728 2 ปีที่แล้ว

      @@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.

  • @xitrumgmail
    @xitrumgmail 2 ปีที่แล้ว

    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.

    • @eddiedsuza
      @eddiedsuza  2 ปีที่แล้ว

      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

  • @bodedon
    @bodedon 2 ปีที่แล้ว +1

    can you help with windows vm install please ?

    • @eddiedsuza
      @eddiedsuza  2 ปีที่แล้ว

      I have tried and tried ... Was having issues to setup the auto start script .... Still looking for a solution. Cheers

  • @mariabelli272
    @mariabelli272 2 ปีที่แล้ว

    Very good!!! Thank you 😊

  • @MrExCat
    @MrExCat ปีที่แล้ว +1

    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.

    • @eddiedsuza
      @eddiedsuza  ปีที่แล้ว +1

      Hello Istvan ... please check the mosquitto.conf and ensure you have the below
      *allow_anonymous true*

    • @MrExCat
      @MrExCat ปีที่แล้ว

      @@eddiedsuza Thank you, but yes, that's included.

    • @eddiedsuza
      @eddiedsuza  ปีที่แล้ว

      @@MrExCat Is the MQTT service running on the same server that Zigbee2MQTT is installed on .... Check the IP address

    • @MrExCat
      @MrExCat ปีที่แล้ว

      @@eddiedsuza I checked and I think it's good. I also tried with localhost, but it still didn't improve. :(

  • @bareldst
    @bareldst 11 หลายเดือนก่อน

    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?

    • @eddiedsuza
      @eddiedsuza  11 หลายเดือนก่อน

      make sure in the configurations yaml you have the below values included
      serial:
      port: /dev/ttyACM0
      adapter: deconz

  • @MarkusSchuster-py8fz
    @MarkusSchuster-py8fz ปีที่แล้ว

    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!

    • @eddiedsuza
      @eddiedsuza  ปีที่แล้ว

      check the configuration.yaml and also the indenting as well

  • @JakeHarrington-r2r
    @JakeHarrington-r2r ปีที่แล้ว

    Hi Eddie, when testing with MQTT explorer it just repeatedly says “disconnected from server” how do I get around this?

    • @eddiedsuza
      @eddiedsuza  ปีที่แล้ว

      Make sure the server that is running MQTT has a reserved IP address

  • @SolEte-l1q
    @SolEte-l1q ปีที่แล้ว

    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

    • @eddiedsuza
      @eddiedsuza  ปีที่แล้ว

      Try rebooting the pi and use this command ls -l /dev/serial/by-id

    • @quynhhoang5679
      @quynhhoang5679 ปีที่แล้ว

      @@eddiedsuzaI'm having the same problem. Tried restarted, tried different usb ports but no luck. any idea?

  • @walberg61
    @walberg61 2 หลายเดือนก่อน

    Ah, i dit have also problems with can not connect, i did :sudo systemctl stop zigbee2mqtt and then sudo start and now it works.

    • @eddiedsuza
      @eddiedsuza  2 หลายเดือนก่อน

      Perfect ! Welcome to the Smart home DIY world. 🍾🍾🍾

  • @joshuahaney1135
    @joshuahaney1135 ปีที่แล้ว

    I don’t see nothing about frontend on mine, and when I do bump start it says error

    • @eddiedsuza
      @eddiedsuza  ปีที่แล้ว

      Please check your configuration yaml file thats where the commands check to start the service

  • @arturc7851
    @arturc7851 2 ปีที่แล้ว

    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" 🙂

    • @eddiedsuza
      @eddiedsuza  2 ปีที่แล้ว

      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

  • @hyperz4106
    @hyperz4106 2 ปีที่แล้ว +1

    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

    • @eddiedsuza
      @eddiedsuza  2 ปีที่แล้ว

      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

    • @e4tmonkieshyt
      @e4tmonkieshyt 2 ปีที่แล้ว

      @@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

    • @eddiedsuza
      @eddiedsuza  2 ปีที่แล้ว

      @@e4tmonkieshyt At what step are you seeing the error.

  • @WoschtkoddelJim
    @WoschtkoddelJim 2 ปีที่แล้ว +1

    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?

    • @eddiedsuza
      @eddiedsuza  2 ปีที่แล้ว

      Hi Jochbart - I used the Linux version that Homebridge comes with. Please try using it or reflash your sd card and redo the process.

    • @WoschtkoddelJim
      @WoschtkoddelJim 2 ปีที่แล้ว

      @@eddiedsuza ah ok thx. I was able now to get it running. Much appreciated

    • @Walstib74
      @Walstib74 2 ปีที่แล้ว

      @@WoschtkoddelJim what was your fix? Running into the same problem.

    • @kidsgoodman3966
      @kidsgoodman3966 2 ปีที่แล้ว +1

      I had to install npm as well as I ran into this on the homebridge os freshly flashed

    • @joeyrosen55
      @joeyrosen55 2 ปีที่แล้ว

      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?

  • @unyy01
    @unyy01 11 หลายเดือนก่อน

    Dear Eddie, is it possible to update the script for Z2B install. I have an error message saying the node version is outdated...
    Sorry.

    • @eddiedsuza
      @eddiedsuza  11 หลายเดือนก่อน

      Yes you can ... Please follow this guide - github.com/homebridge/homebridge/wiki/How-To-Update-Node.js

  • @jasonwinkeljohn2434
    @jasonwinkeljohn2434 หลายเดือนก่อน

    How do I do this with Windows? Getting lost on some of the steps as I dont know how to convert to windows...

    • @eddiedsuza
      @eddiedsuza  หลายเดือนก่อน

      Here's a link to installing on a windows machine www.zigbee2mqtt.io/guide/installation/05_windows.html

  • @TheDalejake
    @TheDalejake 2 ปีที่แล้ว

    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

    • @eddiedsuza
      @eddiedsuza  2 ปีที่แล้ว +1

      Hey Ian - please use this link to update the dev packages www.zigbee2mqtt.io/advanced/more/switch-to-dev-branch.html#linux

    • @TheDalejake
      @TheDalejake 2 ปีที่แล้ว

      @@eddiedsuza thanks Eddie , ended up trashing the whole setup having to start again ,

    • @TheDalejake
      @TheDalejake 2 ปีที่แล้ว

      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

    • @eddiedsuza
      @eddiedsuza  2 ปีที่แล้ว +1

      @@TheDalejake you can ignore the error and have updated the script as well. Thanks for the feedback.

  • @sebastienpetit8795
    @sebastienpetit8795 10 หลายเดือนก่อน

    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

    • @eddiedsuza
      @eddiedsuza  2 หลายเดือนก่อน

      This information needs to be same as the configuration. Yaml

  • @andymuzzo8568
    @andymuzzo8568 ปีที่แล้ว +1

    Are you using the dongle-p or -e?

    • @eddiedsuza
      @eddiedsuza  ปีที่แล้ว +1

      Hey Andy - its the p version

    • @andymuzzo8568
      @andymuzzo8568 ปีที่แล้ว

      @@eddiedsuza awesome. Thanks. Wish me luck getting one. The market is flooded with -e’s

    • @eddiedsuza
      @eddiedsuza  ปีที่แล้ว +1

      @@andymuzzo8568 it should with e as well .. just check the serial id and add that to the config ... And yeah - all the best

    • @andymuzzo8568
      @andymuzzo8568 ปีที่แล้ว

      @@eddiedsuza so it won’t matter if it’s the newer version (e)?

    • @eddiedsuza
      @eddiedsuza  ปีที่แล้ว +1

      @@andymuzzo8568 It doesnt matter ... the command line remains the same

  • @walberg61
    @walberg61 2 หลายเดือนก่อน

    and no frondend, tried it with 8080 and 8082 but then no connection

    • @eddiedsuza
      @eddiedsuza  2 หลายเดือนก่อน

      The port always needs to be the same used in the configuration.yaml

  • @tedbozarth8300
    @tedbozarth8300 2 ปีที่แล้ว +1

    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.

    • @eddiedsuza
      @eddiedsuza  2 ปีที่แล้ว

      Hey Ted - please email me at info@buildasmarthome.org and will support you with the setup

  • @brunocarvalho532
    @brunocarvalho532 2 ปีที่แล้ว

    Hi, does this work with a Raspberry Zero w?
    thanks

    • @eddiedsuza
      @eddiedsuza  2 ปีที่แล้ว

      It should using the USB port

  • @madamada2038
    @madamada2038 2 ปีที่แล้ว

    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?

    • @eddiedsuza
      @eddiedsuza  2 ปีที่แล้ว

      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

    • @madamada2038
      @madamada2038 2 ปีที่แล้ว

      @@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

  • @Henry4390
    @Henry4390 6 หลายเดือนก่อน

    Is there an Update for the Video? It does Not work for me

    • @eddiedsuza
      @eddiedsuza  6 หลายเดือนก่อน +1

      Hey Henry - let me know where you’re seeing the error

    • @Henry4390
      @Henry4390 6 หลายเดือนก่อน

      @@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!

    • @eddiedsuza
      @eddiedsuza  6 หลายเดือนก่อน +1

      @@Henry4390 can you paste the logs here and send pastebin.com .. Attach the link here and will try to help

    • @Henry4390
      @Henry4390 6 หลายเดือนก่อน

      @EddiedSuZa ?

    • @eddiedsuza
      @eddiedsuza  6 หลายเดือนก่อน +1

      @@Henry4390 attach the logs as I mentioned earlier. Without that I can’t help you

  • @dannydigtl
    @dannydigtl 2 ปีที่แล้ว

    It seems your script doesn't pull the dev branch anymore. Is that right?

    • @eddiedsuza
      @eddiedsuza  2 ปีที่แล้ว

      Hey Dan - its now back to the dev branch ... Cheers

  • @calvinleong4102
    @calvinleong4102 2 ปีที่แล้ว

    did you have window version ..... newbie here

    • @eddiedsuza
      @eddiedsuza  2 ปีที่แล้ว

      Hello Calvin .... at the moment i dont have a windows machine to test ....

    • @calvinleong4102
      @calvinleong4102 2 ปีที่แล้ว

      @@eddiedsuza is it same do in the window version ? Just follow same step ?

    • @eddiedsuza
      @eddiedsuza  2 ปีที่แล้ว +1

      @@calvinleong4102 here is the link to the guide www.zigbee2mqtt.io/guide/installation/04_windows.html

    • @calvinleong4102
      @calvinleong4102 2 ปีที่แล้ว

      @@eddiedsuza thank you I will try it

  • @jasonwinkeljohn2434
    @jasonwinkeljohn2434 หลายเดือนก่อน

    How do I do this on windows?

    • @eddiedsuza
      @eddiedsuza  หลายเดือนก่อน

      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

  • @joshuahaney1135
    @joshuahaney1135 ปีที่แล้ว

    I don’t see frontend on mine

    • @eddiedsuza
      @eddiedsuza  ปีที่แล้ว

      Please check the IP and the assign port information in configuration.yaml

  • @crapple5759
    @crapple5759 2 ปีที่แล้ว

    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
      @eddiedsuza  2 ปีที่แล้ว

      Please check if the Homebridge-z2m plugin has all the information like the ip address of MQTT ... please revisit the plugin configuration.

    • @crapple5759
      @crapple5759 2 ปีที่แล้ว

      @@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.

    • @crapple5759
      @crapple5759 2 ปีที่แล้ว

      Well, I wrote too soon. Now HomeKit won't acknowledge ANY of my z2m shared devices.

    • @eddiedsuza
      @eddiedsuza  2 ปีที่แล้ว

      @@crapple5759 Has your issued fixed ?

  • @thisisknutsson
    @thisisknutsson ปีที่แล้ว

    I cannot Grant permissions. says Invalid user

    • @eddiedsuza
      @eddiedsuza  ปีที่แล้ว

      please use the command *sudo*

  • @adityanihlani8804
    @adityanihlani8804 ปีที่แล้ว

    This is incredibly complex for a noob who is just starting out like me.

    • @eddiedsuza
      @eddiedsuza  ปีที่แล้ว +1

      Aditya ... I have a video coming up to setup a zigbee smart home with no line of code ... Stay Tuned

  • @walberg61
    @walberg61 2 หลายเดือนก่อน

    aaaarhgh, for ssh you need password but that is i think password of the pi, not password of the homebridge

    • @eddiedsuza
      @eddiedsuza  2 หลายเดือนก่อน

      It’s *raspberry*

    • @walberg61
      @walberg61 2 หลายเดือนก่อน

      @@eddiedsuza yes the first time, but when trying sudo chown -R pi:pi /opt/zigbee2mqtt01~ then it wil not do in again with raspberry

  • @ckeilah
    @ckeilah 2 ปีที่แล้ว +1

    Will Matter obviate all of this?! 🤦🏻‍♂️

    • @eddiedsuza
      @eddiedsuza  2 ปีที่แล้ว

      Not at all ..... You will still need these platforms to support your legacy smart home products

  • @michal5542
    @michal5542 ปีที่แล้ว

    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!

    • @eddiedsuza
      @eddiedsuza  ปีที่แล้ว +1

      You are right ... Please check out my updated video in setting Z2M

    • @michal5542
      @michal5542 ปีที่แล้ว

      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.

    • @michal5542
      @michal5542 ปีที่แล้ว

      You mean this video?
      th-cam.com/video/kykvC2cGlNQ/w-d-xo.html

  • @JuliusCaesar-rg1xt
    @JuliusCaesar-rg1xt ปีที่แล้ว +1

    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
      @eddiedsuza  ปีที่แล้ว

      In the configuration.yaml - instead of using *ttyUSB0* use this *ttyACM0*

    • @8ung1irrer
      @8ung1irrer ปีที่แล้ว

      @@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 (

    • @luiscarlosgzaa
      @luiscarlosgzaa ปีที่แล้ว

      Hello, were you able ti fix this error? I'm having the same problem as you. Already have ttyACM0 in the configuration.yaml

    • @eddiedsuza
      @eddiedsuza  ปีที่แล้ว

      @@luiscarlosgzaa please paste logs or paste the error lines

  • @darrensuan
    @darrensuan 2 หลายเดือนก่อน

    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?

    • @eddiedsuza
      @eddiedsuza  หลายเดือนก่อน

      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

  • @chuanhuatlim8720
    @chuanhuatlim8720 ปีที่แล้ว

    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

    • @eddiedsuza
      @eddiedsuza  ปีที่แล้ว

      what is it the error you see when you run *npm start*
      Does it connect to the dongle & mqtt service ?

    • @chuanhuatlim8720
      @chuanhuatlim8720 ปีที่แล้ว

      @@eddiedsuza Hi, mqtt service is running, but dongle cannot be connected. (USB not found)

  • @sheuves
    @sheuves 2 ปีที่แล้ว +1

    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

    • @eddiedsuza
      @eddiedsuza  2 ปีที่แล้ว

      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

    • @sheuves
      @sheuves 2 ปีที่แล้ว

      @@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!

    • @eddiedsuza
      @eddiedsuza  2 ปีที่แล้ว

      @@sheuves sure you can reach me via my eddie@buildasmarthome.org

  • @sangjunpark8422
    @sangjunpark8422 11 หลายเดือนก่อน

    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.

    • @eddiedsuza
      @eddiedsuza  11 หลายเดือนก่อน

      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

  • @crapple5759
    @crapple5759 2 ปีที่แล้ว +1

    It's never a good idea to HARDCODE user:group ids nor IP addresses. FACEPALM

    • @eddiedsuza
      @eddiedsuza  2 ปีที่แล้ว

      Well only the IP address is hard coded / reserved for the Hub

    • @crapple5759
      @crapple5759 2 ปีที่แล้ว

      @@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

    • @eddiedsuza
      @eddiedsuza  2 ปีที่แล้ว

      @@crapple5759 😇

  • @joseph_dark88
    @joseph_dark88 ปีที่แล้ว

    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?

    • @eddiedsuza
      @eddiedsuza  ปีที่แล้ว

      please type *cd* where you will be taken to the root folder and then try the command again

  • @kevanhee1
    @kevanhee1 ปีที่แล้ว +1

    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)

    • @eddiedsuza
      @eddiedsuza  ปีที่แล้ว

      please check configuration.yaml seems like the tty information is different