Geofencing, but ....
Moderators: leecollings, remb0
Geofencing, but ....
I tried to search the forum, but couldn't actually find the answer I'm looking for.
The thing I would like to do is using Geofencing actions. Yes, geofencing is working with the Pilot app I'm using and I know it can be used in the Domoticz App too. by the way, I'm using iOS.
What most of the apps do is using Google maps and draw a circle around your house. The Pilot app does it and for example my Tado app (heating) does the same. The drawback is, these apps won't let you draw a circle that goes beyond 3 Kilometers of your house.
For example I want to create an action like this: " If I'm more then 25 KM away from home, I want to enable <device A>"
Couldn't find any of such things. A calculation of how far I'm away from home and then start an action.
Thanks.
Andre Seesink
The thing I would like to do is using Geofencing actions. Yes, geofencing is working with the Pilot app I'm using and I know it can be used in the Domoticz App too. by the way, I'm using iOS.
What most of the apps do is using Google maps and draw a circle around your house. The Pilot app does it and for example my Tado app (heating) does the same. The drawback is, these apps won't let you draw a circle that goes beyond 3 Kilometers of your house.
For example I want to create an action like this: " If I'm more then 25 KM away from home, I want to enable <device A>"
Couldn't find any of such things. A calculation of how far I'm away from home and then start an action.
Thanks.
Andre Seesink
- heggink
- Posts: 980
- Joined: Tuesday 08 September 2015 21:44
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 12451
- Location: NL
- Contact:
Re: Geofencing, but ....
Hi Andre,
The key is that you use a plugin that gives you distance from your phone to your house. I need the same and did 2 things:
1) develop an icloud plugin that tracks individual phones and
2) adapt the life360 to do the same
I did both because I have both iPhones and droids in the house.
I can send you my life360 plugin and you can find my iCloud plugin in the python list.
Word of caution: the plugins create domoticz distance devices. By default, these are in cm which is rather awkward as the distance gets really big. By mistake (or design
) the distance devices report 100x off ie 40.000 cm is actually 40kms. I never changed it since too lazy to change ask the scripts i already built...
The distance is calculated using gps positions and the vincenty python library.
H
Verstuurd vanaf mijn SM-G955F met Tapatalk
The key is that you use a plugin that gives you distance from your phone to your house. I need the same and did 2 things:
1) develop an icloud plugin that tracks individual phones and
2) adapt the life360 to do the same
I did both because I have both iPhones and droids in the house.
I can send you my life360 plugin and you can find my iCloud plugin in the python list.
Word of caution: the plugins create domoticz distance devices. By default, these are in cm which is rather awkward as the distance gets really big. By mistake (or design

The distance is calculated using gps positions and the vincenty python library.
H
Verstuurd vanaf mijn SM-G955F met Tapatalk
Docker in Truenas scale, close to latest beta
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
- waaren
- Posts: 6028
- Joined: Tuesday 03 January 2017 14:18
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Geofencing, but ....
FTTT can activate a domoticz device if you leave or enter a certain area. Maybe that can help ?
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Re: Geofencing, but ....
Thanks for your answer. I will check out the Python plugin first.
regards
Andre
regards
Andre
heggink wrote: ↑Saturday 05 January 2019 22:33 Hi Andre,
The key is that you use a plugin that gives you distance from your phone to your house. I need the same and did 2 things:
1) develop an icloud plugin that tracks individual phones and
2) adapt the life360 to do the same
I did both because I have both iPhones and droids in the house.
I can send you my life360 plugin and you can find my iCloud plugin in the python list.
Word of caution: the plugins create domoticz distance devices. By default, these are in cm which is rather awkward as the distance gets really big. By mistake (or design) the distance devices report 100x off ie 40.000 cm is actually 40kms. I never changed it since too lazy to change ask the scripts i already built...
The distance is calculated using gps positions and the vincenty python library.
H
Verstuurd vanaf mijn SM-G955F met Tapatalk
Re: Geofencing, but ....
Thanks for answering.
I'm not quite into the IFTTT for domoticz yet, will check this out.
Guess every mobile phone needs to have that installed. Just like every other solution that can possibly be used.
regards
Andre Seesink
I'm not quite into the IFTTT for domoticz yet, will check this out.
Guess every mobile phone needs to have that installed. Just like every other solution that can possibly be used.
regards
Andre Seesink
- Minglarn
- Posts: 214
- Joined: Friday 21 August 2015 19:27
- Target OS: Raspberry Pi / ODroid
- Domoticz version: v3.8153
- Location: Stockholm / Sweden
- Contact:
Re: Geofencing, but ....
Interesting.heggink wrote:Hi Andre,
The key is that you use a plugin that gives you distance from your phone to your house. I need the same and did 2 things:
1) develop an icloud plugin that tracks individual phones and
2) adapt the life360 to do the same
I did both because I have both iPhones and droids in the house.
I can send you my life360 plugin and you can find my iCloud plugin in the python list.
Word of caution: the plugins create domoticz distance devices. By default, these are in cm which is rather awkward as the distance gets really big. By mistake (or design) the distance devices report 100x off ie 40.000 cm is actually 40kms. I never changed it since too lazy to change ask the scripts i already built...
The distance is calculated using gps positions and the vincenty python library.
H
Verstuurd vanaf mijn SM-G955F met Tapatalk
How does the script work?
Is it a php script?
If possible. Could you send me the script
Regards Minglarn.
Skickat från min SM-N950F via Tapatalk
“When you eliminate the impossible, whatever remains, however improbable, must be the truth.” -Spock in Star Trek VI
- heggink
- Posts: 980
- Joined: Tuesday 08 September 2015 21:44
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 12451
- Location: NL
- Contact:
Re: Geofencing, but ....
Both are python. One (icliud) is already listed on the wiki, the other is listed as well (life360) but I changed it to add a distance device. Which one are you looking for?
Verstuurd vanaf mijn SM-G955F met Tapatalk
Verstuurd vanaf mijn SM-G955F met Tapatalk
Docker in Truenas scale, close to latest beta
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
- Minglarn
- Posts: 214
- Joined: Friday 21 August 2015 19:27
- Target OS: Raspberry Pi / ODroid
- Domoticz version: v3.8153
- Location: Stockholm / Sweden
- Contact:
Re: Geofencing, but ....
Life360.
Have the whole family ast Life360.
Skickat från min SM-N950F via Tapatalk
Have the whole family ast Life360.

