Try to set up device tracker

I do try to set up a device tracker at HA to know if devices are present.

I did look this video:

I did add the next lines into my configuration.yaml:

device_tracker:
  - platform: ping
    track_new_devices: True
    consider_home: 2700
    hosts:
      Samsung-S7-edge-van-Edward: 192.168.2.44

saved it and did reboot my RPI.
The movie mentioned that there would be a file in my config called:
known_devices.yaml.
And de devices should be showed into the HA overview

Both is not happening : file known_devices.yaml does not exist and no show up in overview.
What am I doing wrong?

The video you linked is from 2018. Home Assistant is a project that is evolving pretty fast and lots of things changed since this video. In general, don’t use youtube videos, reddit comments or google searches. The information there is mostly outdated. Refer to the official documentation and if you get stuck, come here and ask for help.

Please also take a look at this topic and then format your code correctly. Did you not get any errors in the logs?

Correctly it would be something like this:

device_tracker:
  - platform: ping
    consider_home: 2700
    hosts:
      samsung-s7-edge-van-edward: 192.168.2.44

Thanks for the advice.
Thats exactly the way it is formatted.
By copie/pasting the format in the topic changes.

I did try/programm this not at home but outsite the house, not connected to my own wifi.
Does that matters?
Doe it first need to see my device before creating this file?

Did you read the link I posted? It explains how to format the code correctly here in the forum.
Highlight the code and press the </> button on top.

Did you restart home assistant after adding this to configuration.yaml? Do you get any errors in the logs?
I don’t know if the device needs to be connected at least once for the device tracker to show up.

Thanks again.
I will do read your link.

No errors and I did restar thet File editor and reboot HA
I will check at home first

Edit:
I did reformat the first message

This seems strange, I think you can’t use uppercase letters to define the host names as you did, I thought it needs to be all lowercase.

for the host name I did use the name mentioned in my router.
Does it matter what name you use?
Then I will change it is something more simple

You can change it as you desire (no uppercase and not every special character is supported). This will be the name that the device tracker will have in Home Assistant.

I’m home.
Still no errors and no sevice_tracker running.
I did the sequence again.
changed the host names in some simpel names.

device_tracker:
  - platform: ping
    track_new_devices: True
    consider_home: 30
    hosts:
     edward: 192.168.2.44
     niek: 192.168.2.24
     naomi: 192.168.2.28
     arienne: 192.168.2.37
     joel: 192.168.2.19

save the yaml file
restart file editor
reboot HA

No results.
Some more ideas?

Is your HA server on the same subnet as the devices you want to track? Are you able to ping these devices from the HA server?

Very good remark.
Thank you

HA is connected bij Eth0
If I look to SSID in overview it says “not connected”
Beside that I do have a 2.4Ghz and 5Ghz wifi
Is it possible to connect to both wifi speeds?

I try now remove the eth0 cable and let HA reboot on wifi
it says:

Knipsel

I’m surprised because it is only possible to connect RPI HA with 2,4 GHz and the picture shows that is was connected to 5Ghz wifi

How can I do a ping test from HA?

I did got it working using device_tracking: netgear.
I’m happy