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
Domofence triggers at phone reboot
Moderators: leecollings, remb0
-
- Posts: 18
- Joined: Wednesday 03 February 2016 21:10
- Target OS: Linux
- Domoticz version: 2.4386
- Location: Plailly France
- Contact:
Domofence triggers at phone reboot
Plailly France
X10 Marmitek + Ebode for lights and blinds + CM15
mochad
Domoticz, Domoticz Lite, Geofence
Raspberry Pi III
X10 Marmitek + Ebode for lights and blinds + CM15
mochad
Domoticz, Domoticz Lite, Geofence
Raspberry Pi III
-
- Posts: 18
- Joined: Wednesday 03 February 2016 21:10
- Target OS: Linux
- Domoticz version: 2.4386
- Location: Plailly France
- Contact:
Re: Domofence triggers at phone reboot
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.
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.
Plailly France
X10 Marmitek + Ebode for lights and blinds + CM15
mochad
Domoticz, Domoticz Lite, Geofence
Raspberry Pi III
X10 Marmitek + Ebode for lights and blinds + CM15
mochad
Domoticz, Domoticz Lite, Geofence
Raspberry Pi III
-
- Posts: 247
- Joined: Sunday 29 November 2015 20:46
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.9639
- Location: Spain
- Contact:
Re: Domofence triggers at phone reboot
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)
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)
-
- Posts: 18
- Joined: Wednesday 03 February 2016 21:10
- Target OS: Linux
- Domoticz version: 2.4386
- Location: Plailly France
- Contact:
Re: Domofence triggers at phone reboot
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"
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"
Plailly France
X10 Marmitek + Ebode for lights and blinds + CM15
mochad
Domoticz, Domoticz Lite, Geofence
Raspberry Pi III
X10 Marmitek + Ebode for lights and blinds + CM15
mochad
Domoticz, Domoticz Lite, Geofence
Raspberry Pi III
Who is online
Users browsing this forum: No registered users and 1 guest