Raspberry Pi 5 - Finally Built A POWERFUL Smart Home Hub for HomeKit

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
so finally I got my hand on a Raspberry Pi 5 and if you're an apple home kid Enthusiast like me you're going to love this cuz we are going to build a powerful smart home hub and take your hom kit experience to the next level with the seven wonders of building a DIY smart home hello and welcome to my channel which is all about building an affordable DIY smart home that supports the Apple homekit ecosystem and I have done tons of tutorial videos that you can literally use right now so pretty please to take a look and don't fory to like share and subscribe to always follow along now the last time I did a build a smart home hub for Apple homekit was way back in July 2022 and since the release of that video two major things happened one Raspberry Pi had released a new single board computer called the pi 5 which is a tiny computer that you can still hold in your hand super powerful and packs a punch the second major thing is that the pios moved away from 32-bit supporting system to 64-bit operating system which meant applications also needed to support it and due to which there were some failures with some app installs so it was high time to update that video as well as do a couple of things differently the first change is building the entire smart home hub on Raspberry Pi OS light rather than pre- flashing it with homebridge this helps in having a stable setup the second change is install all of the apps using doer containers which allows you to add or remove any apps when needed the Third changes that system would always support 64bit apps last but not the least the fourth most important change is that towards the end of the video I also have a surprise app installed which will give you the seven wonders of building a DIY smart home now what do you get with this smart home build a locally controlled small form factor Hub with hardware specs that will last for at least 5 years or more allows to add devices that Apple doesn't officially support multi Network protocol that allows to add devices from a large portfolio dedicated homekit secure video platform easy management and auto update of applications plus comes with a easy shortcuts app to access all of them and most importantly remember the surprise app installed I will show you how the same Hardware can unlock a lot more possibilities for your smart home and also keeps you within budget so to p this help together we will be using a Raspberry Pi 5 with 8GB Ram with the official case as well as the official power brick you can still use a pi4 with 4GB Ram as well class 10 64GB micro SD card which is a minimum then to enable zigby protocol we will be using a son of zigby dongle you can also use a conb to stick a USB cable extension to avoid any radio interference with the zigp dongle now I'm I've broken down the video into eight parts with their timestamps in the description and somewhere towards the end there's the seven Wonder app that we will install to push your DIY smart home to the next level this is definitely going to be an interesting build so let's begin the tutorial so the first thing we need to do is Flash the micro SD card with raspberry pios light now to do that you will need to go ahead and download the pi OS imager and also I've left a link in the description that has a video for thep top eight apps you will need whilst you're building your DIY smart home so you want to check out that as well so go ahead and download uh this uh software I've also left a link in the description and while that is going on you need to get a Micro SD card adapter insert in the micro SD card and then you want to insert into your computer or into your SD card reader and then we can go ahead and Flash the software so once it's downloaded what we're going to do is we're going to open up the application and then you want to choose device select Raspberry Pi 5 and then you want to choose OS you want to click on Raspberry Pi OS other and then you want to go and click on Raspberry Pi OS light 64bit not the full version just the light version and then from the you want to select your storage and then you want to click on next now here's the important part you need to click on edit settings and then you want to give it a host name so we're going to call this smart home hub and then you want to set the user username and password I'm going to use Pi the default and raspberry as the password and then you want to set local settings depending on where you live and then under Services you want to check and enable SSH so this will allow us to run that magical script under options nothing to do click on General check the settings and click on Save and then you want to click on yes click on yes to erase all of the contents put in your pass password and then it will write on the micro SD card give it a couple of minutes till the process is done once it's written is also going to verify all of the data on that SD card and once that's completed all you have to do now is eject the micro SD card and then you're going to take Raspberry Pi 5 insert in the RAS the SD card and then from that you want to connect the USB dongle the zigby adapter together with the zigby adapter and then from there you want to connect the network cable and then from there you want to power up the device once it's completed you will see the network lights flashing up now let's go ahead and access the Raspberry Pi so to access the Raspberry Pi and to run the magical script let's go ahead and open up terminal now if you're using Windows PC you can also go ahead and download putty so let's go ahead and SSH onto the device now just in case before SSH you don't know what's the IP address has assigned I've got a very uh easy app if you're using a map called land scan so let's go ahead and open that and if you're using Windows you can go ahead and download the advanced ip scanner and this is again in that same video the eight awesome apps you'll need if you're building a DIY smartone so all I'm going to do is click on start and then you will see that it's already on my network so it uh 192.168.1.0 now once you identify the IP address what you're going to do is you're going to access your router page in my case I'll be I'm using a UniFi Network under devices underwired it's right here 190 I'm going and giving it a fixed IP address so every time this device restarts is always going to use the same IP address which in turn allows you to always access all of the apps without any changes so once that is done we are going to go now into terminal and we're going to type SSH pi and the IP address hit enter now if you see this uh error don't worry all you have to type is open copy the link above and you're going to see this when you're using the same Raspberry Pi and you flash it with another SD card so hit enter all you have to do is delete all of the entries with that IP address 1.90 close and you're going to SSH again now you can type yes and put in the password that we had created while before flashing the SD card so in this case is raspberry and now we are in the uh Raspberry Pi 5 now from here we're going to execute that magical script so first the contents uh it's it's it's the same but I've just updated a little bit we're going to do a complete system update then from there I'm also going and installing nodejs just in case you install something out of Docker container so you have the latest nodejs we're go going to go ahead and install Docker from there we're going to install forer watt mqtt then we will go into zigby to mqtt from the scripted heimel so this is the 64bit is definitely going to work then we will go ahead and install homebridge and towards the end I've also given the order we're going to be configuring all of this so let's go ahead and copy the link to pull the script and run the installer now don't worry I have left this in the description as well so it takes around about 10 to 15 minutes depending on your internet connection so just pay attention I'll be scrolling down whenever there's a change in the next app install so I'm going to go right now and hit enter so the system upgrade has been completed it's going ahead and installing node.js so as is the recording of this video it's going to go ahead and install version 20 uh 20.2.21 confirms that Docker has been s set up successfully fora has been installed now we'll go ahead and install Watch Tower to automatically install update the apps and then we go into mqt once it's completed zigby to mqtt uh right now it also copies the basic configuration. yml uh to the Raspberry Pi 5 we'll go and update that once we get into that configuration you will see an error with zb2 mqt this is because the configuration of yml file wasn't configured so it's going to provide an error that's no problem we're going to configure that uh later in the video and then now it's going ahead and downloading scripted now this is going to be the longest part if I'm not mistaken the file size is around about 2.1 GB so you got to be patient at this end and now next is going to go ahead and install heimel this is the shortcuts app uh web app that you can access all of your applications and this supports 64-bit now last but not the least uh we're going to go go ahead and install homebridge now the only thing with homebridge is once the docker container has been installed it Auto automatically goes ahead and starts its service I will show you how to stop it and then it will uh go into the reboot mode and once the dock image installed it will go ahead and automatically start the services so let it start the services don't do anything until it will tell you show you the QR code so right now home bridge is already started but we can't do much we need to restart the Raspberry Pi so all you're going to do is hold control tap on C it's going to stop all of the services and then it will reboot the the server so with that being said it's now rebooting the server and also as I mentioned you'll see all of the applications in what sequence we will be configuring them so additionally I've also gone ahead and also created a little notepad so we're going to be using this as well so give it a couple of seconds and then we will start configuring the seven wonders of a DIY smart home so let's go ahead and configure the first application so this is poro so we're going to use admin and then I'm just going to choose my own password because sometimes it has a problem of remembering it and create user and then you want to go and click on get started and right now you will see all of the containers that have been installed together with Porta I'm just going to talk about quickly about Watchtower uh it automatically updates the applications in certain time intervals this cannot be configured but you'll know if a new image has been downloaded so right now we got seven containers seven images once a new image is downloaded you will see a yellow button over here called unus so that's being that can be deleted and the image has been updated you cannot update the services so this is the first Wonder we've got protainer up and running now the next wonder is we're going to go ahead and test if the mqtt service is working so right here it says mqtt servic is working so I'm just going to open up my app called mqtt Explorer and I'm going to put in the IP address since there's no username and password I'm going to leave it as it is and I'm going to click on connect so we see that the mqtt service is working now from here let's go ahead and configure zigby to mqtt now with zigby to mqtt you can see that the service has stopped because we need to go and complete some configuration so the first thing we want to do is change directory to CD data that's where we had downloaded the configur ation yml and then we're going to go ahead and access the zigby to mqtt web page so we're just going to go on the guide getting started we're going to go to Linx and we going just go ahead and copy this first command and we're going to paste it under the root directory and this is where my son zigby so if you're using a kb2 stake or any other zigby coordinator we will need this value so mine ends with USB Z so let's go back ahead and change directly to CD data so we're going to type this Pudo Nano configuration. yaml and then right here we're going to go and update the server and then we know that the port is USB Z if your is a Decon it would be ACM so I'm just going to go ahead and delete the adapter information and then front end we're going to keep it at 8081 and then the IP address 90 I left at 8081 because that's commonly used if you already have that Port enabled for some of your web service you can change it right here to whatever you need and then lastly I'm going to generate the keys once this is completed going to type your CR X Y to save enter now with that being said there's one more service we need update so we're going to copy this information TTY USB Z go back to portainer click on zigby to mqt click on duplicate edit and we're going to scroll all the way down and go under runtime and resources and over here you want to go ahead and update this inform inform if you don't do it you're going to see a error called 503 if I'm not mistaken going to paste it here and then we're going to go ahead now and click on deploy the container and click on replace give it a couple of seconds for the service to start and then what we're going to do is we're going to click here on the logs so we know that zb2 mqtt has started at this port so I'm just going to go to the web link and here you are so we have the zb2 mqtt service already up and running the only thing you want to do is make sure permit join is enabled and aail avability is also selected now I've gone ahead and created a lot of zb2 mqt videos you can go now and start pairing your devices once you've completed pairing make sure you disable the permit joints go ahead and configure the fourth one of the world is scripted the service is already running click on show details and click on visit website now you have to remember for scripted you want to make sure the web link starts with https if you don't have the letter s it's not going you're going to get an error and the port is 10443 so we're going to give it a simple username and password another thing I recommend you don't need to give complicated username and passwords I typically use admin admin because it runs locally on my network you just want to make sure your Wi-Fi password and network passwords are alpha numeric and log in you want to click on Management console and then quickly you want to go ahead and install a couple of plugins so the first one would be homekit and the next one would be open CV again if you have UniFi you can go ahead and uh add in that plugin I've gone ahead and done uh videos as well from here you can access them I've also left the link in the description and go ahead and configure any one of them let's go ahead and in configure homebridge so if you have a backup you can restore from backup if not you can go ahead and click on get started again simple username and passwords open dashboard so with a home Bridge service up and running let's go ahead and update the plugin and then once this is completed we will go ahead and update node restart homebridge all right with homebridge service restarted we're going to go ahead now and update node to do that click on the three dots go to terminal within the doize container you can update node within the container so super easy all you have to do is copy this and you're going to hit paste and hit enter now for the changes to take effect we're going to go back to painer containers and we're going to highlight home bridge and we're just going to click on restart start now with the container successfully restarted let's go back to home Bridge go back to status you'll see that the nodejs version has been updated and the next thing we want to do is we want to bring in all of the zb2 mqd devices so let's look for z2m enter let install this verified version hit install and to configure super easy click on plugin install zb2 mqtt Local Host because it's running on the same device the mqtt service and then I just typically go and cancel out all of this and then you want to click on Save no other configuration restart home Bridge let's go to status so now you'll see that zb2 mqtt has been connected to the Local Host you'll get a connection success now whatever devices you've added into zigby to mqt they will show up under accessories so right now all you have to do is scan this QR code and it will show up into Apple hom kit and I've got a fantastic playlist to add in other devices other brands so you can see them and add them accordingly now from here let's go ahead and configure the sixth one of the world which is heimel this is a basically a web shortcut application so all of the applications have been installed one of the difficult point is remembering all the IP addresses and accessing them this one is quite simple you can even add in web addresses so let's go ahead and add in our first application so in this case I'm going to click on application type and I'm going to look for home bridge and then I want to get the URL so I'm just going to go here contrl C paste and then I can also go ahead and enable the auto login for feature so I'll add in the URL and add in the username and password test you should see has successfully communicated close save so now hind will pull in the temperature in the ram so if you click on it can add this I'm just going to go ahead and add in a couple more go ahead and add in Porta and then again this is another way I can enable the auto login so right now you can also see the information for the containers now last but not the least we going to add in script now script is a little bit different it's a web app because it's not been officially added so just going to copy the link add in the link save it so right now you've got the four apps installed so you can go ahead and add in more applications more websites into heimel the only website you're going to bookmark is heimel and automatically it loads in the applications together if any services are running onto them and finally the Seventh Wonder of building ay smart home and you've seen me talk about it I've done a video All About mentioning it in my smart home journey and it's home assistant now just in case you started with home Bridge you've played with along with it you're really comfortable and you started to flirt with the idea of looking into home assistant so in this video I will show you on how to add in that Seventh Wonder so that if you're thinking about it it's there on the same system you can play around and once you're comfortable you're ready to move on you can wipe out this Raspberry Pi 5 install home assistant and you can use a downloaded backup and restore from it so it's an easy way of doing things it won't be applied for zigby to zigby devices you'll need to repair everything but this will give you the opportunity to start flirting with home assistant so what we're going to do is we're going to go ahead and access terminal and I'm just going to give you the commands instead of building from portum uh if you are very well wor with painer help the community put it down in the comment section and people can copy from there so what I'm going to do is I'm going to type CD go out to the Parent Directory and I'm just going to copy the command don't worry I'm going to leave it in the description I'm going to paste it so here if you have a another zigby coordinator you can add it over here and that's by running the previous command that we have have above here and you just update that device location but since we're not doing that we're just going to have a clean install home assistant without any additional devices because primary you got zb2 mqtt working with homebridge and just in case you can move everything officially into home assistant remember you're flirting with the idea and here's an opportunity if not you already got a smart home hub running but I still feel you will flirt with home assistant so with this command delete the uh device location and all you have to do right now is hit enter and just like that home assistant is already installed so let's go ahead and check painer we click on this eight containers and we see home assistant already installed so let's get ready to float with it going to click there you have it we've got a home assistant already installed let's go ahead and create my smart home give it a name again if I were you I would come to this install a later once you're a little bit more comfortable if you have the plan to flirt around with it just let it be and then it's up to you whether you want to provide any more information don't do anything so we click on finish if you go to notification it automatically detects all of the devices over your network you go to settings one of the things we want to do is you want to go and uh enable the Advan mode right now I'm working to create a playlist of Home assist on how I started my journey but we're going to leave that to another day however you've got the seven Wonder up and running for you and there you have it our Raspberry Pi 5 is now a powerful smart home hub compatible with apple homekit and has the seven wonders of building a DIY smart home you can control all of your devices seamlessly from your iPhone or iPad and trust me the possibilities are endless if you found this video helpful don't forget to give a thumbs up and subscribe to the channel for more awesome DIY tutorials as always thanks for watching I'll see you in the next one cheers
Info
Channel: Eddie dSuZa
Views: 8,398
Rating: undefined out of 5
Keywords: raspberry pi 5, smart home hub, smart home hub zigbee, homebridge raspberry pi, homebridge homekit, homebridge setup, homekit ideas, do i need a smart home hub, zigbee homekit, zigbee2mqtt, scrypted homekit, smart home hub raspberry pi, homekit secure video, home automation, raspberry pi projects, smart home hub 2024, smart home hub setup, raspberry pi, smart home automation, homekit smart home, portainer docker, Docker, docker tutorial for beginners, Home assistant homekit
Id: L_94IUH_N20
Channel Id: undefined
Length: 22min 17sec (1337 seconds)
Published: Sun Apr 14 2024
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.