Configuration.yaml prersence detection

Hi all,

I have made a new installation on my qnap nas with the vmware version of HA. This works fine. After that I installed the file editor with no problem and opened the configuration.yaml.

Then I wanted to add presence detection and there it went wrong.

My lines were:

device_tracker:
  - platform: ping
    host:
    galaxy_note9: xxx.xxx.x.xx (ip-adress)

This gives a platform error. Ping tracker does not exist.

Does anyone know what I must change to make it work/

Thanks for helping.

Micronikje

device_tracker:
  - platform: ping
    host:
      galaxy_note9: xxx.xxx.xxx (ip-adress)

indent the device name …

@Murada99
Thanks for the info.this is the solution.
Micronikje

Please mark Murada99’s post as the solution, then.

I didn’t solve your problem, Murada99 did. You should mark his post as the solution, not mine.

Sorry,

I have marked his post now.