Page 1 of 1

Présence ping iPhone

Posted: Monday 20 May 2019 22:40
by xploid
Does someone know a solution when using System Alive Checker (Ping) with iPhone?

On Android it works perfect, but on iPhone it kills the connection when the screen is locked :( Found some topics on the internet but no fix :(

Re: Présence ping iPhone

Posted: Monday 20 May 2019 23:28
by poudenes
Also search or months to solve this. Now playing around with iBeacon modules and a python script...

Presence is working when I use locative. When you go inside a range or outside it will send a http link to Domotic. But I want a second presence option. When you don't have your mobile data network on it will turn your presence also on using other method.


Verzonden vanaf mijn iPhone met Tapatalk Pro

Re: Présence ping iPhone

Posted: Monday 03 June 2019 9:14
by xploid
Tried locative and that works. Only when going out it doesn't work because i use VPN to connect to Domoticz. Wi-Fi is a better option because you don't need GPS location for it..

Someone got a working solution?

Re: Présence ping iPhone

Posted: Monday 03 June 2019 9:29
by poudenes
I tried a tracker and iBeacon. Not ok. Many times the tracker disconnect and reconnect so that means I'm gone but still in the house.... Will be hard to find a good solution


Verzonden vanaf mijn iPhone met Tapatalk Pro

Re: Présence ping iPhone

Posted: Monday 03 June 2019 10:46
by emme
ping and iOS cannon live together...
iOS devies does not answer even out of standby
andorid's works but drain battery fast

a good way to achieve it is gain arp tables from the router (if available) or use TR-069 with the router to retreive active leases

I use this method and it works pretty good

ciao
M

Re: Présence ping iPhone

Posted: Monday 03 June 2019 10:47
by emme
poudenes wrote: Monday 03 June 2019 9:29 I tried a tracker and iBeacon. Not ok. Many times the tracker disconnect and reconnect so that means I'm gone but still in the house.... Will be hard to find a good solution
that's a low battery issue.
you have to add a delay time (I use to wait 10 minutes from the last state change) before take actions

Re: Présence ping iPhone

Posted: Monday 03 June 2019 10:51
by poudenes
emme wrote: Monday 03 June 2019 10:47
poudenes wrote: Monday 03 June 2019 9:29 I tried a tracker and iBeacon. Not ok. Many times the tracker disconnect and reconnect so that means I'm gone but still in the house.... Will be hard to find a good solution
that's a low battery issue.
you have to add a delay time (I use to wait 10 minutes from the last state change) before take actions
I test the battery and give me up to 75%. I add those as a second check. My partner don't have mobile data on all the time, and when he comes home then iBeacon will act also haha :) I use locative and work very good. I have always Mobile Data on... When leaving the area and when enter it... work always more for a year now.

Re: Présence ping iPhone

Posted: Monday 03 June 2019 11:15
by emme
Beacons have a specific time window in which you can interact with them... NUT uses 45secs, Tile 60 Secs and other compatible devices uses 60secs
this means that if you have a continuous scan or a small time window; yes, they will disappear even if they are not.
the bash script available in the Wiki should be cinfgured witha 60sec of pause between scans

for beacon I used a node red flow with an async time windows. it works like this

scan for 60secs, then it looks for the specific mac address (UUID) and [de]activate the respective idx in domoticz.
Then: if macs were found, scan is paused for 600secs (10 mins), if none has found, pause 60secs, and then restart.

this works pretty good, but I start having problems with batteries: they drain too fast (due to NUT 2 and, I think, low quality batteries)
so I actually moved to TR-069 protocol from my Fritz router to get the mobile phones attached to my wifi.

Actyally I'm using all of this... and it works perfetcly

Re: Présence ping iPhone

Posted: Monday 03 June 2019 11:53
by poudenes
Thanks for the info. I use the TrackR Pixel devices.
Will check the delay time for scanning.