Known Devices File Missing

I have a fresh install of Hassbian because I am rebuilding my system. The first order of business after installing was setting up the device trackers. The only tracker I have added so far is a Bluetooth tracker by adding this code:

device_tracker:
  - platform: bluetooth_tracker    
    track_new_devices: yes

My devices show up in the front end and are properly tracking, however the known_devices.yaml file does not show up in /home/homeassistant/.homeassistant or any other file. I am also getting the following in my error log:

16-12-30 10:54:04 homeassistant.components.emulated_hue: Listen IP address not specified, auto-detected address is 192.168.0.101
16-12-30 10:54:05 homeassistant.core: Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/lib/python3.4/asyncio/tasks.py", line 237, in _step
    result = next(coro)
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/device_tracker/__init__.py", line 285, in async_see
    yield from device.set_vendor_for_mac()
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/device_tracker/__init__.py", line 479, in set_vendor_for_mac
    self.vendor = yield from self.get_vendor_for_mac()
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/device_tracker/__init__.py", line 496, in get_vendor_for_mac
    oui = '{:02x}:{:02x}:{:02x}'.format(*[int(b, 16) for b in oui_bytes])
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/device_tracker/__init__.py", line 496, in <listcomp>
    oui = '{:02x}:{:02x}:{:02x}'.format(*[int(b, 16) for b in oui_bytes])
ValueError: invalid literal for int() with base 16: 'BT_00'
16-12-30 10:54:11 netdisco.ssdp: Error fetching description at 192.168.0.111
16-12-30 11:04:45 homeassistant.core: Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/lib/python3.4/asyncio/tasks.py", line 237, in _step
    result = next(coro)
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/device_tracker/__init__.py", line 285, in async_see
    yield from device.set_vendor_for_mac()
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/device_tracker/__init__.py", line 479, in set_vendor_for_mac
    self.vendor = yield from self.get_vendor_for_mac()
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/device_tracker/__init__.py", line 496, in get_vendor_for_mac
    oui = '{:02x}:{:02x}:{:02x}'.format(*[int(b, 16) for b in oui_bytes])
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/device_tracker/__init__.py", line 496, in <listcomp>
    oui = '{:02x}:{:02x}:{:02x}'.format(*[int(b, 16) for b in oui_bytes])
ValueError: invalid literal for int() with base 16: 'BT_24'
16-12-30 11:08:17 homeassistant.core: Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/lib/python3.4/asyncio/tasks.py", line 237, in _step
    result = next(coro)
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/device_tracker/__init__.py", line 285, in async_see
    yield from device.set_vendor_for_mac()
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/device_tracker/__init__.py", line 479, in set_vendor_for_mac
    self.vendor = yield from self.get_vendor_for_mac()
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/device_tracker/__init__.py", line 496, in get_vendor_for_mac
    oui = '{:02x}:{:02x}:{:02x}'.format(*[int(b, 16) for b in oui_bytes])
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/device_tracker/__init__.py", line 496, in <listcomp>
    oui = '{:02x}:{:02x}:{:02x}'.format(*[int(b, 16) for b in oui_bytes])
ValueError: invalid literal for int() with base 16: 'BT_D8'

What am I doing wrong?

Today I add bluetooth_tracker to my configuration and I have similar errors in log.

Same issue. I added bluetooth le (yesterday) and I am seeing bluetooth devices on the ‘states’ page, but no known devices yaml was created.

It must be an issue within the Bluetooth platform. I removed that platform and set up nmap and I have a known_devices.yaml now.

Just working through this now. It seems that the MAC address gets prefixed with BT_ - so when it tries to look up the manufacturer using the OUI (line 496) it fails, as the first byte is BT_nn.

EDIT: There seems to be work underway on this - the version of the init file here (https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/device_tracker/init.py) fixes it.

Yes a known devices file is created with NMAP but the bluetooth devices do not show up. I downgraded to 0.34.5 until it is fixed.