Problem with Device Tracker after upgrade

Good Day,

I hope all is well under the circumstances.

I am experiencing problems with device tracker after upgrading to latest versions 7.2 and 2022.2.3 , my devices are no longer visible and I get this error on startup:

Error during setup of component device_tracker
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 227, in _async_setup_component
    result = await task
  File "/usr/src/homeassistant/homeassistant/components/device_tracker/__init__.py", line 50, in async_setup
    await async_setup_legacy_integration(hass, config)
  File "/usr/src/homeassistant/homeassistant/components/device_tracker/legacy.py", line 158, in async_setup_integration
    legacy_platforms = await async_extract_config(hass, config)
  File "/usr/src/homeassistant/homeassistant/components/device_tracker/legacy.py", line 303, in async_extract_config
    raise ValueError(
ValueError: Unable to determine type for nmap_tracker: None

I have mqtt devices and nmap devices, all devices show as unavailable

image
image

The devices are in known devices but they are no longer rendered under device_tracker, I read in breaking changes that I must enable the devices, but not sure how or where.

This is what they say in the device section:

When I go back to a previous version, I am able to see my devices as follows:

image

What must I adjust to restore my badges and trackers?

Regards
Caswell

Just guessing but if you have to enable device did you tried to go to device setting, click on device name and enable device?

Hi, no option to enable under devices. Why does the device tracker fail in this version when it works fine in the previous one.


The integration is not setup so it will not work I think. Here’s my config

Looks like nmap itself is the problem, I removed it from my config and the mqtt trackers are back

image

 - platform: mqtt
   devices: 
     carze: 'location/pape'
     mommy: 'location/mame'
     tsaki: 'location/tsaky'
     singi: 'location/singi'
     mommaz: 'location/nmp/bigmomma'
     pape: 'location/nmp/bigpape'

    

  # - platform: nmap_tracker
    # host: 192.168.68.1/24
    # interval_seconds: 10
    # consider_home: 180
    # new_device_defaults:
      # track_new_devices: true

Glad you found error. I dont use nmap tracker but as I remember there is integration for nmap and there you can define device tracker.