Because I got another router it is not possible anymore to use it like this, I now want to use the ping-platform .
Works fine to and the state of the binary sensor changes to connected or not connected.
It looks like I cannot use this state in the previous code, the picture that should be loaded does not display. Something seems to keep loading but I don’t kow what . Don’t know the english word for this thing:
So what should I use for state_image now ?
That worked indeed, thank you for that. I do not understand why on and off have to be between double quotes while that is not necessary for home and not home.
Correct me if I am wrong but:
1.For a wifi tracker I need data from my modem/router which is not possible with my current router.
2. For GPS sharing location is needed, and I don’t want my family to ask for that. Besides that I only want to know whether they are in my residence, not where they hangout when they are not (allthough )
3. I can ping their local-ip address
1 no not really.
The HA app reports what wifi SSID you are connected to and even if the phone goes to sleep then it doesn’t change, meaning HA will still report “home”.
2 ok.
3 yes you can ping it, but only when the phone is on/wake. As soon as it sleeps the device will stop responding and HA will believe you are not home.
I appreciate your help and hope you are still willing to answer my questions
You mean the home assistant app (aka companion app?). But that should be installed on the phone of the other person’s ?
I allready have it on my phone, but don’t see an option to track other devices then ? And if it has that option, what happens when I am away from home myself ?
I was afraid of that, They don’t have a problem with that I suppose, but I have to change a lot of other settings to prevent they switch my lights etc. I think I have to stick to the ping option for this moment.