Geofence for Domoticz

Moderator: leecollings

Post Reply
Evelen
Posts: 234
Joined: Thursday 09 July 2015 12:03
Target OS: Linux
Domoticz version: 2.4538
Location: Norway
Contact:

Re: Geofence for Domoticz

Post by Evelen »

worked bad today, when i come home it sent a off signal, and than it send some on and off singals when I was home.
Extended the range now, so i will test tomorrow
Pisellon1
Posts: 14
Joined: Tuesday 09 February 2016 12:10
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Geofence for Domoticz

Post by Pisellon1 »

Maybe a stupid question.
You have to take app GeoFence open on background?
Thank you
Appesteijn
Posts: 134
Joined: Friday 10 April 2015 23:53
Target OS: Linux
Domoticz version:
Contact:

Re: Geofence for Domoticz

Post by Appesteijn »

Pisellon1 wrote:Maybe a stupid question.
You have to take app GeoFence open on background?
Thank you
If you have 'added a geofence' you can close the app. It will listen in the background and only gets triggered when you cross the geofence.
Pisellon1
Posts: 14
Joined: Tuesday 09 February 2016 12:10
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Geofence for Domoticz

Post by Pisellon1 »

Thank you for the info sir!
Guest

Re: Geofence for Domoticz

Post by Guest »

Does geofence not drain your telephones battery because the use of GPS??


Verzonden vanaf mijn iPhone met Tapatalk
Robert
Posts: 16
Joined: Saturday 01 March 2014 18:48
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Geofence for Domoticz

Post by Robert »

Does geofence not drain your telephones battery because the use of GPS??


Verzonden vanaf mijn iPhone met Tapatalk
User avatar
RoadXY
Posts: 278
Joined: Monday 07 April 2014 12:50
Target OS: Raspberry Pi / ODroid
Domoticz version: 2.2331
Location: Near Gorinchem
Contact:

Re: Geofence for Domoticz

Post by RoadXY »

It uses several things to determine your location like wifi accesspoints it sees, connected phone cell towers and, only if necessary, GPS.

If you have Google Now enabled (or at least Google Location History) then your phone is already trying to figure out where it is every minute.
Off course it wil use some battery but most of the time not more then 5% - 10% on a full day of use (which off course is different on every phone).

According to several reports on internet, the Facebook app uses more! Even when not used. (Don't know if this is true: I don't use the Facebook app)
Evelen
Posts: 234
Joined: Thursday 09 July 2015 12:03
Target OS: Linux
Domoticz version: 2.4538
Location: Norway
Contact:

Re: Geofence for Domoticz

Post by Evelen »

Have a request:
If the client does not get "ok" on JSON it should try again in a minute or something, now nothing happens if first JSON not reach Domoticz
Appesteijn
Posts: 134
Joined: Friday 10 April 2015 23:53
Target OS: Linux
Domoticz version:
Contact:

Re: Geofence for Domoticz

Post by Appesteijn »

Evelen wrote:Have a request:
If the client does not get "ok" on JSON it should try again in a minute or something, now nothing happens if first JSON not reach Domoticz
Do you get a timeout? The already checks if you have an internet connection and waits to call the url untill your phone has an internet connection.
Evelen
Posts: 234
Joined: Thursday 09 July 2015 12:03
Target OS: Linux
Domoticz version: 2.4538
Location: Norway
Contact:

Re: Geofence for Domoticz

Post by Evelen »

Appesteijn wrote:
Evelen wrote:Have a request:
If the client does not get "ok" on JSON it should try again in a minute or something, now nothing happens if first JSON not reach Domoticz
Do you get a timeout? The already checks if you have an internet connection and waits to call the url untill your phone has an internet connection.
my wifi on the phone is a litle unstable, it "has internet", but not realy.
Evelen
Posts: 234
Joined: Thursday 09 July 2015 12:03
Target OS: Linux
Domoticz version: 2.4538
Location: Norway
Contact:

Re: Geofence for Domoticz

Post by Evelen »

argh, works bad, If i don't activate wifi it never now I'm home.
Appesteijn
Posts: 134
Joined: Friday 10 April 2015 23:53
Target OS: Linux
Domoticz version:
Contact:

Re: Geofence for Domoticz

Post by Appesteijn »

Evelen wrote:argh, works bad, If i don't activate wifi it never now I'm home.
Could you try to set your radius to 500 meters? Then your phone wouldn't have wifi yet so your bad wifi can mess up the call to your server.
Evelen
Posts: 234
Joined: Thursday 09 July 2015 12:03
Target OS: Linux
Domoticz version: 2.4538
Location: Norway
Contact:

Re: Geofence for Domoticz

Post by Evelen »

Appesteijn wrote:
Evelen wrote:argh, works bad, If i don't activate wifi it never now I'm home.
Could you try to set your radius to 500 meters? Then your phone wouldn't have wifi yet so your bad wifi can mess up the call to your server.
true, and that works, but i still need to have wifi on :P
Evelen
Posts: 234
Joined: Thursday 09 July 2015 12:03
Target OS: Linux
Domoticz version: 2.4538
Location: Norway
Contact:

Re: Geofence for Domoticz

