Error with Tile device tracker

Hello,

I’ve been having trouble getting the Title device tracker component working successfully. I’ve tried adding and removing different options for the platform but I’m getting this error which is above my understanding:

Here is the Tile config in configuration.yaml

device_tracker:
  - platform: tile
    username: [email protected]
    password: somepassword
    show_inactive: true

And I keep getting this error every time I restart Home Assistant:

Error setting up platform tile
Traceback (most recent call last):
  File "/usr/src/app/homeassistant/components/device_tracker/__init__.py", line 179, in async_setup_platform
    hass, p_config, tracker.async_see, disc_info)
  File "/usr/src/app/homeassistant/components/device_tracker/tile.py", line 74, in async_setup_scanner
    return await scanner.async_init()
  File "/usr/src/app/homeassistant/components/device_tracker/tile.py", line 98, in async_init
    await self._async_update()
  File "/usr/src/app/homeassistant/components/device_tracker/tile.py", line 112, in _async_update
    await self._client.asayn_init()
AttributeError: 'Client' object has no attribute 'asayn_init'

I’m running Home Assistant as a docker container, thanks in advance for anyone who has an idea.

1 Like

I posted up a few weeks back, i don’t think the Tile component is working anymore.

Its constantly showing up errors or no tiles.

Looks to be due to making that component async (See https://github.com/home-assistant/home-assistant/pull/15073)

Looks to be just a typo in the attribute
and should probably be async_init

Will raise a PR later if I have time

https://github.com/home-assistant/home-assistant/pull/15645

Thanks! I always tend to think its my goof with the configuration. I was starting to pull my hair out on this one.

I’m having issues with my newly purchased Tile tracker.
Is this a fix I somehow need to apply myself? If so…how?

I tried wingy’s fix and it seemed to work. Once my docker container updated to 74.1, the fix reverted back. I’m just going to wait till the fix is implemented in an update at this point.

Allright, I’ll do the same as I have no idea how to fix it :slightly_frowning_face:
Did you have any experience with this tracker?
I am planning to tag the dog and use that to let HA know if the dog is at home or not (via mine or my gfs phone) and in turn fire off the Xiaomi vacuum :slight_smile:

@jinx and forshci
you can just create a custom_components\device_tracker\tile.py file
and copy the contents of https://raw.githubusercontent.com/wingy3181/home-assistant/243c7cae372b6bfdb53cdc53bcbbc64cc3f07d12/homeassistant/components/device_tracker/tile.py there…

Then when the fix is finally merged in an update you can remove it…

I just switched to the dev branch to test the fix and it appears to be working okay now. Thanks!

After coming home from vacation (during which HA stopped/crashed without recovering) and updating HA to version 0.75.1 the tile component seems to work, but only for my phone, not the paired tile…
The phone is already tracked with owntrachs, so I don’t need that.

I’m not sure if this has been fixed in HA already, but followed this procedure to see if my tile would show up, but it is not unfortunately :confused:

The only thing I can suggest is to look at the logs and see if you see any errors?
It’s now fixed in 0.75 for me and I can see my other tiles

Hmmm, really strange. I cant see any tile-related errors in the log,
I’m assuming that tiles also should be registered in “known_devices.yaml” ?
Does your tiles show up with the name you have set for them in the tile-app?

yep
i see them in known_devices.yaml

and the name i see in the sensor is the same as in the tile app but lower case

Hmmm, so I tried to remove tracking of my phone from the tile app as all I want to track is the tile I have in the app and that have tracking working (in the app)
Now HA gives me the message “No Tiles found” in the log.

It may be worth a shot but for mine I had to enable the inactive tiles:
show_inactive: true

1 Like

Thanks!
That solved it! No idea why, because I have never hidden it and the app never said anything to indicate it is/was hidden.
Seems to be working as I planned :slight_smile: Now I can see when the dog is not home and even where it is when we are taking her for a walk.
From that I can now make sensor for: how long is the dog home alone, how many hours of walks are we giving her…etc etc :slight_smile:

@forschi Does your phone show up in the Tile app or just the tiles? I’m just starting to get setup with my 1st tile and I have not been successful yet.

@RonJ103 Hi Ron
Actually I have abandoned the idea of using the tile tracker. For some reason the reliability is at best very slo, normally not reliable at all.
Update of the position happens so randomly and sometimes can stop, so it’s not suitable a “live” tracking if you want to automate for example lights on/off in HA.
I could get it to work “ok” on my tiles/my phone, but my gfs phone would not update her tiles, sometimes for hours even when she was travelling with her phone+keys on her.
I have hidden my phone in the app, but it did show.

My working combo is Owntracks+BT+Wifi for occupancy tracking and its quick enough to register by the time I unlock my front door.