02 September, 2019

Setting up Home Assistant

What is Home Assistant?

"Open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server." - https://www.home-assistant.io

I like to think of Home Assistant as the central hub to connect and control devices around my home. Most of the home automation items (light bulb and light switches) are just fancy remote-controlled devices. The hub should give me a way to control devices from different vendors, a way to step automations (turn on lights when at certain times), and a little future-proofing. 

Why Home Assistant?

Basically three reasons, the first is I have a Raspberry Pi 3B+ not dedicated to anything yet. The second is the price of Home Assistant. Lastly, I want the ability to tinker with the software.

Setup


  • Downloaded install image 
    • Raspberry Pi 3 Mobel b and B+ 64bit
  • Used GParted to repartition an old 32GB SD card
  • Flashed the image to the SD card
  • Connected or inserted the Raspberry Pi to 
    • Monitor
    • Keyboard
    • Mouse
    • Network - hard wire for now
    • the newly flashed SD card
    • power
  • Wait
    • This can take a while
      • Allow 20 or so minutes 
      • An updated version of the software is being downloaded and installed
      • I got the message 'IPv6: ADDRCOF(NETDEV_UP): wlan0: link is not ready'. 
        • I cycled the power to the Pi.
        • Same message appeared
        • hit return a few times
        • got a login prompt
        • the default username is root

  • Add wireless
    • Using the info from 'Using nmcli to set a static IPV4 address'
    • Got to Hassio login prompt then ran the following commands
      • login
      • nmcli connection show
      • nmcli radio
      • nmcli device
      • nmcli device wifi rescan
      • nmcli device wifi list
      • nmcli device wifi connect {SSID Nane} password {password}
      • nmcli device 
      • nmcli con edit "{connection Name}"
        • print ipv4
        • set ipv4.addresses {IP of my choice}
        • set ipv4.dns {DNS address}
        • set ipv4.gateway {gateway address}
        • save
        • print ipv4
        • quit
      • nmcli con reload
    • rebooted the Pi
      • unplugged the hardwire
      • Tested wireless
        • navigated to {IP}:8123
  • First-time setup
    • After navigating to IP:8123
    • followed prompts on the screen

Resources

Home Assistant


balenaEtcher
GParted
nmcli

No comments:

Challenging myself to learn something new

I have recently set a big challenge for myself. I want to know about Machine Learning . To add to the challenge, I am trying out usin...