Iphone Presence Detection with Fingbox
Moderators: leecollings, remb0
-
- Posts: 331
- Joined: Monday 03 July 2017 19:58
- Target OS: NAS (Synology & others)
- Domoticz version:
- Contact:
Iphone Presence Detection with Fingbox
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??
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??
Last edited by febalci on Tuesday 29 January 2019 14:10, edited 1 time in total.
-
- Posts: 8
- Joined: Friday 01 January 2016 12:38
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Iphone Presence Detection with Fing
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.
-
- Posts: 331
- Joined: Monday 03 July 2017 19:58
- Target OS: NAS (Synology & others)
- Domoticz version:
- Contact:
Re: Iphone Presence Detection with Fing
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.
-
- Posts: 43
- Joined: Saturday 06 August 2016 9:53
- Target OS: Windows
- Domoticz version:
- Location: Sweden
- Contact:
Re: Iphone Presence Detection with Fing
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
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
-
- Posts: 331
- Joined: Monday 03 July 2017 19:58
- Target OS: NAS (Synology & others)
- Domoticz version:
- Contact:
Re: Iphone Presence Detection with Fing
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.
-
- Posts: 10
- Joined: Monday 07 November 2016 11:43
- Target OS: Linux
- Domoticz version: 11838
- Location: Hoofddorp, NL
- Contact:
Re: Iphone Presence Detection with Fing
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.
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.
-
- Posts: 43
- Joined: Saturday 06 August 2016 9:53
- Target OS: Windows
- Domoticz version:
- Location: Sweden
- Contact:
Re: Iphone Presence Detection with Fing
Yes, I do.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.
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.
- Attachments
-
- homeapp.png (220.45 KiB) Viewed 5133 times
-
- Posts: 331
- Joined: Monday 03 July 2017 19:58
- Target OS: NAS (Synology & others)
- Domoticz version:
- Contact:
Re: Iphone Presence Detection with Fingbox
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
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 ?
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 ?
-
- Posts: 331
- Joined: Monday 03 July 2017 19:58
- Target OS: NAS (Synology & others)
- Domoticz version:
- Contact:
Re: Iphone Presence Detection with Fing
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
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
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
- EdddieN
- Posts: 510
- Joined: Wednesday 16 November 2016 11:31
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.9700
- Location: Scotland
- Contact:
Re: Iphone Presence Detection with Fing
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
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
11101101 - www.machinon.com
-
- Posts: 331
- Joined: Monday 03 July 2017 19:58
- Target OS: NAS (Synology & others)
- Domoticz version:
- Contact:
Re: Iphone Presence Detection with Fing
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...
- erem
- Posts: 230
- Joined: Tuesday 27 March 2018 12:11
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2021.1
- Location: Amsterdam/netherlands
- Contact:
Re: Iphone Presence Detection with Fingbox
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
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
Regards,
Rob
Rob
-
- Posts: 78
- Joined: Saturday 30 July 2016 10:14
- Target OS: Linux
- Domoticz version: 2020beta
- Location: Arnhem
- Contact:
Re: Iphone Presence Detection with Fingbox
@Rob, what is the status of your detection?
I'm interested in doing the same.
Floris
I'm interested in doing the same.
Floris
Who is online
Users browsing this forum: No registered users and 1 guest