Skickat från min SM-N950F via Tapatalk
“When you eliminate the impossible, whatever remains, however improbable, must be the truth.” -Spock in Star Trek VI
- heggink
- Posts: 980
- Joined: Tuesday 08 September 2015 21:44
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 12451
- Location: NL
- Contact:
Re: Geofencing, but ....
Can you pm me with an email address? Will send you a zip op my plugin.
Verstuurd vanaf mijn SM-G955F met Tapatalk
Verstuurd vanaf mijn SM-G955F met Tapatalk
Docker in Truenas scale, close to latest beta
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
-
- Posts: 3
- Joined: Friday 31 July 2015 11:01
- Target OS: Raspberry Pi / ODroid
- Domoticz version: stable
- Location: Westcoast, Netherlands
- Contact:
Re: Geofencing, but ....
Have a look at Locative-app for IOS.
It works with json. In the past I used it to turn on/off a switch when I was several meters (300+) from my home. For what I know you van make the range as big as you want.
Haven’t tried it since I closed all the ports on my router and started using a VPN.
It works with json. In the past I used it to turn on/off a switch when I was several meters (300+) from my home. For what I know you van make the range as big as you want.
Haven’t tried it since I closed all the ports on my router and started using a VPN.
- Siewert308SW
- Posts: 290
- Joined: Monday 29 December 2014 15:47
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Stable
- Location: The Netherlands
- Contact:
Re: Geofencing, but ....
Assuming you all are talking about Apple products.
On Android the the Domoticz and Geofence for domoticz didn't work as aspected.
Those two report more often not then it does report.
So took the good old Tasker App and wrote a simple task for a radius of 200m.
It works like charm...
On Android the the Domoticz and Geofence for domoticz didn't work as aspected.
Those two report more often not then it does report.
So took the good old Tasker App and wrote a simple task for a radius of 200m.
It works like charm...
Setup:
- RPi4 - Domo Stable / Aeotec Z-stick7 / PiHole Unbound Gemini
- RPi4 - PiHole / PiVPN Unbound Gemini
- Synology DS923+ / DS218j
- P1 Gas/Power, SmartGateway watermeter
- Fibaro switches, contacts, plugs, smoke/Co2 ect
- rootfs @ USB HDD
- RPi4 - Domo Stable / Aeotec Z-stick7 / PiHole Unbound Gemini
- RPi4 - PiHole / PiVPN Unbound Gemini
- Synology DS923+ / DS218j
- P1 Gas/Power, SmartGateway watermeter
- Fibaro switches, contacts, plugs, smoke/Co2 ect
- rootfs @ USB HDD
- havnegata
- Posts: 114
- Joined: Wednesday 10 September 2014 11:05
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V4.10162
- Location: Norway
- Contact:
Re: Geofencing, but ....
Can you please share this taskSiewert308SW wrote:Assuming you all are talking about Apple products.
On Android the the Domoticz and Geofence for domoticz didn't work as aspected.
Those two report more often not then it does report.
So took the good old Tasker App and wrote a simple task for a radius of 200m.
It works like charm...

