core: Tado Device Tracker not working on 0.94.0

Home Assistant release with the issue: 0.94.0

Last working Home Assistant release (if known): 0.93.2

Operating environment (Hass.io/Docker/Windows/etc.):

arch x86_64
dev false
docker true
hassio true
os_name Linux
python_version 3.7.3
timezone Europe/Rome
version 0.94.0
virtualenv false

Component/platform: https://www.home-assistant.io/components/tado/#presence-detection

Description of problem:

Tado device tracker entity is initialized but entities never switches to “at_home”

I have this error when starting home assistant.

2019-06-07 22:56:35 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
    self.platform.get_scanner, hass, {DOMAIN: self.config})
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/tado/device_tracker.py", line 33, in get_scanner
    scanner = TadoDeviceScanner(hass, config[DOMAIN])
  File "/usr/src/homeassistant/homeassistant/components/tado/device_tracker.py", line 64, in __init__
    hass, cookie_jar=aiohttp.CookieJar(unsafe=True))
  File "/usr/local/lib/python3.7/site-packages/aiohttp/cookiejar.py", line 55, in __init__
    super().__init__(loop=loop)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/abc.py", line 146, in __init__
    self._loop = get_running_loop(loop)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/helpers.py", line 267, in get_running_loop
    loop = asyncio.get_event_loop()
  File "/usr/local/lib/python3.7/asyncio/events.py", line 644, in get_event_loop
    % threading.current_thread().name)
RuntimeError: There is no current event loop in thread 'SyncWorker_1'.

Additional information:

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 3
  • Comments: 16

Most upvoted comments

@Pitchshift As I remember there is a limitation with tado device tracker. The device (your phone) need to be in home status to be discovered by home assistant .

You can see this limitation in the tado device tracker documentation: https://www.home-assistant.io/components/tado/

After configuration, your device has to be at home at least once before showing up as home or away. Polling Tado API for presence information will happen at most once every 30 seconds.