Page 1 of 1
Domofence triggers at phone reboot
Posted: Friday 19 January 2018 13:59
by Persisto
I setup Domoticz with DomoFence so as to open the gate at my house when I am at 250m. This is impressive and works most of the time. (The phone does not always seem to transmit the passage over the fence in Android 7, 6 seemed to work better on my Samsung A5)
When I restart my phone (like after an MT battery or for whatever reason) entry within de GeoFence is triggered and my gates open.
Are there settings in with which I can modify this behavior?
I use an LUA script to open the gate. Any ideas on what I could include to prevent this behavior?
Thanks in advance
Re: Domofence triggers at phone reboot
Posted: Friday 19 January 2018 17:48
by Persisto
In fact, an Exit is also triggered (if you happen to be outside of the fenced area when your phone starts.)
I feel that only transits should trigger an Entry or Exit. DomoFence should do nothing unless actually entering or exiting the fenced area or alternatively, Domofence should interrogate the related switch and only trigger an event if appropriate. (Related switch shows you are outside, phone detects you outside de the fence, nothing will happen.)
I already love how it works now (instead of waiting 15 seconds in front of the gate) and will just reboot my phone as little as possible.
Re: Domofence triggers at phone reboot
Posted: Friday 19 January 2018 18:42
by elmortero
When domofence detects that you being away (real or phone is of) set a switch in Domoticz?
If so you could include in your Lua script a "grace" time by only opening the gate if that switch as been Off/Away for longer than x minutes (with devicelastupdate)
Re: Domofence triggers at phone reboot
Posted: Saturday 03 February 2018 10:44
by Persisto
Thank you for the suggestion, but I do not see how that could work. The App does not emit anything before being switched off (or running out of battery or whatever) so it would be tricky to distinguish a transit from a power-on.
The gate only opens on a restart my phone when I am within the fence (so most likely at home) consequences are likely limited to "comments from my neighbors"