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
EKC
January 14, 2022, 9:51pm
2
Do you actually have a device at 192.168.0.1? If your subnet is 192.168.2 then perhaps not.
AllHailJ
(J Gent)
January 14, 2022, 11:05pm
3
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
Sunny69
January 14, 2022, 11:11pm
4
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.
AllHailJ
(J Gent)
January 14, 2022, 11:20pm
5
Have you checked your configuration and rebooted core?
I get this when I go to developer tools
Sunny69
January 14, 2022, 11:30pm
6
I restarted the core, and only have :
AllHailJ
(J Gent)
January 15, 2022, 5:30pm
7
How often are you scanning?
Sunny69
January 15, 2022, 11:47pm
8
Sorry voor de latere reactie. Ik heb geen scanning interval opgegeven dus dit is default elke 5 min.