Home Assistant on Raspberry PI 5 quick start guide with automation tutorial

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hi welcome back to a new video in this video we're going to do a quick start guide on how to get home assistant up and running on Ras Pi 5 so in this video we're going to go over how to get the latest version of Home assistant from the GitHub page how to put that onto an SD card and then how to complete the basic setup of Home assistant we're also going to add a couple of devices to home assistant just to demonstrate how it works so the items I'm going to use today are a Raspberry Pi 5 a USBC power supply a HDMI cable for the Raspberry Pi an ethernet cable a 32 gig micro SD card and micro SD card adapter for our computer so with all that ready let's get started usually to get home assistant running you can do it in the raspber pi imager but as of recording this video it's not available in here as you can see we've got Rasberry Pi 5 selected and if we click choose OS and then other specific purpose OS and then home assistance you can see there isn't a home assistant option so what we need to do is we need to download the home assistant image for rrey 5 directly from the home assistant project GitHub page so if we go back to our browser and then go to this page here so this is the GitHub page for home assistant project so we need to download the image from here so if we scroll down on this page we can get to releases and if we click on releases we'll be taken to the latest release of Home assistant so if we scroll down a little we'll get to the assets here and we just need to click on show all and then scroll down a little further and we will find here home assistant for Raspberry Pi 5 so this is a file that we need so we click on that to start our download and we'll just wait for that to complete so with our download complete we should be able to go to our downloads folder and see that we've got the home assistant image downloaded so it's ready to be installed on our micro SD card so with the image downloaded we're going to use the Raspberry Pi imager to write this image onto our SD card so the first thing we need to do is connect our micro SD card to a computer so we'll do that now so with a Micro SD card connected to the PC we're going to click choose OS and then click on use C custom so we'll select that and then we should be able to locate our home assistant image which is here in our downloads folder so we'll select that and choose open then we need to click on choose storage and then select our micro SD card and click next so we're not going to apply any OS customizations so we're going to select no and at this point when we click yes everything on your micr SD card will be erased so just make sure there's nothing on the card that you need because it's all going to be permanent deleted click yes to start the process and we'll skip forward until that's complete once the image is been written to our micro SD card we should get this message pop up and we can click continue here then we can remove the micro SD card from the PC see and put it into our Raspberry Pi so we're now looking at the console of the Raspberry Pi and the good news is there's nothing much to actually do at the console we're just going to make sure it boots up and then we'll go back to our PC after a few minutes you should see a screen that looks like this notice it does tell you the IP address that your R pie got and the address that you can connect to to now start managing your home assistant so now we can go back to the PC and complete the setup so we're now back at the PC and in our web browser we need to type the address home assistant. local colon 8123 and press enter and it should load the home assistant page so as you can see home assistant is currently still in the startup phase so we'll skip the video forward until that's complete if you don't get this page you might have to wait a couple couple of minutes and if that still doesn't work then you might have to use the IP address instead of home assistant. looc so in this case you would type your IP address for example 1 192.168.1 do30 colon 8123 and press enter so after a few minutes the startup process is finished and we're now ready to set up our new home assistant all we need to do is click on create my smart home and then we need to create a user account so type your name in here and notice that it already fills in the username but you can always over type that and then create a password and confirm that and click create account so now you want to set a location and it will always default to Amsterdam so don't worry if that's not where you live you can search for your address here I'm going to search for Trafalga Square for example and select that one and click next I don't actually live at trala square but it's just an example now you can choose to share analytics with home assistant but for the purpose of this video I'm not going to do that so I'm just going to click next and the good news is when home assistant first sets up it will identify any devices that it can find so you can see it's already found a couple here these two are Bluetooth devices which is because we're running this on a Raspberry Pi 5 and the other two are devices on my network and we can set these up later in the settings so we'll click finish and we'll be logged in to our new dashboard so notice the only thing on our dashboard board at the minute is a temperature so the first thing and the most important thing we want to do is to configure some devices so to do that we can scroll down and choose settings and then click on devices and services and we can see the devices that have been discovered so this is a home Bridge Appliance of a couple of thermostats attached so I want to configure this you'll probably have other devices here and you can click configure on those to to configure them accordingly for yourself but for the purpose of this video I'm going to click on homebridge and click configure so on this prompt all we need to do is enter the eight-digit code you'll find on your homekit device and click submit and then home assistant will discover the device and anything attached to it and add it to your home assistant and our home assistant has discovered these devices on my home bridge and I can now set them up so as you can see I've got a living room thermostat so I can select where I want that to be so I'm going to say that's the living room the kitchen light and the kitchen thermostat also in the kitchen and the living room lights in the living room and click finish and now they've been added to my home assistant so if I go back to my dashboard overview you'll see I've now got a column for kitchen a column for living room and we can see the temperature from the thermostat and the status of the lights living room light is currently on and the kitchen light currently off if we click here we can turn the kitchen light on and we can also turn it back off again and we can also change the temperature of the thermostat or turn it down a little bit or we can increase and that's how you set up devices now depending on the type of devices you configure for home assistant will depend on the type of things you see here so for instance if you configure a camera you'll see a preview of the camera so the next great feature of Home assistant is configuring automations now basically automations are when something happens it can trigger another event and these are a really great way to get even more functionality out of your home assistant so let's now create an example of automation just so you can see how it works so let's go to settings and then automations and then want to click create Automation and we're going to create a new automation so the first thing we want to do is add a trigger this is the when part of the automation so I'll go to add trigger and I want to trigger device and the device I'm going to choose is let's have a look the kitchen light for example and I'm going to select when the kitchen light is turned on so this will trigger this automation when the kitchen light is turned on the next thing I'm going to do is scroll down into the do section so when the kitchen light is turned on I'm going to add an action and I want to add a device action and I'm going to say when the kitchen light is turned on I want the living room light to let's have turn off so when the kitchen light turns on I want the living room light to turn off I'm going to save that and I'm going to give it a name and then click on save so it's not a very useful automation but it's just an example of how it works so just to summarize when our kitchen light is turned on do turn off the living room light so if we go back to our dashboard we can now test this automation so as you can see the living room light is currently on and the kitchen light is currently off if we turn the kitchen light on you can see our living room light gets turned off so while that's not the greatest Automation in the world it really does demonstrate how automations work and how great it really is now as I said it was a quick start guide and there are much more detailed information guide out there on the home assistant website there's many many ation supported in the home assistant and I encourage you to have a look thanks for watching I hope you found this video useful and interesting leave a comment and let me know how you're getting on and some of the things that you've been doing with it I'd be really interested to hear some of them please consider subscribing if you can I'd really appreciate it and I'll see you soon
Info
Channel: LadyTechTalks
Views: 3,082
Rating: undefined out of 5
Keywords:
Id: 9_oKoyE1lY4
Channel Id: undefined
Length: 11min 46sec (706 seconds)
Published: Fri Jan 19 2024
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.