Site updated at 2017-04-23 00:02:14 UTC

This commit is contained in:
Travis CI 2017-04-23 00:02:14 +00:00
parent 2f6e61cd5b
commit 04a575b28c
26 changed files with 59 additions and 41 deletions

View file

@ -85,7 +85,7 @@
<h2><a class="title-link" name="location-tracking-in-home-assistant-zones" href="#location-tracking-in-home-assistant-zones"></a> Location tracking in Home Assistant zones</h2>
<p>At launch, Home Assistant for iOS sets up geofences for all zones in your Home Assistant configuration. Enter and exit notifications are sent to Home Assistant.</p>
<h3>Configuration</h3>
<p>Add <code class="highlighter-rouge">track_ios: true</code> to your zone configurations to enable it for tracking in all connected iOS apps.</p>
<p>Add <code class="highlighter-rouge">track_ios: false</code> to your zone configurations to disable zone location tracking for all connected iOS apps.</p>
<h3>iBeacons</h3>
<p>As of 1.0.3 the app has basic support for using iBeacons to trigger enter/exit updates. To configure them, add your iBeacon details to your zone like this:</p>
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="s">zone.home</span><span class="pi">:</span>

View file

@ -78,10 +78,26 @@ The map will be centered at the coordinates given.</p>
<span class="s">push</span><span class="pi">:</span>
<span class="s">category</span><span class="pi">:</span> <span class="s">map</span>
<span class="s">action_data</span><span class="pi">:</span>
<span class="s">latitude</span><span class="pi">:</span> <span class="s">40.785091</span>
<span class="s">longitude</span><span class="pi">:</span> <span class="s">-73.968285</span>
<span class="s">latitude</span><span class="pi">:</span> <span class="s2">"</span><span class="s">40.785091"</span>
<span class="s">longitude</span><span class="pi">:</span> <span class="s2">"</span><span class="s">-73.968285"</span>
</code></pre>
</div>
<h2>Showing a second pin</h2>
<p>You can use the following properties under <code class="highlighter-rouge">action_data</code> to display a second pin. If used, the first pin will be red and the second green.</p>
<ul>
<li><strong>second_latitude</strong>: The latitude of the second pin. <strong>Must be a string!</strong></li>
<li><strong>second_longitude</strong>: The longitude of the second pin. <strong>Must be a string!</strong></li>
<li><strong>shows_line_between_points</strong>: A Boolean value indicating whether a line should be drawn between the first and second pin.</li>
</ul>
<h2>Extra configuration</h2>
<p>You can also pass the following properties under <code class="highlighter-rouge">action_data</code> to modify the map in various ways. All are expected to be boolean values unless otherwise noted:</p>
<ul>
<li><strong>shows_compass</strong>: A Boolean indicating whether the map displays a compass control.</li>
<li><strong>shows_points_of_interest</strong>: A Boolean indicating whether the map displays point-of-interest information.</li>
<li><strong>shows_scale</strong>: A Boolean indicating whether the map shows scale information.</li>
<li><strong>shows_traffic</strong>: A Boolean value indicating whether the map displays traffic information.</li>
<li><strong>shows_user_location</strong>: A Boolean value indicating whether the map should try to display the users location.</li>
</ul>
<p class="img">
<img src="/images/ios/map.png" />
An example of the map dynamic content.
@ -105,6 +121,8 @@ The notification content is a real time MJPEG stream of a camera (assuming the c
</div>
<h1>Combining with actionable notifications</h1>
<p>As you can see the <code class="highlighter-rouge">category</code> key is used to tell the device what kind of content extension to use. You can use the same category identifiers in your own custom <a href="/ecosystem/ios/notifications/actions/">actions</a> to add actions to the content extension.</p>
<h1>Troubleshooting</h1>
<p>If you are having problems with receiving these special notifications try restarting your phone first. The extensions somewhat often fail to register properly until a restart.</p>
</article>
</div>
<aside id="sidebar" class="grid__item one-third lap-one-whole palm-one-whole">