Can you use binary-sensor simultaneous with device tracker?

Hello,

I use, with succes , de device tracker / platform ping to ping my mobile phones as precense detection.
This works great.

The I would try to experiment with binary-sensor platform ping (Ping (ICMP) - Home Assistant).
I added the rule to my configuration.yaml file

binary_sensor:
  - platform: ping
    host: 192.168.0.1
    name: "test"

The entity was created but keeps the status unavailable even when this device is pinable.
So does it has to do something with the device tracker:

device_tracker:
  - platform: ping
    hosts:
      device_name_1: 192.168.0.1

Regards

Do you actually have a device at 192.168.0.1? If your subnet is 192.168.2 then perhaps not.

I have one to ping my router

binary_sensor:
  - platform: ping
    host: 192.168.XXX.XXX   <---- Your IP Address here
    count: 2
    name: ping_router
    scan_interval: 600 

Sorry my mistake. I just copied the IP address. I do have an address at 192.168.0.1. All of my IP addresses are in the same subnet 255.255.255.0. Because of your reply I do have changed the IP adress of the binary sensor , in my original post ,to 192.168.0.1 instead of 192.168.2.10.

Have you checked your configuration and rebooted core?

I get this when I go to developer tools

I restarted the core, and only have :
HA

How often are you scanning?

Sorry voor de latere reactie. Ik heb geen scanning interval opgegeven dus dit is default elke 5 min.