Skip to content

Commit 95d25a0

Browse files
simpssfrenck
authored andcommitted
Added note to Owntracks about mqtt_topic parameter requirement for Zanzito usage (home-assistant#4949)
* Added note about mqtt_topic parameter change requirement for Zanzito usage * ✏️ Minor updates
1 parent 75ac425 commit 95d25a0

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

source/_components/device_tracker.owntracks.markdown

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ featured: false
1313
ha_release: 0.7.4
1414
---
1515

16-
1716
This platform allows you to detect presence using [Owntracks](http://owntracks.org/). OwnTracks allows users to track their location on iOS phones and publish it to an MQTT broker. This platform will connect to the broker and monitor for new locations.
1817

1918
<p class='note'>
20-
The Android app for OwnTracks is no longer developed or supported, Zanzito is a drop in replacement for OwnTracks MQTT.
19+
The Android app for OwnTracks is no longer developed or supported, Zanzito is a drop in replacement for OwnTracks MQTT.
20+
<a href="#using-owntracks-with-zanzito">See Instructions</a>
2121
</p>
2222

2323
This component requires [the MQTT component](/components/mqtt/) to be set up and works very well together with [the zone component](/components/zone/).
@@ -59,6 +59,7 @@ device_tracker:
5959
```
6060

6161
### {% linkable_title Using Owntracks with other device trackers %}
62+
6263
Owntracks can also be used with other device trackers, such as [Nmap](/components/device_tracker.nmap_tracker/) or [Netgear](/components/device_tracker.netgear/). To do this, fill in the `mac` field to the Owntracks entry in `known_devices.yaml` with the MAC address of the device you want to track. This way the state of the device will be determined by the source that reported last. The naming convention for known device list is `<username>_<device-id>` and could be set in app configuration. More details about this config can found in [device tracker](/components/device_tracker/).
6364

6465
An example showing the inclusion of the `mac` field for multiple component tracking. The `mac` field will need to be added to the `owntracks` device and will enable tracking by all components that track via the `mac` address.
@@ -73,14 +74,20 @@ USERNAME_DEVICE_ID:
7374
hide_if_away: no
7475
```
7576

77+
### {% linkable_title Using Owntracks with Zanzito %}
78+
79+
To use the Owntracks component with Zanzito set the `mqtt_topic` parameter to `"zanzito/#"`
80+
7681
### {% linkable_title Using Owntracks regions %}
82+
7783
Owntracks can track regions, and send region entry and exit information to Home Assistant (HA). You set up a region in the Owntracks app which you should name the same as your HA Zone, and then make sure to turn on the `share` option for the region in the owntracks app. Please see the [owntracks documentation](http://owntracks.org/booklet/guide/waypoints/).
7884

7985
Home Assistant will use the enter and leave messages to set your zone location. Your location will be set to the center of zone when you enter. Location updates from OwnTracks will be ignored while you are inside a zone.
8086

8187
When you exit a zone, Home Assistant will start using location updates to track you again. To make sure that Home Assistant correctly exits a zone (which it calculates based on your GPS coordinates), you may want to set your Zone radius in HA to be slightly smaller that the Owntracks region radius.
8288

8389
### {% linkable_title Using Owntracks regions - forcing Owntracks to update using %}iBeacons
90+
8491
When run in the usual *significant changes mode* (which is kind to your phone battery), Owntracks sometimes doesn't update your location as quickly as you'd like when you arrive at a zone. This can be annoying if you want to trigger an automation when you get home. You can improve the situation using iBeacons.
8592

8693
iBeacons are simple Bluetooth devices that send out an "I'm here" message. They are supported by IOS and some Android devices. Owntracks explain more [here](http://owntracks.org/booklet/guide/beacons/).
@@ -92,6 +99,7 @@ When you exit an iBeacon region HA will switch back to using GPS to determine yo
9299
Sometimes Owntracks will lose connection with an iBeacon for a few seconds. If you name your beacon starting with `-` Owntracks will wait longer before deciding it has exited the beacon zone. HA will ignore the `-` when it matches the Owntracks region with Zones. So if you call your Owntracks region `-home` then HA will recognize it as `home`, but you will have a more stable iBeacon connection.
93100

94101
### {% linkable_title Using Owntracks iBeacons to track devices %}
102+
95103
iBeacons don't need to be stationary. You could put one on your key ring, or in your car.
96104

97105
When your phone sees a mobile iBeacon that it knows about, it will tell HA the location of that iBeacon. If your phone moves while you are connected to the iBeacon, HA will update the location of the iBeacon. But when your phone loses the connection, HA will stop updating the iBeacon location.
@@ -101,9 +109,11 @@ To use mobile iBeacons with HA, you just set up a region that doesn't match your
101109
This allows you to write zone automations for devices that can't track themselves (for example *alert me if I leave the house and my keys are still at home*). Another example would be *open the gates if my car arrives home*.
102110

103111
### {% linkable_title Using mobile and fixed iBeacons together %}
112+
104113
You can use iBeacons of both types together, so if you have a Zone `drive` with an iBeacon region called `-drive` and you arrive home with a mobile iBeacon called `-car`, then `device_tracker.beacon_car` will be set to a state of `drive`.
105114

106115
### {% linkable_title Importing Owntracks waypoints as zones %}
116+
107117
By default, any Owntracks user connected to Home Assistant can export their waypoint definitions (from the *Export - Export to Endpoint* menu item) which will then be translated to zone definitions in Home Assistant. The zones will be named `<user>-<device> - <waypoint name>`. This functionality can be controlled in 2 ways:
108118

109119
1. The configuration variable `waypoints` can be set to `False` which will disable importing waypoints for all users.

0 commit comments

Comments
 (0)