Just be to be sure we start of at the same beginning;

– I use a Raspberry Pi 4 with a 32GB sd card.
– I will download the 32bit version(recommended). Update 5/18/202: DOWNLOAD the 64bit!
– I am installing Home Assistant NOT Hassio or what ever other name you will find. These are not the same things!!
– I have the possibilities to give certain devices FIXED ip-addresses.
– I started at version: Home Assistant 0.109.6, this is important because things change in certain versions.
– I work on a Mac!
– You need some basic understanding of what you can do with a computer.
– You need a couple of devices you can set up in HA.
– I know nothing! And so should you think.
– I you don’t like to be disappointed do not read on.
– You need to have persistence and patience.
– I am doing my best and sharing my succes and frustrations.
– You don’t need to become a patron or buy me any coffee.
– I would like it if you share your failures and succes here so others can learn. I will probably set up a forum.

So all ready? Here we go.

I have downloaded and installed BalenaEtcher. I have my RP all ready to go and I have downloaded hassos_rpi4-3.13.img.gz
So let’s flash the micro SD card.

first use Disk utility to initialize the SD Card in MsDos-FAT.

Let BalenaEtcher do the work and as soon as you receive the message BE is done you can remover the sd card.

Installation Link You can find everything you need on this page.

You can simply click on the image to open it in a popup!

Ok, I’ve inserted the SD card in the RP and fired it up.

Now the next part is very important for you to understand! If you have hooked up a screen the the RP you will see a lot of lines scrolling on your screen. There will NOT be a GUI, there will not be a message; Done!. You might spot 2 lines after a couple of minutes with little to no activity. If so start your favorite browser and go to http://homeassistant.local:8123

You should see the image I am showing you in image 2. So now it is time to celebrate and have your first coffee of many! The 20 minutes can easily turn in into 30 or 40. Just be patient, you have managed the easiest of the steps in this HA adventure.

While you are waiting it is a good thing to start a document in which you will put all the necessary steps we need to take later on. Here is what you need (some is hard to find and not absolutely necessary) – All your devices you want to hook up
– All the ip-addresses of these devices
– All the Mac-addresses of these devices
– The HDMI configuration you are using for all the devices that are hooked up to your hdmi-hub. In my case a Yamaha receiver.

Writing down things on paper on in a document is a great way to pick things later on in the process. On the Mac I am using the free Atom app as an editor. Have a look here There is still movement on my RP screen. So now is a good time for you to download a free app on the smartphone you are using to scan your network. I use Fing on my iPhone. It is a good way to find out what IP-address your RP will have once it is finished. You should give the RP a fixed IP-address as I stated in the beginning.

Ok, my installation is done. In case you haven’t noticed it yet I live in The Netherlands and the setup on my MacBook Pro is Dutch. If this is annoying I might change this to english. As you can see in image 3 the installation is ready. We can now start to fill in a name (naam), it will fill in the username, choose a password, confirm it and press the blue button

Next step is to give your installation a name like Home or Loft or whatever you like. You can shift the blue pin to your home and fill in the Timezone. This is important to be accurate because it influences the automations you are going to create later. When your done click next.

The last step shows you the devices HA has auto discovered.

Congrats! You have made it! This is your installation. You can click Yes in the bottom right if you want to stay loggend on and you can start clicking on things just to get a feel. But be careful, don’t click to much. See you soon in the next menu item. If you have watched https://www.home-assistant.io/getting-started/ before you know they are now start the first simple automation rule to turn on the lights when the sun sets. So let us just follow that and leave the next menu item where it is for a moment.

But what if you don’t have any lights? Good question. The installation according to het HA pages assumes your lights are already configured. And mine are not so let’s do that first. This of course only works if you have lights that were auto-discovered. My Philips Hue lights are. If you don’t have those You will have to google how to setup yours. If you do read on my installing of the HUE might give you enough to setup yours.

Click Notifications – Click Check it out

You will now see the devices already discovered

Simply click configure and press the button on top of your HUE bridge. Simply follow the steps you need to take and put every light, switch and sensor in the room they are located in. If there is a room missing you can simply add it. As soon as you are finished you can click Overview in the menu on the left and voila! There they are.

So now we are ready to continue with the first Automation. Read on and follow the instructions.

In the user interface, click Configuration in the sidebar, then click Automation. You will now see the automation screen from which you can manage all the automations in Home Assistant.

Click the orange button at the bottom right to create a new automation. You are presented with a blank automation screen.

The first thing we will do is set a name. Enter “Turn Lights On at Sunset”.

The second step is defining what should trigger our automation to run. In this case, we want to use the event of the sun setting to trigger our automation. However, if we would turn on the lights when the sun actually sets, it would be too late as it already gets quite dark while it’s setting. So we’re going to add an offset.

In the trigger section, click on the dropdown menu and change the trigger type to “Sun.” It allows us to choose sunrise or sunset, so go ahead and pick sunset. As we discussed, we want our automation to be triggered a little before the sun actually sets, so let’s add -00:30 as the offset. This indicates that the automation will be triggered 30 minutes before the sun actually sets. Neat!

Once we have defined our trigger, scroll down to the action section. Make sure the action type is set to “Call service,” and change the service to light.turn_on. For this automation we’re going to turn on all lights, so let’s change the service data to:

Click the orange button to save the automation. Now wait till it’s 30 minutes until the sun sets and see your automation magic!

And the last step in this first part: Presence Detection!

Presence detection detects if people are home, which is the most valuable input for automation. Knowing who is home or where they are, will open a whole range of other automation options:

– Send me a notification when my child arrives at school
– Turn on the AC when I leave work
– For PD to work you are advised to install the Home Assistant app on your smart phone. You can use the GPS tracker in your smart phone to detect where you are and set up zones.

ADDING PRESENCE DETECTION


There are different ways of setting up presence detection. Usually the easiest way to detect presence is by checking which devices are connected to the network. You can do that if you have one of our supported routers. By leveraging what your router already knows, you can easily detect if people are at home.

It’s also possible to run an app on your phone to provide detailed location information to your Home Assistant instance. For iOS and Android, we suggest using the Home Assistant Companion app.

During the setup of Home Assistant Companion on your mobile device, the app will ask for permission to allow the device’s location to be provided to Home Assistant. Allowing this will create a device_tracker entity for that device which can be used in automations and conditions.

ZONES

Zones allow you to name areas on a map. These areas can then be used to name the location a tracked user is, or use entering/leaving a zone as an automation trigger or condition. Zones can be set up from the integration page in the configurations screen.

Ok, we have made it through the first chapter! Congrats if you still here! But this was by far the easiest part. 😉

Hop I will see you in the next chapter:

Installing HA on MacOS

Just recently I tried to install Home Assistant on MacOS directly.

This page https://www.home-assistant.io/docs/installation/macos/ (the official) didn’t help me at all.

https://www.home-assistant.io/docs/installation/macos/

But this one did!

https://community.home-assistant.io/t/installing-hass-on-macos-osx/69292

Thanks Erik Hendrix!

So now I can use 2 installations at the same time. A HA on RaspberryPi and the second in a Virtual Environment on MacOS using Python

The MacOS version has no Supervisor in the menu as I wrote somewhere before but I now found out you may not need this at all.

You can simply access the files in a hidden directory under your Username in the Finder (press CMD+RightShift+period to toggle hidden files). Once you find them you can edit them using SublimeText or another app by your choice.

Hits: 0

0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *