Hello Kiril Peyanski's here - today we are
going to the next level of smart home presence
detection by start tracking the room occupancy
with great accuracy. For that I will use the
bluetooth of a phone and a smart watch, Raspberry
Pi and room assistant.
The presence detection or the possibility
to know is anybody home is crucial for a real
Smart Home. Base on that you can start a lot
of really cool automations. For example when
you come back from work: to automatically
unlock the doors, to turn the lights and TV
on, to start the heating or cooling, and respectively
turn off and lock everything when you leave.
But imagine the following scenario you have
a good WIFI signal and you get connected to
your home network from across the street.
So you will need a minute or two until you
actually enter in your home.
In that case you will have to delay your automations
on purpose to catch the right moment and to
hear the greeting from your Smart Speaker
for example.
However you can first enter in different room
like the bathroom and you will miss the whole
magic.
To make this the right way I will hit the
Like button and then I will show you how to
use room-assistant which is actually a really
cool project that helps you track devices
using the following integrations:
Home Assistant (using MQTT), Bluetooth Low
Energy, Bluetooth Classic and these sensors:
Omron D6T, Grid-EYE, GPIO (PIR motion sensors)
I will quickly show you how to Install room
assistant using home assistant add-on store.
This method is great if your home assistant
is installed on a raspberry. if that is not
the case you can use docker and I will show
you how. Both ways are pretty easy.
Then I will show you how to configure room
assistant and home assistant.
And at the end we will create an automation
that will start the lights when you got home.
Apart from your phone or your smart watch
you will need one or more raspberry pi version
3, 4 or Zero W now 
let's go.
