Core: Tile tracker broken in 0.97

Created on 9 Aug 2019  ·  14Comments  ·  Source: home-assistant/core

Home Assistant release with the issue:

0.97.x

Last working Home Assistant release (if known):
0.96.x

Operating environment (Hass.io/Docker/Windows/etc.):
Native PIP install under Ubuntu 18.04 on ESXi 6.7

Component/platform:
device_tracker/tile

Description of problem:
Tile tracker fails to initialise. Traceback below.
Devices are created (from known_devices?) but have source_type set to null and are currently not_home.

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):

services_tile:
    device_tracker:
      - platform: tile
        username: !secret tile_user
        password: !secret tile_password
        show_inactive: true
        monitored_variables:
          - TILE

Traceback (if applicable):

2019-08-09 16:41:36 ERROR (MainThread) [homeassistant.components.device_tracker] Error setting up platform legacy
Traceback (most recent call last):
  File "/home/administrator/.local/lib/python3.6/site-packages/homeassistant/components/device_tracker/setup.py", line 69, in async_setup_legacy
    hass, self.config, tracker.async_see, discovery_info
  File "/home/administrator/.local/lib/python3.6/site-packages/homeassistant/components/tile/device_tracker.py", line 74, in async_setup_scanner
    return await scanner.async_init()
  File "/home/administrator/.local/lib/python3.6/site-packages/homeassistant/components/tile/device_tracker.py", line 98, in async_init
    await self._async_update()
  File "/home/administrator/.local/lib/python3.6/site-packages/homeassistant/components/tile/device_tracker.py", line 129, in _async_update
    gps=(tile["tileState"]["latitude"], tile["tileState"]["longitude"]),
KeyError: 'tileState'

Additional information:

tile

Most helpful comment

i'm still running 0.96.5, I haven't updated to 0.97 yet... noticed Tile stopped updating sometime in the last 12 ish hours, and after a hassio restart I get the following error.

Error setting up platform legacy
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/device_tracker/setup.py", line 72, in async_setup_legacy
    hass, self.config, tracker.async_see, discovery_info)
  File "/usr/src/homeassistant/homeassistant/components/tile/device_tracker.py", line 68, in async_setup_scanner
    return await scanner.async_init()
  File "/usr/src/homeassistant/homeassistant/components/tile/device_tracker.py", line 92, in async_init
    await self._async_update()
  File "/usr/src/homeassistant/homeassistant/components/tile/device_tracker.py", line 124, in _async_update
    tile['tileState']['latitude'],
KeyError: 'tileState'

All 14 comments

i'm still running 0.96.5, I haven't updated to 0.97 yet... noticed Tile stopped updating sometime in the last 12 ish hours, and after a hassio restart I get the following error.

Error setting up platform legacy
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/device_tracker/setup.py", line 72, in async_setup_legacy
    hass, self.config, tracker.async_see, discovery_info)
  File "/usr/src/homeassistant/homeassistant/components/tile/device_tracker.py", line 68, in async_setup_scanner
    return await scanner.async_init()
  File "/usr/src/homeassistant/homeassistant/components/tile/device_tracker.py", line 92, in async_init
    await self._async_update()
  File "/usr/src/homeassistant/homeassistant/components/tile/device_tracker.py", line 124, in _async_update
    tile['tileState']['latitude'],
KeyError: 'tileState'

Same traceback – I wonder if something changed on the Tile API?

Same, or substantially similar, issue. Latest update; all Tiles “away” and same error as above in log.

Same issue...

Error setting up platform legacy
Traceback (most recent call last):
  File "/usr/src/app/homeassistant/components/device_tracker/setup.py", line 72, in async_setup_legacy
    hass, self.config, tracker.async_see, discovery_info)
  File "/usr/src/app/homeassistant/components/tile/device_tracker.py", line 68, in async_setup_scanner
    return await scanner.async_init()
  File "/usr/src/app/homeassistant/components/tile/device_tracker.py", line 92, in async_init
    await self._async_update()
  File "/usr/src/app/homeassistant/components/tile/device_tracker.py", line 124, in _async_update
    tile['tileState']['latitude'],
KeyError: 'tileState'

Hey there @bachya, mind taking a look at this issue as its been labeled with a integration (tile) you are listed as a codeowner for? Thanks!

Same traceback – I wonder if something changed on the Tile API?

I was taking a look around the coding, and the api url is giving a 404. :(

Same. Seeing these errors on 0.97.2.

Same error for me running 97.2

Actually, this is my error:

2019-08-12 13:58:33 ERROR (MainThread) [homeassistant.components.device_tracker] Error setting up platform legacy
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/device_tracker/setup.py", line 69, in async_setup_legacy
    hass, self.config, tracker.async_see, discovery_info
  File "/usr/src/homeassistant/homeassistant/components/tile/device_tracker.py", line 74, in async_setup_scanner
    return await scanner.async_init()
  File "/usr/src/homeassistant/homeassistant/components/tile/device_tracker.py", line 98, in async_init
    await self._async_update()
  File "/usr/src/homeassistant/homeassistant/components/tile/device_tracker.py", line 129, in _async_update
    gps=(tile["tileState"]["latitude"], tile["tileState"]["longitude"]),
KeyError: 'tileState'

Same error for me running 97.2

FYI for all newcomers to this ticket: #25866

@bachya I'm not sure how these components get updated into HA. Is this fix something that will ship in 0.98?

@bachya I'm not sure how these components get updated into HA. Is this fix something that will ship in 0.98?

I'm not 100% sure how the process works but I loaded the Hassio Beta channel on a secondary device and my Tile devices seem to be working again on the 0.98 betas. I guess we wait until "they" validate and push the next update.

This will be included in 0.98. 👍

Was this page helpful?
0 / 5 - 0 ratings