Vera Proximity app and geofencing

Hi

I am trying to get the geofencing in Vera Edge to work and read VeraProximity is a great app.

The app works great except I don’t know how to change a mode (home and away) when I enter or leave the geofenced area. I can toggle virtual switch’s or kick scenes off but not sure how to change the mode…

The official vera app geofencing didn’t work that well for me. How are others doing geofencing?

Thanks
N

Use Vera Proximity to toggle switches or scenes as you have described. You then need to make the scene have an action to change the home mode state. I suggest using the Home Modes plugin (MiOS Apps) for this because it makes it a lot easier. You can do it without the plugin by using luup code. I don’t know the code right off hand but you should be able to search the forum and find it.

One thing that I do different than what I described above is that I use Vera Proximity to toggle a multiswitch and I use PLEG for my logic rather than scenes. The reasoning behind this is that I use the multiswitch to show my status (home/away) as well as my wife’s status (home/away) and the PLEG uses that to determine whether the house should be in home or away mode. I also use ping sensors as a back up for the geofencing because it is still not 100% reliable at this point.

[quote=“lingerba, post:2, topic:188498”]Use Vera Proximity to toggle switches or scenes as you have described. You then need to make the scene have an action to change the home mode state. I suggest using the Home Modes plugin (MiOS Apps) for this because it makes it a lot easier. You can do it without the plugin by using luup code. I don’t know the code right off hand but you should be able to search the forum and find it.

One thing that I do different than what I described above is that I use Vera Proximity to toggle a multiswitch and I use PLEG for my logic rather than scenes. The reasoning behind this is that I use the multiswitch to show my status (home/away) as well as my wife’s status (home/away) and the PLEG uses that to determine whether the house should be in home or away mode. I also use ping sensors as a back up for the geofencing because it is still not 100% reliable at this point.[/quote]

Similar usage here under UI 5. I use Vera Proximity to set Multi switches for everyone on the house except one daughter who uses iPhone, her switch is set by PLEG accessing the iPhone app… In addition PLEG can determine if no one is home it will then set the DSC Alarm to Armed Away.

Thanks for the replies chaps

Is anyone able to post a copy of their virtual switches and how they sent the Modes?

I am really struggling to get my head round it all

Thanks
N

Right, 2 virtual switches have now been created… But this is where i am stuck. Actions…

I think i have solved my issue, does this look ok?

PLC Version:7.46Mode Setting[14]
2015-08-23 13:04:04.617

Registration

Installed: Thu Aug 20 2015. 90 Day Evaluation Period which allows a total of 4 PLEG and/or PLTS plugins.
Triggers

Name Description
tHannahSwitchA Hannah Home/Away is turned off
tHannahSwitchH Hannah Home/Away is turned on
tNickSwitchA Nick Home/Away is turned off
tNickSwitchH Nick Home/Away is turned on
Modes

Mode Name
Home Home
Away Away
Conditions

Name Repeat Expression
cSwitchOn No tHannahSwitchH or tNickSwitchH
cSwitchOff No tHannahSwitchA or tNickSwitchA

Actions for Condition: cSwitchOff
Device Action
Mode Setting SetHouseMode Mode=2

Actions for Condition: cSwitchOn
Device Actions:
Mode Setting SetHouseMode Mode=1

Thanks
N

Oh no. Crashed and burned…

So the VeraProcimity App cant see my virtual switches (these were created via the VirtualSwitch plugin)

Any ideas?

Thanks
N

You have to Enter your Vera Credentials (for remote access) and then List your Veras.
Until you “List your Veras” csan successfully see your Veras you will not be able to send commands to it.

[quote=“alpha1, post:6, topic:188498”]Oh no. Crashed and burned…

So the VeraProcimity App cant see my virtual switches (these were created via the VirtualSwitch plugin)

Any ideas?

Thanks
N[/quote]

Thanks rich for helping me out!
All solved

Cleared the app setting on the phone, re-added vera into the veraproximity app. BOOM it showed my switches!

What you have will work, but I think you can be more efficient with it. So I just have a couple of suggestions for you.

First, I recommend using a multi-switch rather than multiple virtual switches. Basically one multi-switch does exactly the same thing as 8 virtual switches. It is kind of just a personal preference, but it will be a lot cleaner to have on one “device” rather than separate devices. I believe it also saves memory on Vera as well. You can name each switch something specific too which makes it really easy to use.

Next, it seems like you have 2 switches for each person, one being “home” and one be “away”. Just like above, that will work, but you can be more efficient with it. I just have 1 switch (as part of a multi-switch) for each person. If the switch is on, it means the person is home. If the switch is off, it means the person is away. You can do the same thing for your overall home mode as well.

[quote=“lingerba, post:9, topic:188498”]What you have will work, but I think you can be more efficient with it. So I just have a couple of suggestions for you.

First, I recommend using a multi-switch rather than multiple virtual switches. Basically one multi-switch does exactly the same thing as 8 virtual switches. It is kind of just a personal preference, but it will be a lot cleaner to have on one “device” rather than separate devices. I believe it also saves memory on Vera as well. You can name each switch something specific too which makes it really easy to use.

Next, it seems like you have 2 switches for each person, one being “home” and one be “away”. Just like above, that will work, but you can be more efficient with it. I just have 1 switch (as part of a multi-switch) for each person. If the switch is on, it means the person is home. If the switch is off, it means the person is away. You can do the same thing for your overall home mode as well.[/quote]

Lingerba

Thanks for the recommendations.

I now have the multiswitch installed and configured for 2 switches as you recommended.
Really appreciate you and all the others who posted.

Thanks
N