The developers at Home Assistant released
a new updated version of Hass.io
based on HassOS which is Home Assistance
new operating system so today I'm going
to reinstall Hass.io in my Raspberry
Pi 3 and I'm going to show you how to
set up the Wi-Fi connection. We're also
going to set up the Configurator and the
Samba add-on so we can access the Home
Assistant configuration file. At the end
we are going to set up the DNS add-on so
we can access the Home Assistant
remotely all the steps that we're going
to follow in this video are available in
a written guy at juanmtech.com so you can
easily copy all the steps so definitely
check it out you can find a link in the
description below alright so now let's
go ahead and get started with the
tutorial download the new version of Hass.io
from the home assistant website.
There's a 32-bit and a 64-bit version
for the Raspberry Pi 3. They recommend to
download the 32-bit version but let's
download the 64-bit. Use an app to extract
the image.
then insert the SD card into the
computer and use Etcher to copy the
image to the SD card click on select
image search and select the Hass.io
image make sure that Etcher picks out the
correct drive to install the image
otherwise click on change and choose the
SD card lastly click on flash and give
it a few minutes for the process to
complete
alright so the SD card is now ready now
to set up the Wi-Fi we need to set up a
flash drive with a file containing the
Wi-Fi settings let me show you how to do
that after you connect the flash drive
to the computer we need to format it so
right click on the drive and click on
format then under the volume label enter
the name config click on the star and
then ok to format the drive. Once that is
done, open the drive, create a new folder
named Network then inside the folder
create a file named system-connections
now open the file and enter the
following enter your Wi-Fi name under
the SSID and then the Wi-Fi password
under the PSK for the UUID you can
generate a new one by going to
uuidgenerator.net save the file and
then unmount the flash drive from the
computer alright so we have the new
hassle image in the SD card and we set
up the Wi-Fi settings in a flash drive
now we can put them in the Raspberry Pi
and boot the Pi for the first time so
like that the latest version of Home
Assistant gets installed after like a
minute or two open your browser and then
go to hassio.local:8123
If the Pi connected successfully to
your Wi-Fi then you will get the home
assistant preparing page give it a few
minutes and then the latest version of
home assistant will be installed
alright so home assistant is now up and
running now we need to set up the
configurator add-on or the Samba add-on
so we can access the Home Assistant
configuration files I'm going to show
you how to set up both to them but you
can decide which one you like better
and then just install one of them or you
can do like me and just have both of
them installed. On the left side click on
hass.io then go to add-on store and
select configurator click on install and
then give it a couple of minutes. After
the installation is done we need to set
up a username and a password so we can
protect access to the home assistant
configuration files make sure that the
username and password are within quotes (" ")
click on save and then start the add-on
now to access the configurator click on
OPEN WEB UI. Another tab opens where you
will need to sign in using the username
and password that you created
all right so we now have access to the
Home Assistant configuration files. If
you click on the folder icon to the left
you can see all the other available
files. Before we move on to install the
Samba add-on let's set up a password for
the Home Assistant web interface so like
that it is protected when we set up the
remote access. Under HTTP we have the
line # API_password remove the hash "#"
at the beginning to activate the line
then type a new password and when
finished click on the Save icon at the
top. Now we need to restart Home
Assistance for the changes to take effect
and we can do that directly from the
configurator click on the menu icon on
the top right and then click on Restart HASS. 
Go back to home assistant and after
like a minute or two refresh the page
and you will now have to enter the new
password. Okay so the Configurator is all
set up now let's go ahead and install
the Samba add-on go to Hass.io
then add-on store select the Samba share
add-on and then click on install now
under config we are going to setup the
following if you set up a specific
workgroup on your computer you can
change it here otherwise just leave it
with a default name. Guest mode change it
from true to false so no one can access
the configuration files without login
under map we have 5 different folders
that we can select to see in the shared
folder if you want to disable one of
them you can change it from true to
false set up a username and a password
so the share folder is secure
remember to enclose them within quotes
now for the interface if you have your
raspberry pi connected to your router
with an Ethernet cable set it to eth0
I'm connected via Wi-Fi so I need to set
it up to wlan0 now click on save and
then start to enable the Samba add-on
you can check the log below to make sure
that everything went well now open the
file explorer then go to network and the
Hassio share folder should now be
available if it doesn't come out right
away just refresh the page and give it a
couple seconds when you open the share
folder for the first time you will need
to sign in using the username and
password. You can click on remember
credentials so like that you don't have
to sign in every time you want to access
the configuration files alright so we
now have access to the home assistant
configuration files and we can use any
text editor that we would like for
example Notepad++ or Atom which
is the one that I prefer next we're
going to install the DuckDNS add-on so
we can have a secure connection to Home
Assistant from outside the home network.
Go to Hass.io select add-on store and
then click on DuckDNS now click on
install once the installation finish got
to duckdns.org and sign in using one of
the available methods to create a new
account. Create a new subdomain name and
then copied in your DNS token go back to
Home Assistant and under config change
the Accept terms to true then under token
enter the new DuckDNS token number and
on the domain enter the new domain name
created in the DuckDNs website make
sure that the token number and the
domain name are enclosed within quotes
now click on save and before starting
the add-on we need to access the router
settings there are two things that you
need to setup in your router one you
need to make sure that your raspberry pi
is set up to always get the same ip
address and two you need to create a
port forwarding rule for home assistant
all router settings are a little bit
different so I wouldn't be able to tell
you exactly where to go to set these
things up but for you to have an idea
I'm going to show you how to set up the
port forwarding rule in an Asus router
we're going to name the port forwarding
room Hassio_SSL set the port range to
443 for
the local IP said it to the Raspberry
Pi's IP address the local port said it
to 8123 and you can leave
the protocol set to TCP click on the
plus icon to add a new tule then click
on apply and reboot the router once the
route is back online go back to home
assistant and start the DuckDNS add-on
check the log below to make sure that
the setup was successful next we need to
add the duck DNS URL that we created and
also the SSL information in the
configuration.yaml file so open
the Configurator add-on to access the
configuration.yaml file under HTTP
and below the API_password enter the
following and only change the base URL
to your DuckDNS URL click on save and
then restart home assistant
now to access the home assistant web
interface from inside and outside the
home network you will need to use the
DuckDNS URL so let's go ahead and try
it. Because I had it set up before it is
not asking me to enter the password but
if you're doing this for the first time
you will get the Home Assistant login
page so just re-enter the password, Now
because we set up the SSL connection we
now need to fix the access to the
configurator if we try to access the
configurator page you will get an error
message that the page is not reachable
so to correct that under the
configurator config change the SSL from
false to true and then click on safe we
also need to set up a port forwarding
rule so access your router settings and
create a new rule named Hassio_Configurator
set the port range to 3218
for the local IP set it to
the Raspberry Pi's IP address the local
port set it to 3218 and
you can leave the protocol set to TCP
click on the plus icon to add the new
rule then click on apply and reboot the
router after the router is back online
go back to home assistant and restart
the configurator add-on then try to
access the Configurator and you will now
be able to sign back in and have access
to the Home Assistant configuration
files
alright guys so Home Assistant is all
set like I mentioned earlier all the
steps are available on my website if I
make any updates to this tutorial or if
I correct something I will update the
article so definitely check it out you
can find a link in the description below
like always guys thank you for watching
if you guys like this video give it a
thumbs up don't forget to subscribe if you
haven't done so already and I will see
you in the next video
