I have add a new integration according to Nmap Tracker - Home Assistant.
And add lines into configuration.yaml:
device_tracker:
- platform: nmap_tracker
hosts: 192.168.31.0/24
interval_seconds: 30
exclude:
- 192.168.31.1
consider_home: 60
Restart homeassistant,it encounter error:
Error during setup of component device_tracker
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.11/site-packages/homeassistant/setup.py”, line 288, in _async_setup_component
result = await task
^^^^^^^^^^
File “/srv/homeassistant/lib/python3.11/site-packages/homeassistant/components/device_tracker/init.py”, line 71, in async_setup
await async_setup_legacy_integration(hass, config)
File “/srv/homeassistant/lib/python3.11/site-packages/homeassistant/components/device_tracker/legacy.py”, line 196, in async_setup_integration
legacy_platforms = await async_extract_config(hass, config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/srv/homeassistant/lib/python3.11/site-packages/homeassistant/components/device_tracker/legacy.py”, line 351, in async_extract_config
raise ValueError(
ValueError: Unable to determine type for nmap_tracker: None
If i delete the lines :
device_tracker:
- platform: nmap_tracker
hosts: 192.168.31.0/24
interval_seconds: 30
exclude:
- 192.168.31.1
consider_home: 60
Restart homeassistant, no error info !