Using Vera Proximity to activate a condition

Hello hope some one can help me with this scenario:

I’m Using Vera proximity to change the mode of my vera, when entering into my fence to Home mode and when exiting to away, however also I wish when entering in adition to change the mode to home, if it’s nigth time turn on cirtains ligths, is that possible?

thanks guys

You will Need to use conditional scene logic ( Using LUA) or PLEG for your logic.

Many folks have Vera Proximity trip one or two Multi Switches ( two zones, an outer an an inner zone reduce the probability of false triggers) and use PLEG for there home/away logic.

PLEG can easily handle home/away when multiple family members have different travel schedules.

Thanks Richard, I live alone, so there is not any more family members using this, I wish when the vera proximity enters into a fence radius change the mode to HOME and if also is nigth turn on some ligths, any idea how to do this?

thanks.

[quote=“luisvieyra, post:3, topic:192504”]Thanks Richard, I live alone, so there is not any more family members using this, I wish when the vera proximity enters into a fence radius change the mode to HOME and if also is nigth turn on some ligths, any idea how to do this?

thanks.[/quote]

Create a scene that triggers when the house mode changes to Home, which turns on the lights.
In the scene Lua, enter this:

return luup.is_night()

The scene will only run at night.

I was going to use PLEG for similar tasks in my setup, and I was ready to pay for PLEG, but found out that once you pay, your PLEG does not (!) become unlimited. Instead, you are only buying a certain number of scenarios (four?) and have to buy additional PLEG licences for more scenarios. Which would result in ridiculous amount of money in my case. I just spent some time learning how to achieve the same thing using Lua code in Vera scenes.

I was going to use PLEG for similar tasks in my setup, and I was ready to pay for PLEG, but found out that once you pay, your PLEG does not (!) become unlimited. Instead, you are only buying a certain number of scenarios (four?) and have to buy additional PLEG licences for more scenarios. Which would result in ridiculous amount of money in my case. I just spent some time learning how to achieve the same thing using Lua code in Vera scenes.

I think you are wrong echino, what I know is the licencing of PLEG lets you create 4 devices and no limit of inputs, actions, and conditions… am I right RichardTSchaefer???

1 License … 4 PLEG Devices … each PLEG Device can have an Unlimited number of Inputs/Conditions/Actions (Of course there is a practical limit because of memory and CPU power).
Unless you use PLTS devices, one license should handle most basic to intermediate users (equivalent of about 60 scenes).

Thanks Richard for the clarification. However hope you can still help me because I still don’t get how to use a condition en pleg with Vera proximity. Thanks

Enviado desde mi SM-G925I mediante Tapatalk

Vera Alerts can set a Virtual or Multi-Switch that you can use as a trigger in PLEG.

[quote=“luisvieyra, post:7, topic:192504”]Thanks Richard for the clarification. However hope you can still help me because I still don’t get how to use a condition en pleg with Vera proximity. Thanks

Enviado desde mi SM-G925I mediante Tapatalk[/quote]

You need a middle man between Vera Proximity and PLEG as they don’t talk directly.

Vera Proximity can turn on and off a Virtual Switch which PLEG can see the status of. So you need to install the “MultiSwitch” plugin which has 8 virtual switches in one plugin. You can use Vera proximity to turn one or more of the eight switch on and off as you enter or exit different fences. Have PLEG use the multiswitch as an input device and when the switch is on or off have a condition do what you want it to do.

You could also use the stock VERA scenes for basic things like this. Have Vera proximity run a scene that turns on home mode when you enter and run another scene to turn off home mode when you exit.

Either would work in this case, but Proximity will not directly connect to PLEG without a virtual switch of some sort in the middle.

thank you both for the information!! ;D