Using Geofencing to determine if or not I should run the scene

Hi,

I’m trying to use the new Geofence function into the Vera App! I set Home1 on my phone and Home2 on my wife’s phone (Since I cannot put both with “Home” because it is the same name!).

Basically I’m having scenes that turn ON or turn OFF lights… But if BOTH of us are out of the house… There is no useful action to turn the Light ON…

So I’m thinking of using a Variable or two, to figure out if both are not home then not run the scene… I look at the [url=http://forum.micasaverde.com/index.php/topic,18679.msg142017.html#msg142017]http://forum.micasaverde.com/index.php/topic,18679.msg142017.html#msg142017[/url] post, but how do I set the variable from the Geofence function in the Vera App?

I’m very newbie into Vera programming, but I think I have to dig this way a little since I cannot do specific thing like this one without going on this path!

Thanks,
Joel

I’m assuming you are on Ui7 so if under my modes you checked both Geofencimg options, Vera should switch to AWAY mode when both of you are gone. Mine does as I get the notification (still in QA/Testing mode on the UI7 QA Vera) You should be able to use that as a trigger for a scene. Or as a condition to not run a scene via some LUUP code.

See http://forum.micasaverde.com/index.php/topic,28051.msg200257.html#msg200257

And the documentation on House Modes can be found here: House Modes - MiOS

Basically if the Mode variable is 2 (Away) which indicates both of you are gone, a return(FALSE) will cause a scene will not run

Great info here… I will check that up and see what I can do from that!
Thanks for you help… I may get back with more questions, but at least I have a starting point :wink:
joel

Okay, I test an nothing is working! I have a “House Modes Plugin” installed, which permit me to use it as a trigger…
Did configure my scene using it… But my wife’s away already and when I go out, i receive a notification from the vera app that I’m exiting the zone (Home)… But still in mode “Home”, it does not go to “Away”… What should I do?

Did set it manually in mode “Away”, “Vacation”… and using this url http://[veraIP]:3480/data_request?id=variableget&Variable=Mode
Am able to see the mode switching to 2, 4, etc…

I cannot switch manually to mode “Night”? I guess it switch by itself knowing when it is night? What is the criteria to switch to night?

Sorry, me again!
For some reason, it does switch to “Night” mode, and beside going to unlock - re-lock my door… I checked my apps and was indeed to night mode…
I don’t think the lock-unlock thing did something to change that!!! And know I try again to set it manually to night mode and does not goes there!
I’m confused :frowning:

Okay, here is an update… I upgraded from 1.7.439 to 1.7.481.
Now I can switch easily to Night mode, but switching mode can take nearly 30 seconds. Even sometime it show a messagebox saying “waiting 25 seconds to arm”, and countdown!
Need to do some more testing… I’ll keep posted!

This will be the options under “How much time to wait before changing mode?”. These options allow you to go to bed or leave the house before sensors are set, lights turned off etc.

[quote=“838joel, post:1, topic:184939”]Hi,

I’m trying to use the new Geofence function into the Vera App! I set Home1 on my phone and Home2 on my wife’s phone (Since I cannot put both with “Home” because it is the same name!).

Basically I’m having scenes that turn ON or turn OFF lights… But if BOTH of us are out of the house… There is no useful action to turn the Light ON…

So I’m thinking of using a Variable or two, to figure out if both are not home then not run the scene… I look at the [url=http://forum.micasaverde.com/index.php/topic,18679.msg142017.html#msg142017]http://forum.micasaverde.com/index.php/topic,18679.msg142017.html#msg142017[/url] post, but how do I set the variable from the Geofence function in the Vera App?

I’m very newbie into Vera programming, but I think I have to dig this way a little since I cannot do specific thing like this one without going on this path!

Thanks,
Joel[/quote]

Okay, I exchange few emails with support, and basically it is not supported yet! Here is there reply:

Hello Joel,

The Geolocation and Geofencing ? Release notes ? Support of one gateway, one user, one device/phone/tablet, at present. Multi-controller support coming next year ( 2015 ).

Same is for the push notifications. Our developers are working on that to improve it in a feature release.

Thank you for understanding.

So look’s like doing Geofencing logic with two or more occupant of the house is not possible now!

I use the iPhone locator and build logic around both my wife’s and my iphone. Have you considered using it in the meantime?

I’m running on Android phone’s!

Honestly, it was one of the reasons I stuck with the iPhone when my contract was up. The app is just so useful that I didn’t want to give it up!