Page 1 of 1
Iphone Presence Detection with Fingbox
Posted: Sunday 30 July 2017 17:01
by febalci
Tried lots of different Iphone presence detection ways but not satisfied with any of it all. I believe the key to the "Home" presence detection should be tied to WiFi presence, not geofencing. Since i tried almost all geofencing apps none of them are reliable. But my good old WiFi is always reliable on that except for when the iPhone goes to deep sleep as you always know. What i realized is the Fing application is always showing the iDevices as in the network whether they are in deep sleep or not. I read somewhere Fing is using multiple ways at the same time to see whether iDevices are in the network or not.
So, until my Fingbox arrives which i ordered from Indiegogo several months ago (They just finished manufacturing and distributing nowadays), which from what i read will be phenomenal regarding iDevices presence, i try to develop a way to make it now, using Fing application. You can find the application (linux, osx, windows ) in
https://www.fing.io/download-free-ip-sc ... ndows-osx/ address. First i have to make linux version work under synology if it is possible, since my domoticz server is a synology. When you run Fing application it simply discovers the devices in the network and as i see it it can also discover iDevices as "Host is up" whether they are in deep sleep or not. And it can also produce a log file. Maybe we can parse the log file and get presence information. Any ideas??
Re: Iphone Presence Detection with Fing
Posted: Sunday 30 July 2017 22:07
by tkald
Hmm, a solve this with homebridge and homebridge-edomoticz - that make a domoticz compatible with Apple Homekit. And then i used a Homekit app native in iPad (or AppleTV) and set at home or away mode with Automatization, it is working for me. I know, maybe it is double app domoticz/homekit.
Re: Iphone Presence Detection with Fing
Posted: Wednesday 02 August 2017 21:02
by febalci
Yeah i tried that too, but in Apple Homekit you cannot assign rules for more than one phone. So the rules are not working for the family members phones. That's why i thought about using Fing.
Re: Iphone Presence Detection with Fing
Posted: Wednesday 02 August 2017 22:25
by anasazi
Hi,
If you use family sharing on iOS then you can use the Home app on the other iPhones/iPad and setup rules based on their location.
I'm using it and it works great

Re: Iphone Presence Detection with Fing
Posted: Wednesday 02 August 2017 23:29
by febalci
Hi anasazi, tried that too but failed. One question; Do you create automations in homekit per device? What i mean is you create your own automation in your phone and your lets say your wife is creating her automation in her phone? Tried to do that but mixed up all automations since they carry all the same names.
Re: Iphone Presence Detection with Fing
Posted: Wednesday 02 August 2017 23:56
by Decyph
I use both ping and location info from icloud.
Use those 2 switches to trigger events.
Because the ping has a longer timeout, because the deep sleep of iphone, i poll icloud for location every 10 mins (for batt saving).
When my phone is further away then 400m from my house the switch goes off and triggers the ping switch to sync them.
When i come home, ping is way faster so that is the main trigger to switch my presence back home.
It also has an info sensor of location of the phone, a sensor of the distance from home and the battery percentage.
Re: Iphone Presence Detection with Fing
Posted: Thursday 03 August 2017 7:26
by anasazi
febalci wrote:Hi anasazi, tried that too but failed. One question; Do you create automations in homekit per device? What i mean is you create your own automation in your phone and your lets say your wife is creating her automation in her phone? Tried to do that but mixed up all automations since they carry all the same names.
Yes, I do.
When Family Sharing is enabled all my devices from Domiticz automatically shows up in my wifes iPhone when she opens it.
Then I create the rules based on my wifes location on her iPhone and the rules for my location on my iPhone.
I think I had the same problem as you that the Home app named these the same but that changed some time ago when updating iOS to a newer version.
See the attached image.
These rules will then turn on a switch in Domiticz, one switch for my wifes iPhone and another switch for mine.
Then I have a Luascript that will trigger when these devices changes.
For remote access i use Apple TV 4 with Homekit enabled.
Re: Iphone Presence Detection with Fingbox
Posted: Tuesday 19 September 2017 13:47
by febalci
At last i received my new fingbox. It has got a great presence detection mechanism. The only problem is that it doesnot have an API yet. Well, i guess i'll wait for the Fingbox API then.
Re: Iphone Presence Detection with Fing
Posted: Thursday 28 December 2017 16:01
by Thib5
Hey did you manage to do something ? Ig you still have fing on your synology i could make a script for you it’s super easy !
I have a question for you .... is fing realy working well for you ? Because i test it (on my mac ) in the middle of the night and i could not reach my wife iphone ?
What command di you use ?
Re: Iphone Presence Detection with Fing
Posted: Thursday 28 December 2017 21:47
by febalci
Well things are a little bit changed from my last message. I now use life360 and homekit together for presence detection and very satisfied with it. For the fing, i do not use the software anymore but the fingbox itself. Fingbox is stable and finds all devices on the network succesfully, however still no API and still no way to get the information from the device...
Re: Iphone Presence Detection with Fing
Posted: Friday 29 December 2017 20:12
by Thib5
for my part I did it with this script :
IP="192.168.111.15"
mac="xx:xx:xx:xx:xx:xx"
echo "test"
DEVICES=`fing -r5 192.168.111.15/32`
if [[ $DEVICES = *"$mac"* ]];
then
echo "ON"
#what ever command you need here
else
echo "OFF"
#what ever command you need here
fi
Re: Iphone Presence Detection with Fing
Posted: Monday 20 August 2018 19:08
by EdddieN
Interested on the Fing geofencing, I too find it very reliable (more than Homekit!)
This seems to be quite a long workaround:
https://www.smarthomegeeks.co.uk/how-to ... -to-ifttt/
Has anyone managed to get the CLI working:
https://help.fing.io/knowledge-base/com ... to_measure
It looks like some kind of API is coming, not sure if free:
https://www.cepro.com/article/cedia_201 ... ery_engine
Re: Iphone Presence Detection with Fing
Posted: Tuesday 29 January 2019 14:10
by febalci
Well i just learned that Fingbox is now in IFTTT. Can't wait to test it out for presence or other things when i get home. Hope to take it out from IFTTT and have a direct Domoticz connection soon...
Re: Iphone Presence Detection with Fingbox
Posted: Tuesday 29 January 2019 19:02
by erem
I have a different way of detecting iPhone presence, and that works fine
I use a dual pronged approach
1) i use L2Ping to search for the bluetooth mac address of the iPhone (using a BT USB dongle on a RPi 2+)
2) i monitor for mDNS traffic from the IP address from the iphone (needs fixed IP for iPhone)
all done in Bash and C on the Raspberry, feeding domoticz using virtual switched for each iPhone
look into that.
regards,
rob
Re: Iphone Presence Detection with Fingbox
Posted: Monday 24 June 2019 13:28
by florisi
@Rob, what is the status of your detection?
I'm interested in doing the same.
Floris