Home Assistant Install on a Raspberry Pi with WiFi 2022

Поделиться
HTML-код
  • Опубликовано: 8 янв 2025

Комментарии • 140

  • @cameron5465
    @cameron5465 2 года назад +6

    Thank you!! No other tutorials were this helpful in getting this working, and the quick explanation of connecting with nmcli was a lifesaver.

  • @dougjohnson6246
    @dougjohnson6246 11 месяцев назад +1

    I have lots to learn but this video helped me at the beginning and just what I needed, thank you

  • @jayjake
    @jayjake Год назад +1

    Thanks man, this was easier than reading all the forums

  • @vasiliyklx450r
    @vasiliyklx450r 9 месяцев назад +1

    Whoa! What a useful solution just in time! Thank you! 👍

    • @BinaryTechLabs
      @BinaryTechLabs  9 месяцев назад

      Glad this video has helped you and so many others! Thanks for taking the time to comment ❤️

  • @HughRapson
    @HughRapson 2 года назад

    Genius. That worked like a treat, following step by step. I've been looking to fix this for days. Thank you.

  • @oldmang9962
    @oldmang9962 Год назад

    My friend you are a star, I thought I was loosing it when trying to install Home Assistant and there didnt seem to be any help to do it on WiFi
    Many thanks

    • @BinaryTechLabs
      @BinaryTechLabs  Год назад

      Thanks for that compliment and it was the reason I did that video!

  • @OBD01
    @OBD01 Год назад

    the nmcli commands were just what I needed. Thank you! 👏🎉

    • @BinaryTechLabs
      @BinaryTechLabs  Год назад

      You're welcome and thanks for your support! ❤️

  • @claudiobaccarelli4347
    @claudiobaccarelli4347 Год назад

    Very informative!! Super helpful and easy to follow. And works!!!

  • @davehug
    @davehug Месяц назад +1

    thanks for the ctl+shift+x thing needed to add wifi

  • @StraightBar
    @StraightBar 2 года назад +1

    Thank You, very easy going and comprehensive video, I got all what I needed!

    • @BinaryTechLabs
      @BinaryTechLabs  2 года назад

      You are welcome, thanks for that feedback!

  • @nieeeric
    @nieeeric 10 месяцев назад +1

    thank you it works like a charm 🙂

  • @kherhitesh
    @kherhitesh Год назад +1

    GREAT VIDEO😍

  • @MajinCyril
    @MajinCyril 3 месяца назад

    Thank you, your video really helped me a lot, I wanted to switch from an SD card to SSD by restoring a backup, impossible to switch from RJ45 to WIFI from the Home assistant interface, fortunately I had a micro HDMI cable for me connect and do it in command mode, THANK YOU

  • @fernandoandrade6426
    @fernandoandrade6426 2 года назад

    Thanks!! it worked for me like a charm!

  • @patriciavello4984
    @patriciavello4984 2 года назад

    Great video! very easy to follow and fixed the problem.

  • @nomartin2803
    @nomartin2803 Год назад

    Thanks a for your video! Helps me a LOT!

  • @christianwillsea7823
    @christianwillsea7823 6 месяцев назад +1

    nice, why did we need to put in the ssid and pw in the txt file and then re-enter it again on the cli?

    • @BinaryTechLabs
      @BinaryTechLabs  6 месяцев назад

      I'm a creature of habit, you probably don't have to, experiment and get back to us!

  • @marcio.andrade
    @marcio.andrade 2 года назад

    Nice! saved me. Thanks.

  • @ernestterkuile6894
    @ernestterkuile6894 Год назад +1

    Thanks! Indeed nearly all Home assistant video's expect an ethernet connection. This seems like enough info for me. You might have heard this before but the resolution of your video, while enough for most of your film, becomes really too low when displaying the command line input and output. A solution would have been to zoom in on the part where you were typing.

    • @BinaryTechLabs
      @BinaryTechLabs  Год назад

      Thank you for your comment. It was my very first video and have since increased my resolution and zooming and adding commands to the screen in my later ones. Maybe I should redo this one 😁

  • @locoid1
    @locoid1 Год назад +1

    Great video and content! But can I know the name of the music in the video?

    • @BinaryTechLabs
      @BinaryTechLabs  Год назад +1

      Thanks, I don't recall the name, but it was in the music library in RUclips's studio section

  • @davidquirk8097
    @davidquirk8097 4 месяца назад

    Great video, well explained. One question: can I do this after I've setup HA? I've got HA running but realised, after I'd done all the installation of zigbee2mqtt (and paired all my devices) that HA has opted to not have wifi or ssh access. I'm happy to shut the system down, remove the SD card and put it into card onto a linux machine.

    • @BinaryTechLabs
      @BinaryTechLabs  4 месяца назад

      Great question, and yes you can do this at anytime, and since you have a working instance of HA you can already do this, just install the terminal app and then you can use the nmcli commands and connect

  • @maksymivanov7360
    @maksymivanov7360 Год назад

    Great video! Thanks! I've got one question: later if I want to connect to a different SSID, where do I find (on SD card) the file to modify the config?

    • @BinaryTechLabs
      @BinaryTechLabs  Год назад

      Great question. That file disappeared when you booted up, so if you want or need to change your SSID, you'll have to login to the terminal either physically on the device running home assistant or install the terminal addon and do it from there.
      In either case, you'll need to use the "nmcli" commands. You can use my video for reference or search nmcli which is network manager.

  • @jmpcrx
    @jmpcrx Год назад

    Very good explanation thanks...

  • @malnealon
    @malnealon 2 года назад

    Great video, thanks.

  • @largo326
    @largo326 2 года назад

    Nice video, very helpful. Thanks!

  • @KevinHoogdorp
    @KevinHoogdorp 2 года назад

    Thank you for the clear explanation!

    • @BinaryTechLabs
      @BinaryTechLabs  2 года назад

      Thank you for taking the time to tell me!

  • @MichaelHReed
    @MichaelHReed Год назад

    Really helpful, thanks very much.

    • @BinaryTechLabs
      @BinaryTechLabs  Год назад

      Thanks for the support and comment, really appreciated. ❤️

  • @jmoon8843
    @jmoon8843 2 года назад

    Thank you very much! You helped me a lot!

    • @BinaryTechLabs
      @BinaryTechLabs  2 года назад

      You are very welcome, glad that I can help

  • @joebob3712
    @joebob3712 2 года назад

    You're amazing, thank you so much.

    • @BinaryTechLabs
      @BinaryTechLabs  2 года назад

      Thank you for your kind words and support!

  • @ravnOne65
    @ravnOne65 Год назад

    you saved my day Than😍k you

  • @aaronhmk3901
    @aaronhmk3901 Год назад

    It works thaks alot

  • @bierba
    @bierba 2 года назад +1

    Hey, thanks for the video. You have a nice voice. One question:
    it didn't automatically connect to the wifi so I did it manually like you explained in the video, but it gave an error (Connection activation failed (5) IP configuration could not be reserved)
    Can't seem to figure out why.

    • @BinaryTechLabs
      @BinaryTechLabs  2 года назад +1

      Thanks for the compliment. ❤️
      You can check that wifi is enabled using the command "nmcli radio wifi" that will tell you if wifi is enabled. If it is disabled use "nmcli radio wifi on"
      Then with this command "nmcli device wifi list" or "nmcli dev wifi list" if you want to save a few keys. This will list the wifi networks that your wifi device sees.
      If you don't see any wifi networks, chances are your wifi device is not supported by home assistant, that is if you are not using a raspberry pi.
      The only other thing that I can think of is if you are using a static ip address and the address you supplied is used by another device on your network or miss configured in your my-network file.
      I hope this helps, let me know.

    • @bierba
      @bierba 2 года назад +1

      @@BinaryTechLabs It seems to see the network just fine, guess I'll check my config again then. Thanks :)

    • @BinaryTechLabs
      @BinaryTechLabs  2 года назад +1

      You will have to add the folders and file again, as each time it boots off the SD card, it erases those files, so don't be surprised if you can't find them when you remount your SD card.

    • @bierba
      @bierba 2 года назад +1

      @@BinaryTechLabs Rebooting with a fresh network config seems to have done the trick. Thanks👍

  • @sysghost
    @sysghost 2 года назад +1

    Would it be possible to use the wifi as an access point so one can connect wifi-based stuff such as bulbs and sensors to the pi?
    Want to isolate everything related to home assistant on its own wireless network.

    • @BinaryTechLabs
      @BinaryTechLabs  2 года назад

      No, but you can use esp32's and ESPHome to do that

  • @MayankJairaj
    @MayankJairaj 2 года назад

    Thanks got it working on the zero!

    • @BinaryTechLabs
      @BinaryTechLabs  2 года назад

      Well I'm glad you did, sorry RUclips comments are weird sometimes, I can see the original comment, but if I try to click on it, it says it's not available.

  • @ericthoenes
    @ericthoenes 2 года назад

    Thank you very much

  • @Tandy8809
    @Tandy8809 Год назад

    I know this video is a few months old ( and is GREAT ) but when I flash the sd there is no /hassos-boot/ just data and overlay. Any idea where to find the /hassos-boot/ or there a update to how to do this? Thanks Again for a great video.

    • @BinaryTechLabs
      @BinaryTechLabs  Год назад

      That partition should be there. If it is not, maybe the SD card is defective. Or something with how you write to it. Are you checking the SD card on a windows or Linux system?

    • @Tandy8809
      @Tandy8809 Год назад

      @@BinaryTechLabs
      Thanks for the reply.
      I am checking it on a Linux computer. I think it might be because I 'm using the current up to date HA program and you used a slightly older version.
      Any ideas?
      Thanks again

    • @BinaryTechLabs
      @BinaryTechLabs  Год назад

      That's perfect, just follow exactly what I did in the video. Because it's a Microsoft file system, you need to mount the partition like I did in the video

    • @Ispike73
      @Ispike73 Год назад

      @@BinaryTechLabs
      I'm having the same issue. "mount point does not exist." The only thing there is hassos-data/ and hassos-overlay/

    • @BinaryTechLabs
      @BinaryTechLabs  Год назад

      What OS are you using?

  • @valentine9510
    @valentine9510 2 года назад

    Hi, a newbie to HA. I love watching your videos. They are informative and simplified. Keep up the good work.
    I have a question, I have a main router and a sub router downstairs. The sub router is connected to the main router by LAN.
    All my devices downstairs are connected in the sub router.
    Both the main router and sub router has different IP addresses.
    I also have X20 deco mesh wifi upstairs which is also connected to the main router downstairs by LAN cable.
    All my devices upstairs are connected to the X20 deco mesh wifi upstairs.
    How can I link my sub router downstairs and the mesh wifi router upstairs to HA so that all my devices both upstairs and downstairs can connect to HA.
    Presently my HA is running via argon 1 M.2 through LAN from the X20 deco mesh upstair

    • @BinaryTechLabs
      @BinaryTechLabs  2 года назад

      Hello, thank you very much for the kind words!
      Now, as far as network setups go, this starts to get very complicated very quickly. I am assuming you are running a RPi since the comment came in on my RPi video. In order for auto discovery to work on HA on separate subnets, you would need an Mdns broadcast across the subnets for this to work, but you can manually enter the IP addresses of the devices and HA will see them just fine.
      Another option would be to install a USB-network card on the RPi that is connected to the second subnet, allowing HA access to both, and this would work fine.
      This is why a lot of people run hardware capable of using VLANs, which brings you into hardware like UniFi or Mikrotik, for example. HA would be granted "internet access," and all your other devices would sit on the VLAN, where HA could see them and discovery would work.
      Utilizing VLANs is a great way to ensure that your Home Assistant instance can "see" all the devices connected to it and it is also a great way to keep devices from "calling home," keeping your data secure and private.

  • @AtharvaBodhe
    @AtharvaBodhe 11 месяцев назад +1

    what if the network has a username and a password required? What would I do to input the username as well?

    • @BinaryTechLabs
      @BinaryTechLabs  11 месяцев назад

      Hey, that is a great question, I have no idea, I've looked into it and can't find anything, this is where I get the information man.voidlinux.org/nmcli.1
      Maybe text user interface "nmtui-connect" helps as seen here : man.voidlinux.org/nmtui.1
      I am not sure how you get connected to a wifi network like this that uses a captive portal where you have to use a username and password.
      I am really sorry that I can't help, but honestly I'm interested in hearing if you find an answer so it can help others.

  • @nhatbuiuc959
    @nhatbuiuc959 2 года назад

    Thanks!

  • @Deiski76
    @Deiski76 2 года назад

    Thank you so , professional explanation 👍..one question please...does it work with already booted home assistant from SD card and connected to wired internet? Or I have to do with fresh burnd home assistant to SD card?

    • @BinaryTechLabs
      @BinaryTechLabs  2 года назад +1

      Thanks so much. To answer your question, you can connect to WiFi with your current instance, if you don't have a keyboard and monitor plugged in already, just shut your instance down, through the supervisor menus and then connect those items.
      From the cli you can enter those commands "nmcli.... Etc" to connect to your WiFi

    • @Deiski76
      @Deiski76 2 года назад

      @@BinaryTechLabs thank you so much man..without any monitor or keyboard, I've just run the raspberry pi 4 and I was able to access home assistant from my cell phone home wifi..I tip my hat to you

    • @BinaryTechLabs
      @BinaryTechLabs  2 года назад +1

      You are welcome, glad it worked out

  • @kingofl337
    @kingofl337 11 месяцев назад +1

    Just an FYI, on the current version as of 1-24-24 if you know your IP you can connect to the device at :8123 within 30 seconds of boot.

  • @MopH3ad
    @MopH3ad 2 года назад

    on a pi 3 following the guide to the letter a usb wont even boot, i can only boot if done on an sd card, an i supposed to make any other changes to get a pi to boot from usb ?

    • @BinaryTechLabs
      @BinaryTechLabs  2 года назад

      The Raspberry Pi 3 must be booted from an SD card with a configuration option to allow USB boot, in order to change the USB boot bit add "program_usb_boot_mode=1" to the end of the /boot/config.txt file found on your SD card, which will use the OTP (one-time programable) in order to set the USB boot bit, then it will allow USB booting with a compatible USB device

  • @franklindeskov
    @franklindeskov 2 года назад

    Hi time for a new question.
    I enhanced the Wi-Fi signal with an ALFA AWUS036ACH antenna, the setup on my RPI3B+ works fine, but :0) I can no longer connect to the Hotspot access point anymore!
    When I boot the RPI4 with the Home Assistant image and your CONFIG folder is boots up without connecting to the wlan0. The antenna is using wlan1 on the RPI3B+ is that the wlan the configfile referees to, the wlan0 on the RSP3B+ or the wlan0 on the RPB4 (running Homa Assistant)?
    If it is the RSP3B+ can it be set in the CONFIG My-network file?
    Hope you can help again
    Frank

    • @BinaryTechLabs
      @BinaryTechLabs  2 года назад

      This tutorial is only meant for the Raspberry Pi 4. To save you time, it would be easier to hook up a keyboard and monitor to the raspberry pi and use the terminal commands to make sure your WIFi radio is enabled and you can also use terminal commands to setup the WiFi connection. Those are the nmcli commands ie "nmcli device wifi" ....etc

    • @franklindeskov
      @franklindeskov 2 года назад

      @@BinaryTechLabs sorry to disturbe you, just for your info, your fine tutorial works fine on both RPI3B+ and 4

    • @BinaryTechLabs
      @BinaryTechLabs  2 года назад

      Oh that is awesome news, I did not realize that! Thanks for letting me and everyone else know.

  • @InSaiyan-Shinobi
    @InSaiyan-Shinobi 2 года назад +1

    Plz make a vid on how to just turn a laptop into a home assistant rig so I can have it hidden and a clean look like a nuc

    • @BinaryTechLabs
      @BinaryTechLabs  2 года назад

      I will add that to the list of videos to make.
      Thank you for taking time out of your day to watch and interact with the channel.

    • @BinaryTechLabs
      @BinaryTechLabs  2 года назад +1

      Your requested video will be published on March 10th. 😁 Enjoy!

    • @InSaiyan-Shinobi
      @InSaiyan-Shinobi 2 года назад +1

      @@BinaryTechLabs woot subbed and excited for the content coming

  • @craigbannerman
    @craigbannerman 2 года назад

    Is there any reason that you didn't use the 'Configure WiFi' in the Advanced Options? My first time using RaspberryPi Imager application

    • @BinaryTechLabs
      @BinaryTechLabs  2 года назад +1

      Yup, great question though, the reason is that is for raspberry pi OS and can also be used for some Linux OS's. Since home assistant connects to WiFi in a different way, those options in imager won't work.

    • @craigbannerman
      @craigbannerman 2 года назад +1

      @@BinaryTechLabs Makes complete sense! Thank you

    • @BinaryTechLabs
      @BinaryTechLabs  2 года назад

      Yw

    • @GariFFUSA
      @GariFFUSA Год назад

      They had that on older versions of the imager

  • @compubyte2010
    @compubyte2010 2 года назад

    ok. your file starts with id=my-network .. is that supposed to stay that way? or change to match something else? I tried this as described.. it boots but no wireless, and the folder and files are gone when I'm done

    • @BinaryTechLabs
      @BinaryTechLabs  2 года назад +1

      Yea, the "my-network" is a variable, you'd change that to your WiFi's SSID and remember I believe I said in the video, make a copy of these files once you configure them to your specific data, as they get moved off the SD card into the config files of home assistant

    • @bobshort8416
      @bobshort8416 Год назад +1

      Thanks for taking the time to make this video. Hoping I could get a few more pointers. At around 10:47 in the video you did say to change the SSID, but didn’t mention “id=my-network”. Does that id line change? Next, if my network needs a password, after uncommenting, does auth-alg stay “open”? Also, does key-mngt change if my network uses wpa2-psk? Lastly, is there a way to make this persistent (so I don’t need to copy the files after every reboot)? Thanks again.

    • @BinaryTechLabs
      @BinaryTechLabs  Год назад

      Id remains my-network. For a password uncomment the 4 lines and enter your password in the psk area

    • @BinaryTechLabs
      @BinaryTechLabs  Год назад

      The rest can stay the way it is, and no way to make it persistent, just copy the file to your hard drive in case you have to use it again

  • @franklindeskov
    @franklindeskov 2 года назад

    Hi, good video :0) I do however have a problem, I cannot connect to the webpage either way. I can se the IP adresse on the RPI3 when it has booted the HomeAssistent and I can se homeassistent (RPI3) on my mobilephone, it pops up midt way in the boot, but I cannot open the webpage (PC og Mobilephone) and I have other equipment logging in with the same id and password?

    • @BinaryTechLabs
      @BinaryTechLabs  2 года назад

      Are you using the homeassistant:8123? Have you tried to use the ip address instead? It would look something like this, but with your ip address of course.
      Https://10.0.0.245:8123

    • @franklindeskov
      @franklindeskov 2 года назад

      @@BinaryTechLabs That was helpfull :0) I had not understood that I had to put :8123 after :0) but that helped so on with the automation. THX Frank

    • @BinaryTechLabs
      @BinaryTechLabs  2 года назад

      You're very welcome! And welcome to the community

  • @alekline
    @alekline 2 года назад

    Thank you so much for the detailed explanation. I am looking for a way to register multiple Wifi connections here, one for Home and one for School. Do I need to add multiple files to CONFIG/network ? or is it possible to add multiple configurations in one single file? how? Thank you!

    • @BinaryTechLabs
      @BinaryTechLabs  2 года назад

      You are welcome and no it's not possible to have multiple wifi connections. You'll have to go into the command line to make the changes which are
      nmcli device wifi connect Ssid password "YOUR_PASSWORD"

  • @kherhitesh
    @kherhitesh Год назад +1

    how to disable wifi ?

    • @BinaryTechLabs
      @BinaryTechLabs  Год назад

      Use this command in the terminal instead :
      nmcli radio wifi off

  • @llablancheHermineBZH
    @llablancheHermineBZH Год назад +1

    bonjour votre solution ne fonction pas pour moi impossible de me connecte au réseaux wifi

    • @BinaryTechLabs
      @BinaryTechLabs  Год назад

      Bonjour, le français n'est pas ma langue, j'utilise donc un traducteur.
      Nous espérons que ce site Web pourrait aider "developer-old.gnome.org/NetworkManager/stable/nmcli-examples.html"
      Il se peut que l'appareil que vous utilisez soit doté d'un appareil Wi-Fi défectueux ou ne soit pas pris en charge. Vous pouvez répertorier l'état de votre appareil avec cette commande ;
      "statut du périphérique nmcli" en anglais cependant. Vous pouvez également répertorier la page de manuel avec cette commande ;
      "man nmcli" encore une fois en anglais

    • @llablancheHermineBZH
      @llablancheHermineBZH Год назад

      @@BinaryTechLabs home assistant est un os ou un logiciel car après l installation sur un SSD ça démarre et puis ce bloqué sur "ha " et pas de commande pour la suite faut il installer Ubuntu ? Car la sais l'impasse ? Quelle est la bonne installation de home assistant ?
      Me faut-il un autre pc ? Pour terminer l'installation ? Là je suis bloqué

    • @BinaryTechLabs
      @BinaryTechLabs  Год назад

      @13:26 dans la vidéo, c'est là que j'explique comment se connecter et exécuter ces commandes. Home Assistant est un OS et vous avez besoin d'un autre ordinateur pour charger l'adresse web dans le navigateur de votre choix

    • @llablancheHermineBZH
      @llablancheHermineBZH Год назад

      @@BinaryTechLabs ok home assistant pouble car sais pas un os. Sinon il s'installer comme windows

    • @llablancheHermineBZH
      @llablancheHermineBZH Год назад

      @@BinaryTechLabs pas de VM ni docker car compréhension impossible seul les programmeur réseau y arriver 2 mois a installé home assistant et ça fini a la poubelle car pas de réponse réel

  • @blackonyx8595
    @blackonyx8595 2 года назад +2

    Just to mention, that this is going the hard way. In case you have a lan connection, take the regular way to set up HA. Then simply use the regular GUI to set up wlan. It is as easy as expected. When it is up and running, you may plug the lan and go by wifi only. No files to edit.

    • @BinaryTechLabs
      @BinaryTechLabs  2 года назад +2

      Thing is that I didn't have a LAN connection to complete that. This is still good information for anyone who does though!

    • @compubyte2010
      @compubyte2010 2 года назад +4

      @@BinaryTechLabs right.. IF I had a LAN.. I wouldn't be here looking on how to do it over Wifi ..LOL

    • @BinaryTechLabs
      @BinaryTechLabs  2 года назад

      Thanks

  • @mohdnazrinb.mohdyassin9083
    @mohdnazrinb.mohdyassin9083 2 года назад

    I can't follow that command, too small ... mncoi radio ?

  • @rrog3910
    @rrog3910 2 года назад

    hardware wifi???

  • @SukwaMan
    @SukwaMan 2 года назад

    how to disable wifi and bluetooth on home assistant raspberry pi 4

    • @BinaryTechLabs
      @BinaryTechLabs  2 года назад

      If you make a mistake here Home Assistant won’t boot, but you can pull the SD card out and edit it on another computer, there is a Fat32 partition called boot. In there you want to edit the config.txt file and add the following to it:
      dtoverlay=pi3-disable-bt
      github.com/home-assistant/operating-system/tree/dev/Documentation/boards/raspberrypi
      To disable the WiFi, just go into the command line and enter the following commands once you log in:
      nmcli radio wifi off
      developer-old.gnome.org/NetworkManager/stable/nmcli.html
      Hope that helps

  • @oscarneto2811
    @oscarneto2811 11 месяцев назад +1

    You want teach or just do?

    • @BinaryTechLabs
      @BinaryTechLabs  11 месяцев назад

      Thanks for your comment, could you please expand on what you have in mind or are asking