- Siewert308SW
- Posts: 290
- Joined: Monday 29 December 2014 15:47
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Stable
- Location: The Netherlands
- Contact:
Re: Geofencing, but ....
For sure:havnegata wrote: ↑Wednesday 09 January 2019 11:11Can you please share this taskSiewert308SW wrote:Assuming you all are talking about Apple products.
On Android the the Domoticz and Geofence for domoticz didn't work as aspected.
Those two report more often not then it does report.
So took the good old Tasker App and wrote a simple task for a radius of 200m.
It works like charm...![]()
Be aware is use VPN so my ip is my local network IP as i'm always connected true VPN to my home network.
Setup:
- RPi4 - Domo Stable / Aeotec Z-stick7 / PiHole Unbound Gemini
- RPi4 - PiHole / PiVPN Unbound Gemini
- Synology DS923+ / DS218j
- P1 Gas/Power, SmartGateway watermeter
- Fibaro switches, contacts, plugs, smoke/Co2 ect
- rootfs @ USB HDD
- RPi4 - Domo Stable / Aeotec Z-stick7 / PiHole Unbound Gemini
- RPi4 - PiHole / PiVPN Unbound Gemini
- Synology DS923+ / DS218j
- P1 Gas/Power, SmartGateway watermeter
- Fibaro switches, contacts, plugs, smoke/Co2 ect
- rootfs @ USB HDD
- havnegata
- Posts: 114
- Joined: Wednesday 10 September 2014 11:05
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V4.10162
- Location: Norway
- Contact:
Re: Geofencing, but ....
Great, thanks!
Re: Geofencing, but ....
Hi Siewert,Siewert308SW wrote: ↑Wednesday 09 January 2019 17:56For sure:havnegata wrote: ↑Wednesday 09 January 2019 11:11Can you please share this taskSiewert308SW wrote:Assuming you all are talking about Apple products.
On Android the the Domoticz and Geofence for domoticz didn't work as aspected.
Those two report more often not then it does report.
So took the good old Tasker App and wrote a simple task for a radius of 200m.
It works like charm...![]()
Be aware is use VPN so my ip is my local network IP as i'm always connected true VPN to my home network.
Thuis___DomoFence_On_Off.prf.xml
Can you help me how to implement geofence in Tasker more in detail?
Thanks Sicco
Who is online
Users browsing this forum: No registered users and 1 guest