#Asserting presence based on Ping (ICMP)

1 messages · Page 1 of 1 (latest)

wild valve
#

Hi, I'm trying to use the Ping integration to assert if people are present at home. I assigned static IPs to our phone and added a Ping entity for each of them.

The number of seconds I can configure isn't clear, maybe due to translation issues. Is that the number of seconds between each sequence of ping? Or if it doesn't see the phone during that number of seconds, it declares it offline? If it's the first, I'll need to count the number of missed ping.

shy idol
#

Ping isn't a very reliable presence mechanism. Your phone will go to sleep, disconnect from WiFi, and the ping will fail

wild valve
#

How do people usually do it?

#

I tried geolocalisation earlier today. I went out for a walk for 1 hour and it didn't see I was out.

shy idol
#

geolocation also isn't a good way

#

BTLE works great

wild valve
#

It needs a BT antenna, right?

#

How is it more reliable than ping? It'll still try to detect the phones right? Or should I buy some tag to attach to my keychain?

shy idol
#

much more, because ping is completely unreliable

#

and yes, ideally you'd have a few bluetooth proxies

spark jewel
#

I'm using the ping integration to track the presence of two android devices and it's working absolutely flawlessly.
The issues you're describing mainly apply to apple devices as far as I know.

steep crow
#

I have read about using a template sensor to collate the data between each of your presence methods.
If your modem reports connected devices you can include that with BLE, ping and GPS.
Believe positive data over negative.
i.e. If you get a positive ping and/or connection to modem, that is rated over a GPS location that is 7 minutes old.
Also a GPS location that is 20 seconds old saying you are home is rated over a failed ping and wifi connection.
I was thinking of having another attempt to make use of a Bayesian sensor. (previous use cases haven't worked well)

#

I haven't tried BLE yet. My current config makes it akward. Going to try adding bluetooth when I next upgrade my hardware

wild valve
# spark jewel I'm using the ping integration to track the presence of two android devices and ...

Indeed, I noticed the issue with my wife Apple phone. Though it responds immediately when she picks it up. So I was thinking of creating a binary sensor which automatically sets itself as absent after 15 minutes, but is reset anytime something related happens (ping, movement sensor, etc.). Then, the main issue will be the night, as nothing will happen. I was thinking of also detecting cars, but both of us frequently leave in a single car. So I think BLE beacons will be useful.

#

My wife isn't at home nowadays, but maybe Apple phone will wake up from time to time (to check for notifications and stuff) and it'll be sufficient to check my wife's presence.