Ping integration doesn't work

Hello, I have this problem with ping, which doesn’t work for my computer, but for the phone is ok. I have some automations when the PC is off or on, and I cannot use them anymore. The phone is working ok, when I connect to Wifi it appears online in dashboard but the computer not. Even if I didn’t change anything in the config file. Both devices have a fixed IP in the router . I don’t know what is happening. Can anyone explain me what is wrong?

Can you post your yaml correctly using formatting described in “How to help us help you - or How to ask a good question” in future makes it so much easier to read.

my yaml is like this.

device_tracker:
  - platform: ping
    hosts:
      item1_ping: 192.168.1.206
      item2_ping: 192.168.1.214
      item2: 192.168.1.105
      scan_interval: 30
1 Like

Thanks for the fast reply ! I set it like you said :

device_tracker:
  - platform: ping
    hosts:
      computer : 192.168.178.202
      telefon : 192.168.178.201
      scan_interval: 30 

But, the pc is still “away”…

Can you ping the computer from another device? can you ping HA from the computer? If either of these don’t work I would suggest a network issue which will probably be beyond my skill level.

You don’t mention which OS your PC is running so search the internet for “enable ICMP” for your OS. If Windows it is probably a firewall setting.

1 Like

Thank you @tom_l . Indeed was the firewall of my Windows PC… I set an inbound rule for ICMP to allow Echo requests from Home Assistant IP, and is working now. :grin: