Today we are going to the next level of smart home presence detection by start tracking the room occupancy with great accuracy. Tutorial: Home Assistant Presence Detection with iOS and [monitor] June 24, 2020 June 4, 2020 by Steven. However, [monitor] has been known to work other devices, not just smart phones. Not ideal. Their presence detection works better (so far at least, I’ll update if that changes!) The other half of this post can be found on Phil Hawthorne’s blog, where he covers WiFi, Bluetooth, and using Bayesian sensors for accuracy.If you haven’t already, have a listen to Spotlight Episode 2 of the Home Assistant Podcast as this is a complementary post to that episode.. The state of your tracked device will be 'home' if it is in the home zone, detected by your network or Bluetooth based presence detection.If you’re using a presence detection method that includes coordinates then when it’s in a zone the state will be the name of the zone (case sensitive). Run the command:Now would be a good time to check to make sure [monitor] is successfully detecting our devices. If you’ve already setup a HomeKit Bridge, then you will need to add the newly created input booleans. When evaluating the various detection methods, I focused on three key aspects: Device tracker will only look for the following global settings under the configuration of the first configured platform: Your phone isn't telling the WiFi it's home, the WiFi is noticing your device. Reliable presence detection is a challenge for many people. Their WiFi APs themselves are also awesome, and that’s totally aside from Home Assistant. At home tracking 13:40 - Demo of Room Assistant, Home Assistant Two Raspberry Pi in cluster and a smart watch 14:39 - Creating an Automation in Home Assistant when you got home to start the lights 16:13 - … In part this is because modern smartphones put WiFi (and apps) to sleep when they're idle. Presence Detection using Room Assistant, Home Assistant and Raspberry Pi Published by Kiril Peyanski on 11/03/2020 11/03/2020. If you are using an add-on such as ‘Mosquitto broker’, the required login information can be found in the configuration section:This file lets us define known devices that will be used in our presence detection. Hopefully this helps or inspires someone else for their own presence detection. When you are home, device WiFi goes into sleep states to conserve battery. Let me know in the comments the ways you are detecting presence in your own home!The detection must not significantly impact battery life. There is currently support for the following device types within Home Assistant: Presence Detection - The ASUSWRT platform offers presence detection by looking at connected devices to a ASUSWRT based router. Those may vary in time. However, there is a major issue for this detection if you are using it to unlock your front door, for example. However, in our implementation, we want to change that to limit the scans only when we request them (leaving/arriving) home. This means that you may be around the corner, not in sight of your house and it would still detect you home, and unlock your door! A way for the house to know if you are home or away and then react accordingly. To define a known device, we need to get the Bluetooth MAC addresses, and add it along with an alias in the This file will let us fine tune [monitor] for our specific application. Device states. than any methods I’ve previously tried and requires little more than a device connected to WiFi. If you have not set up a HomeKit Bridge, then in your Afterwards, we need to add the HomeKit Bridge to our iOS HomeKit. For now, I’m not looking for fine-grained tracking i.e. This can happen by querying your wireless router or by having applications push location info.The following optional parameters can be used with any platform:The extended example from above would look like the following sample:Multiple device trackers can be used in parallel, such as Here’s an example configuration for a single device: However, in my testing, since we are rarely scanning for arrivals, I have not found it to be an issue.By default, [monitor] will always be ‘scanning’ for devices.

First, I need to acknowledge that there’s numerous methods to get presence detection with Home Assistant, each with their own pros and cons. Presence Detection You should see an arrival scan started, and then if your device is located close enough to your RPi, the device should be detected by [monitor]:If you don’t, check out some of the troubleshooting steps on the [monitor] Git. I will go through and explain how each automation functions. For Apple devices, they must be paired with a Bluetooth device (Apple Watch does not count), before they will start broadcasting their Bluetooth. Run the command:And watch the output. Let’s Use Wi-Fi to Determine Presence by Integrating Eero with Home Assistant February 28, 2020 June 26, 2019 by Mike Salerno Presence detection is a major issue that a lot of us who do more advanced automation face. To get the most out of your home automation, you need good presence detection. The device tracker allows you to track devices in Home Assistant. If a device is arriving, the flow checks to make sure that the The MQTT listeners are set up to listen to individual topics, specific to each device:Finally, when anyone leaves in the house, the input boolean linked to HomeKit will switch off. This method of presence detection relies on network status. You arrive home and the device connects to WiFi. It can definitively determine you're home. This turns on the MQTT listeners are setup to receive messages from [monitor] when our tracked devices are detected.

One popular feature is Home/Away status for automatically triggering smart device routines. The full Node-RED flow can be found below. This will be explained further when setting up our automations, but in general it will prevent our front door being unlocked if we have not recently arrived:Now, we need set up our HomeKit Bridge integration*. This integrations allows us to forward entities from Home Assistant to HomeKit. There are many ways of approaching this (just look at the threads on the Home Assistant forum to see), but here's how I've tackled it with a range of Android devices. This will cause [monitor] to rescan for devices, regardless of their previous status.