Device tracker problem

just update my Home Assistant to 2022.2.5

and i got errors with device_tracker platform: ping (before no errors)

notifications:
Invalid config

The following integrations and platforms could not be set up:

my code:
device_tracker:

  • platform: bluetooth_le_tracker
    consider_home: 300
    interval_seconds: 60
    new_device_defaults:
    track_new_devices: true

  • platform: ping
    interval_seconds: 30
    consider_home: 1200
    hosts:
    lg_g6 : !secret lgg6_ip
    gsm_annie : !secret gsmannie_ip
    galaxy_taba : !secret taba_ip
    pcha100 : !secret pcha100_ip
    netatmo : !secret netatmo_ip
    tplink : !secret tplinkrepeat_ip
    printer : !secret epson537a88_ip
    minix1floor : !secret minix1floor_ip
    raspi_0_2w : !secret raspi_0_2w_ip
    gerbierplug : !secret gerbier_ip
    ipad : !secret ipad_ip

log:
Error during setup of component device_tracker

16:24:55 – (ERREUR) components/device_tracker/legacy.py

Logger: homeassistant.setup
Source: components/device_tracker/legacy.py:303
First occurred: 16:24:55 (1 occurrences)
Last logged: 16:24:55

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

Have you this problem?

Thanks

device_tracker:
  - platform: bluetooth_le_tracker
    consider_home: 300
    interval_seconds: 60
    new_device_defaults:
      track_new_devices: true
          
  - platform: ping
    interval_seconds: 30
    consider_home: 1200
    hosts:
        lg_g6jc     : !secret lgg6_ip
        gsm_annie   : !secret gsmannie_ip
        galaxy_taba : !secret taba_ip       
        pcha100     : !secret pcha100_ip

my code idented

Do you have any references to nmap_tracker in your configuration.yaml? I think the error in the logs is not related the device_tracker: section shown above.

effectively…

device_tracker:
  - platform: bluetooth_le_tracker
    consider_home: 300
    interval_seconds: 60
    new_device_defaults:
      track_new_devices: true
          
  - platform: ping
    interval_seconds: 30
    consider_home: 1200
    hosts:
       lg_g6jc     : !secret lgg6_ip
       gsm_annie   : !secret gsmannie_ip
       galaxy_taba : !secret taba_ip       
       pcha100     : !secret pcha100_ip
       netatmo     : !secret netatmo_ip
       tplink      : !secret tplinkrepeat_ip
       printer     : !secret epson537a88_ip
       minix1floor : !secret minix1floor_ip
       raspi_0_2w  : !secret raspi_0_2w_ip
       gerbierplug : !secret gerbier_ip
       ipad        : !secret ipad_ip
  
      
#  - platform: bluetooth_le_tracker      
#   - platform: bluetooth_tracker 
#     new_device_defaults:
#      track_new_devices: true
  - platform: nmap_tracker
    hosts:
        - 192.168.0.252
        - 192.168.0.253
#    hosts: 192.168.0.1-253
    exclude:
        - 192.168.0.1
#    home_interval: 1
    interval_seconds: 60
#    consider_home: 180
#    new_device_defaults:
#      track_new_devices: true

what’s wrong ?

thanks

You did not pay attention to the Breaking Changes section in the release notes.

Nmap Tracker

The previously deprecated YAML configuration of the Nmap Tracker integration has been removed.

Nmap Tracker is now configured via the UI, any existing YAML configuration has been imported in previous releases and can now be safely removed from your YAML configuration files.

If I understand correctly, we can no longer use this integration ‘nmap_tracker’ ??

is there another method ? thanks

You can and you do. It‘s available and configurable at Settings - Integrations.

Simply remove the reference from configuration.yaml.

Many thanks Christoph…

it’s ok

where can i find the entities generated by the Nmap Tracker integration?

my integration :

Nmap Tracker 192.168.1.0-253
Traqueur Nmap

i don’t find the tracker entities?? thanks

i don’t find them in “known_devices.yaml”

You won’t find any…
Known Devices - Device Tracker - Home Assistant (home-assistant.io)
… since summer 2019

The configuration.yaml is no longer the place to configure / provision everything. You add integrations via UI, see devices in the UI and entities in the UI. When running HA OS (formerly HASS.IO) there is even such thing like “add-ons”.

You hat the nmap integration in your configuration.yaml and is has been moved to the UI-oriented integration setup long time ago. So when click on settings, then “Integrations” in the “Devices & Services” box, you should find the Nmap Tracker integration there. From there, you can see all the entities it generates.

grafik

ok thanks for your support…

1 Like