Another question from me, once again proving that I have not really understood the overall (or general concept).
I am trying to find a way to figure out if I am home or not. These two seems not to be doing the trick as they are both registered as home, even if my phone is on flight mode:
- entity: person.person1
- entity: device_tracker.mi_mix_2
And then I found this: https://www.home-assistant.io/integrations/ping.
It starts off with saying:
To use this sensor in your installation, add the following to your configuration.yaml file:
# Example configuration.yaml entry
binary_sensor:
- platform: ping
host: 192.168.0.1
I assume 192.168.0.1 should be replaced by the correct IP for the thing I want to track, in this case 192.168.0.35.
And further down, under the heading “Presence Detection” writes:
To use this presence detection in your installation, add the following to your configuration.yaml file:
# Example configuration.yaml entry
device_tracker:
- platform: ping
hosts:
hostone: 192.168.2.10
I then change 192.168.2.10 to 192.168.0.35 and copy all of this into the top of my configuration.yaml as per the below.
binary_sensor:
- platform: ping
host: 192.168.0.35
device_tracker:
- platform: ping
hosts:
hostone: 192.168.0.35
But I am not sure how to proceed from there. On I'm NOT home (although that one is using nmap, which I do not know how to get to work on NUC), it says “You have to restart HA. A device will be created (when discovered for the first time on the LAN) starting with : “device_tracker.”, you can see it in the development tools (tab: states)… You can use that name in your automation.”
But I do not see anything like that in states, and see nothing in devices. Or in entities
What am I missing, does something also need to be installed somewhere to get ping to work? Or?
PS: And no, there is no tracker for my modem (Sagem). And no, I do not normally have Bluetooth on, so that is also a no go. And no, the zone thing does not work in my mobile, sees me as home all the time (others are having the same problem, eg here: Zone based tracking).
Really hope somebody can help. I am stuck.