Integrate Tile as Device Tracker su Home Assistant

3 minutes of reading
Guide purposes
  • To integrate Tile to the configuration Home Assistant in order to have one or more device tracker (especially for automation)
  • Difficulty level: bass
Concepts dealt with:
  • Software use
Software components used:
Prerequisites
Physical devices used:
GUIDE more indicated for:

All environments

Notes and disclaimer
  • qualsiasi eventuale modifica agli impianti domestici dev'essere progettata ed realizzata SOLO da personale qualificato;
  • any changes implemented in probefore is a propersonal responsibility as well as a profirst risk and danger (the contents of the present page are purely educational);
  • any changes implemented in proprior to a device it voids the guarantee, quality approvals and certifications.

Abstract

Tile

"Tile"Is a device as simple as it is useful, especially for the most forgetful. As explained in our component sheet dedicated to it, Tile rappit is a very effective element for finding keys, wallets, clutches or other objects that, on a daily basisnameWe happen to be lost at home or in the office, or in other places.

The functionnamento it's elementary: once you have purchased one of these small "tiles" you can connect it to the profirst smartphone and / or tablet via theapp (available for Android e iOS) and, once the object to which it has been attached is lost (for example a key ring), it will be possible make her "play" simply by acting on theapp present on your smartphone, thus giving us the opportunity to find the lost object. The functionnamento also applies to the contrary: by pressing the button on the back of the Tile it is possible to make the telephone to which it is connected ring, so as to find it.

One of the most interesting aspects of this component is his home automation soul: in this guide we will see how, using the "Tile" platform, use these components as GPS position detectors to be implemented as "Device Tracker" At Home Assistant, enabling us a whole series of automations starting from those based on the concept "when I go out at home / go home do this, this, this one"

Such location information proare appgreasy byapp mobile present on users' smartphones which, ordinarily, is used to administer these convenient bluetooth devices.

Configuration app

Before approlook for the integration of Tile with Home Assistant the component must be correctly configured on the relative app phones.

After downloading it on profirst smartphone (available for Android e iOS) theapp will ask you to enter the procredentials and, if not available, to create an account.

Tile first open

Nb NO choose the mode "Facebook“, Otherwise the impossibility of integrating Tile with Home Assistant. Choose the mode "e-mail"

Tile sign in

Once finished le procedures of new account registration and of smartphone / account / tile pairing, appThe display will show a summary dashboard with the list of configured and available tiles:

Tile dashboard

Nb It's important - rather, necessary - thatappfull access to the GPS location provided by the smartphone's operating system is guaranteed, otherwise the inability to provide such data to the cloud and, consequently, to Home Assistant.

When theapp should explicitly ask whether or not to use such data, to respond positively.


In case they are used more Tile in order to trace more elements of the family (or tenants of the domotic environment) is possible approChoose in two different ways:

  • create a single "family" account to use on all app Tile installed on various smartphones, prohowever, seeing to associate each single Tile to the specific smartphone of the person to whom it is assigned;
  • create many accounts how many people, e prosee to associate each Tile with each of them.

The advantage of the first approthe second is obviously the simplicity of the thing, but that road provides less privacy (each user views through theapp Tile the location of all the tiles associated with the account).

Integration

At this point it is possible to configure the integration between the Tile e platform Home Assistant.
the configuration basis of the "Tile" platform at the file configuration.yaml it's pretty simple.

It will be sufficient to insert an entry of this type:

# Esempio di entry su configuration.yaml
device_tracker:
  - platform: tile
    username: email@address.com
    password: la_mia_password

where username e password rappthey will return the credentials used to register the account with theapp Tile.

If you use multiple different accounts, configure as follows:

# Esempio di entry su configuration.yaml
device_tracker:
  - platform: tile
    username: email_1@address.com
    password: la_mia_password_1
  - platform: tile
    username: email_2@address.com
    password: la_mia_password_2

# eccetera

Prosee now at reboot di Home Assistant.

Device Tracker

At this point Home Assistant should have created so many entity of type "Device Tracker” how many tiles are combined together with the configured accounts.

Going to the list of entities of proprio Home Assistant (second icon from the left in the right column of the web interface "<>") and performing a search, they should appcreate new entities from the nomenclature:

device_tracker.tile_XXXXXXXXX

where XXXXXXXXX will be the specific serial number of the surveyed Tile.

Tile integration Home Assistant - entity

As you will notice, in addition to the "state"(In the example above set to" home "), the extent will report a series of "attributes"Typical of a type entity"Device Tracker”(List on the right).

At this point this entity (or such entities, based on how many will be integrated) can be used in all the typical scenarios of a device Tracker presso Home Assistant, type of entity of which we refer for approelucidation to the page dedicated to it.


Home Assistant Official LogoATTENZIONE: remember that there is on our FORUM community an ad hoc section dedicated to Home Assistant, for any doubt, question, information on the specific merit of these components.

inDomus telegram channel