Page 1 of 1

Automatically arm/disarm security panel based on geo-fencing

Posted: Wednesday 04 January 2017 11:34
by BazsoDombiAndras
Hi there!

I'm thinking how nice it would be if the Domoticz security panel could automatically be armed when me and my phone exit a virtual geo-fence around my house (let's say when i get more than 120 meters away from my house) and automatically disarmed when me and my phone get back inside the virtual geofence.

Geo-fence based triggers are not a problem, there are several Android apps which can flip switches based on geo-fences. However, I have no idea how to arm/disarm the security panel in an automatic way, for example through JSON code. Is there any way to change the state of the security panel by JSON code, by scripts, by events, etc? I could not find any information about this. If there is such a way, how can the security PIN be transmitted in this automatic way?

Thank you!

Re: Automatically arm/disarm security panel based on geo-fencing

Posted: Thursday 05 January 2017 19:18
by SweetPants
I think you can use the (paid) Domoticz app (Android only) for this. This app supports geo-fencing and you can flip a dummy switch that could arm/disarm your security panel.

Re: Automatically arm/disarm security panel based on geo-fencing

Posted: Thursday 05 January 2017 20:14
by BazsoDombiAndras
Thank you! Yes, I eventually figured out the same solution. I was surprised that the dummy switches can change the status of the Security Panel without transmitting a PIN, but I'm happy that it works. The only difference is that I use the Domotica app for flipping the dummy switch based on location. The Geo-fencing of the Domoticz app is worthless, it won't accept my location no matter what I do (not even if I give it coordinates). Domotica, on the other hand is 3 times cheaper and works well ;)

Re: Automatically arm/disarm security panel based on geo-fencing

Posted: Friday 17 March 2017 7:34
by Odroid
Hey guys, I'm trying to figure this out myself. I created a dummy switch, but can't find a way to set the status for the security panel in Blockly or in the settings for the dummy switch.

Could you please explain to me how you have done this?

Re: Automatically arm/disarm security panel based on geo-fencing

Posted: Friday 17 March 2017 7:39
by emme
did you try something like this?

I admit I use LUA to set it... never used blocky for such need

Re: Automatically arm/disarm security panel based on geo-fencing

Posted: Friday 17 March 2017 8:02
by Odroid
Thanks for your reply.

Yes, that's basically what I tried to do, but couldn't find an option to set the status for the panel.

Isn't the blue block just a notification for the log? Or can this also be used for setting the panel status?

Haven't used Lua before, but maybe I should get into that.

Would you mind sharing what your script looks like, and how to add it to the switch?

Re: Automatically arm/disarm security panel based on geo-fencing

Posted: Sunday 16 April 2017 14:49
by DieterKoblenz
I'm looking for the same thing, why can't I set the alarm panel state in Blockly? Does anyone have an easy workaround.

Re: Automatically arm/disarm security panel based on geo-fencing

Posted: Saturday 26 August 2017 19:23
by islandman
Anybody found a solution? Having the same problem.