Geofencing, but ....

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
ajseesink
Posts: 9
Joined: Monday 24 December 2018 11:29
Target OS: -
Domoticz version:
Contact:

Geofencing, but ....

Post by ajseesink »

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
User avatar
heggink
Posts: 980
Joined: Tuesday 08 September 2015 21:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 12451
Location: NL
Contact:

Re: Geofencing, but ....

Post by heggink »

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

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 :-)
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Geofencing, but ....

Post by waaren »

ajseesink wrote: Saturday 05 January 2019 15:37 I want to create an action like this: " If I'm more then 25 KM away from home, I want to enable <device A>"
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
ajseesink
Posts: 9
Joined: Monday 24 December 2018 11:29
Target OS: -
Domoticz version:
Contact:

Re: Geofencing, but ....

Post by ajseesink »

Thanks for your answer. I will check out the Python plugin first.

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 Image) 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
ajseesink
Posts: 9
Joined: Monday 24 December 2018 11:29
Target OS: -
Domoticz version:
Contact:

Re: Geofencing, but ....

Post by ajseesink »

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

waaren wrote: Sunday 06 January 2019 1:11
ajseesink wrote: Saturday 05 January 2019 15:37 I want to create an action like this: " If I'm more then 25 KM away from home, I want to enable <device A>"
FTTT can activate a domoticz device if you leave or enter a certain area. Maybe that can help ?
User avatar
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 ....

Post by Minglarn »

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 Image) 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
Interesting.
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
User avatar
heggink
Posts: 980
Joined: Tuesday 08 September 2015 21:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 12451
Location: NL
Contact:

Re: Geofencing, but ....

Post by heggink »

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

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 :-)
User avatar
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 ....

Post by Minglarn »

Life360.

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
User avatar
heggink
Posts: 980
Joined: Tuesday 08 September 2015 21:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 12451
Location: NL
Contact:

Re: Geofencing, but ....

Post by heggink »

Can you pm me with an email address? Will send you a zip op my plugin.

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 :-)
RobbiHo
Posts: 3
Joined: Friday 31 July 2015 11:01
Target OS: Raspberry Pi / ODroid
Domoticz version: stable
Location: Westcoast, Netherlands
Contact:

Re: Geofencing, but ....

Post by RobbiHo »

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.
User avatar
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 ....

Post by Siewert308SW »

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...
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
User avatar
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 ....

Post by havnegata »

Siewert308SW 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...
Can you please share this taskImage
User avatar
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 ....

Post by Siewert308SW »

havnegata wrote: Wednesday 09 January 2019 11:11
Siewert308SW 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...
Can you please share this taskImage
For sure:
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
(1.43 KiB) Downloaded 246 times
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
User avatar
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 ....

Post by havnegata »

Great, thanks!
Sicco
Posts: 1
Joined: Thursday 04 June 2020 17:17
Target OS: -
Domoticz version:
Contact:

Re: Geofencing, but ....

Post by Sicco »

Siewert308SW wrote: Wednesday 09 January 2019 17:56
havnegata wrote: Wednesday 09 January 2019 11:11
Siewert308SW 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...
Can you please share this taskImage
For sure:
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
Hi Siewert,
Can you help me how to implement geofence in Tasker more in detail?
Thanks Sicco
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest