Page 6 of 20

Re: Geofence for Domoticz

Posted: Monday 22 February 2016 22:35
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

Re: Geofence for Domoticz

Posted: Tuesday 23 February 2016 8:24
by Pisellon1
Maybe a stupid question.
You have to take app GeoFence open on background?
Thank you

Re: Geofence for Domoticz

Posted: Tuesday 23 February 2016 8:50
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.

Re: Geofence for Domoticz

Posted: Tuesday 23 February 2016 9:09
by Pisellon1
Thank you for the info sir!

Re: Geofence for Domoticz

Posted: Tuesday 23 February 2016 20:54
by Guest
Does geofence not drain your telephones battery because the use of GPS??


Verzonden vanaf mijn iPhone met Tapatalk

Re: Geofence for Domoticz

Posted: Tuesday 23 February 2016 20:54
by Robert
Does geofence not drain your telephones battery because the use of GPS??


Verzonden vanaf mijn iPhone met Tapatalk

Re: Geofence for Domoticz

Posted: Wednesday 24 February 2016 10:13
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)

Re: Geofence for Domoticz

Posted: Friday 26 February 2016 7:42
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

Re: Geofence for Domoticz

Posted: Friday 26 February 2016 12:58
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.

Re: Geofence for Domoticz

Posted: Saturday 27 February 2016 18:33
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.

Re: Geofence for Domoticz

Posted: Monday 29 February 2016 23:16
by Evelen
argh, works bad, If i don't activate wifi it never now I'm home.

Re: Geofence for Domoticz

Posted: Monday 29 February 2016 23:35
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.

Re: Geofence for Domoticz

Posted: Tuesday 01 March 2016 19:20
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

Re: Geofence for Domoticz

Posted: Thursday 03 March 2016 20:41
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.

Re: RE: Re: Geofence for Domoticz

Posted: Friday 04 March 2016 3:52
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

Re: RE: Re: Geofence for Domoticz

Posted: Friday 04 March 2016 7:39
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.

Re: Geofence for Domoticz

Posted: Friday 04 March 2016 8:00
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?

Re: Geofence for Domoticz

Posted: Saturday 05 March 2016 10:04
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.

Re: Geofence for Domoticz

Posted: Saturday 05 March 2016 11:43
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.

Re: Geofence for Domoticz

Posted: Tuesday 08 March 2016 7:47
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