Post by Evelen »

even if i use 500M and wifi.

Sometimes when I'm at home it sends the "away/off" messages. then, after a few seconds it sending a "home/on" message. Sometimes it sending more "home/on" messages while I'm already home.
asjmcguire
Posts: 71
Joined: Saturday 13 July 2013 2:45
Target OS: Linux
Domoticz version: 3.5877
Location: Scotland
Contact:

Re: RE: Re: Geofence for Domoticz

Post by asjmcguire »

Evelen wrote:even if i use 500M and wifi.

Sometimes when I'm at home it sends the "away/off" messages. then, after a few seconds it sending a "home/on" message. Sometimes it sending more "home/on" messages while I'm already home.
I even tried setting it to 5000 metres - it still does the switch on and off every 10 or so seconds sometimes for no reason at all. I gave up and turned the Geofence off - it's certainly not the only app that I've ever had Geofence problems with though, I blame Android.

Sent from my Nexus 4 using Tapatalk
AEOTEC ZStick, 11 ZWave Nodes, RFXCOMM, 50ish Byron Sockets.. HE851 (PIR), 2x HE852 (DoorContact)
WS2300, CM180, CC128, 2xTHGR122NX, 2xPiZeroW w/DS18B20, 8Ch 1W Relay Board.
8 Panasonic IP Cams, 1 16ch CCTV DVR + 15 CCTV Cams
Appesteijn
Posts: 134
Joined: Friday 10 April 2015 23:53
Target OS: Linux
Domoticz version:
Contact:

Re: RE: Re: Geofence for Domoticz

Post by Appesteijn »

asjmcguire wrote: I even tried setting it to 5000 metres - it still does the switch on and off every 10 or so seconds sometimes for no reason at all. I gave up and turned the Geofence off - it's certainly not the only app that I've ever had Geofence problems with though, I blame Android.

Sent from my Nexus 4 using Tapatalk
You could try to look into your location history (there is a link in this topic), sometimes it helps to identify problems.
forum026
Posts: 6
Joined: Friday 04 March 2016 7:39
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Geofence for Domoticz

Post by forum026 »

Appesteijn wrote:
niclasc wrote: Does "Geofence added" and " Geofence removed" equals "on" and "off"?

Strange thing is that today it seams to work. But yesterday Geofence was "on" nomatter where I was
No, when you add a geofence, your phone will monitor when you enter the geofence (send on command) and when you leave the geofence (send off command). If you remove the geofence, your phone will stop monitoring and will never send on or off.

Good to hear it works now, if you need any help, just ask!
I have similar problem. The DomoFence is showing entering or existing zone correctly, but it seems not sending 'Off' to domoticz.
All seems to be correct configured (right buttom works fine).

Is there some kind of debug possible?
Appesteijn
Posts: 134
Joined: Friday 10 April 2015 23:53
Target OS: Linux
Domoticz version:
Contact:

Re: Geofence for Domoticz

Post by Appesteijn »

forum026 wrote: I have similar problem. The DomoFence is showing entering or existing zone correctly, but it seems not sending 'Off' to domoticz.
All seems to be correct configured (right buttom works fine).

Is there some kind of debug possible?
If there are errors you should see them in a Toast (the short popup message). If your virtual switch does get switched on, the communication should be OK. And if the app give a notification when entering the geofence, that should work also.
You could also look into your location history at google and see if anything weird happens: https://maps.google.com/locationhistory/b/0

And you could try to see what happens when you place the geofence at another location (e.g. at work) to test if it works there.
User avatar
RoadXY
Posts: 278
Joined: Monday 07 April 2014 12:50
Target OS: Raspberry Pi / ODroid
Domoticz version: 2.2331
Location: Near Gorinchem
Contact:

Re: Geofence for Domoticz

Post by RoadXY »

Appesteijn wrote:
forum026 wrote: I have similar problem. The DomoFence is showing entering or existing zone correctly, but it seems not sending 'Off' to domoticz.
All seems to be correct configured (right buttom works fine).

Is there some kind of debug possible?
If there are errors you should see them in a Toast (the short popup message). If your virtual switch does get switched on, the communication should be OK. And if the app give a notification when entering the geofence, that should work also.
You could also look into your location history at google and see if anything weird happens: https://maps.google.com/locationhistory/b/0

And you could try to see what happens when you place the geofence at another location (e.g. at work) to test if it works there.
The results in that website are flattened out.
If you want raw data use this app:
https://play.google.com/store/apps/deta ... ionhistory

In my case I saw that the location jumped around quit an bit.
forum026
Posts: 6
Joined: Friday 04 March 2016 7:39
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Geofence for Domoticz

Post by forum026 »

Appesteijn wrote: If there are errors you should see them in a Toast (the short popup message). If your virtual switch does get switched on, the communication should be OK. And if the app give a notification when entering the geofence, that should work also.
You could also look into your location history at google and see if anything weird happens: https://maps.google.com/locationhistory/b/0

And you could try to see what happens when you place the geofence at another location (e.g. at work) to test if it works there.
There were not error messages. This weekend I updated the Domoticz software to V3.xxx and now it's working fine. :D
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests