Site updated at 2016-07-24 17:14:05 UTC
This commit is contained in:
parent
7010fdbc41
commit
2d9a218a1b
1007 changed files with 140 additions and 168343 deletions
|
@ -4,7 +4,7 @@
|
|||
<title><![CDATA[Category: Presence-Detection | Home Assistant]]></title>
|
||||
<link href="https://home-assistant.io/blog/categories/presence-detection/atom.xml" rel="self"/>
|
||||
<link href="https://home-assistant.io/"/>
|
||||
<updated>2016-07-23T19:30:05+00:00</updated>
|
||||
<updated>2016-07-24T17:13:16+00:00</updated>
|
||||
<id>https://home-assistant.io/</id>
|
||||
<author>
|
||||
<name><![CDATA[Home Assistant]]></name>
|
||||
|
@ -24,7 +24,7 @@
|
|||
|
||||
<p>The reason I started using iBeacons was to improve presence detection (and I think that’s the case with most people) so that’s what I’ll discuss in <em>part 1</em>. In <em>part 2</em> I’ll talk about using iBeacons to track devices that can’t track themselves.</p>
|
||||
|
||||
<h3><a class='title-link' name='using-beacons-to-improve-owntracks-location-data' href='#using-beacons-to-improve-owntracks-location-data'></a> Using beacons to improve OwnTracks location data </h3>
|
||||
<h3>{% linkable_title Using beacons to improve OwnTracks location data %}</h3>
|
||||
|
||||
<p>When you use OwnTracks in standard <em>major move</em> mode (which is kind to your phone battery) it sometimes fails to update when you’d like it to. In my case I found that it would often send a location update as I was on my way home, but then not update when I got home. The result would be that Home Assistant would think I was 500M away from home, and take quite a while to notice I was home. It would also mean that the automation that should turn on my lights when I got home didn’t work very well! There were a few times when my phone location updated at 2am and turned the lights on for me. Fortunately my wife is very patient!</p>
|
||||
|
||||
|
@ -32,13 +32,13 @@
|
|||
|
||||
<!--more-->
|
||||
|
||||
<h3><a class='title-link' name='getting-started' href='#getting-started'></a> Getting Started </h3>
|
||||
<h3>{% linkable_title Getting Started %}</h3>
|
||||
|
||||
<p>To do this you first need to set up <a href="/components/mqtt/#picking-a-broker">MQTT</a> and <a href="/components/device_tracker.owntracks/">OwnTracks</a> in Home assistant - and make sure that HA can track your phone.</p>
|
||||
|
||||
<p>You then have to (A) tell Home Assistant where the beacon is located and (B) tell OwnTracks to recognise the beacon.</p>
|
||||
|
||||
<h4><a class='title-link' name='a-tell-home-assistant-where-your-beacon-is-located' href='#a-tell-home-assistant-where-your-beacon-is-located'></a> A. Tell Home Assistant where your beacon is located </h4>
|
||||
<h4>{% linkable_title A. Tell Home Assistant where your beacon is located %}</h4>
|
||||
|
||||
<p>You tell HomeAssistant about fixed locations by creating a Zone with the longitude and latitude of your beacon. You should also give the zone a name which you will also use when you set up OwnTracks. An an example this zone specifies the location of my drive way.</p>
|
||||
|
||||
|
@ -59,7 +59,7 @@
|
|||
|
||||
<p>Once you’ve created the zone - you need to restart HA. The next step is:-</p>
|
||||
|
||||
<h4><a class='title-link' name='b-tell-owntracks-to-track--your-beacon' href='#b-tell-owntracks-to-track--your-beacon'></a> B. Tell OwnTracks to track your beacon </h4>
|
||||
<h4>{% linkable_title B. Tell OwnTracks to track your beacon %}</h4>
|
||||
|
||||
<ol>
|
||||
<li>Go to the OwnTracks app on your phone</li>
|
||||
|
@ -90,7 +90,7 @@
|
|||
|
||||
<p>I’m also pleased to say I no longer get an <em>arrive home</em> event at 2am that turns the lights on. I hope I’ve convinced you that iBeacons are worth trying!</p>
|
||||
|
||||
<h3><a class='title-link' name='mixing-beacons-and-gps-locations' href='#mixing-beacons-and-gps-locations'></a> Mixing Beacons and GPS locations </h3>
|
||||
<h3>{% linkable_title Mixing Beacons and GPS locations %}</h3>
|
||||
|
||||
<p>You will probably use beacons to make entry into your existing GPS zones more reliable. By default either a beacon or a GPS location can cause you to enter a zone - and HA has some logic that should make them two work well together (it ignores GPS updates when you’re in an iBeacon Zone).</p>
|
||||
|
||||
|
@ -123,17 +123,17 @@ For example, my wife works next door - and I couldn’t detect whether she’s a
|
|||
|
||||
<p>To get this to work you’ll probably need to experiment with the beacon signal strength to try to match the beacon reception area to the location you want to track. Let me know if you get this to work (it doesn’t make sense in my open plan house)</p>
|
||||
|
||||
<h3><a class='title-link' name='conclusion' href='#conclusion'></a> Conclusion </h3>
|
||||
<h3>{% linkable_title Conclusion %}</h3>
|
||||
|
||||
<p>Presence tracking sounds easy - and it’s an important part of Home Automation. Trying it shows how difficult it is to get presence detection right. I’ve found that iBeacons have improved the reliability and timeliness of knowing where I am, and I hope I encouraged you to try them too.</p>
|
||||
|
||||
<h3><a class='title-link' name='tips' href='#tips'></a> Tips </h3>
|
||||
<h3>{% linkable_title Tips %}</h3>
|
||||
|
||||
<p>You can find out more about configuring the OwnTracks application and beacons <a href="http://owntracks.org/booklet/features/beacons/">here</a></p>
|
||||
|
||||
<p>There is information about configuring Homeassistant to use beacons <a href="https://home-assistant.io/components/device_tracker.owntracks/">here</a></p>
|
||||
|
||||
<h4><a class='title-link' name='connections-and-disconnecting' href='#connections-and-disconnecting'></a> Connections and disconnecting </h4>
|
||||
<h4>{% linkable_title Connections and disconnecting %}</h4>
|
||||
|
||||
<p>Owntracks treats a region name with a leading <code>-</code> as a hint that it shouldn’t disconnect after a single missed packet. This improves the ability to keep a connection to a beacon.</p>
|
||||
|
||||
|
@ -141,7 +141,7 @@ For example, my wife works next door - and I couldn’t detect whether she’s a
|
|||
|
||||
<p>In automations you can use a <code>for:</code> to avoid triggering during a brief disconnect, or use a script with a delay. Stay tuned for <em>part 2</em> for an example of this.</p>
|
||||
|
||||
<h4><a class='title-link' name='using-multiple-beacons-for-the-same-zone' href='#using-multiple-beacons-for-the-same-zone'></a> Using Multiple beacons for the same Zone </h4>
|
||||
<h4>{% linkable_title Using Multiple beacons for the same Zone %}</h4>
|
||||
<p>iBeacons have a <code>UUID</code> (usually set to the same value for beacons from the same manufacturer), as well as a <code>minor</code> and <code>major</code> number. If you set two beacons to have exactly same details then OwnTracks will think multiple beacons are at the same location.</p>
|
||||
|
||||
<p>This means you can have more than one beacon around your home - and a connection to any of them will count as <code>home</code> to OwnTracks and HA. This reduces disconnections.</p>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue