Geofence not activating virtual switch

Hi,

I have been trying to use the geofence feature for just over a week now. I get a confirmation on leaving and exiting the set location (“Virtual Switch: OK”) but it never toggles the virtual switch when this message is received. It only toggles the virtual switch when I am at home and open the app.

I am using it on an iPhone 5 with latest iOS. Is there anything I can do to diagnose this, or is there maybe something I have setup wrong; the user guide doesn’t cover the virtual switch side of things but I think the setup is correct due to the virtual switch being set to on when I open the app.

Thanks,
Atronic

[quote=“atronic, post:1, topic:180710”]Hi,

I have been trying to use the geofence feature for just over a week now. I get a confirmation on leaving and exiting the set location (“Virtual Switch: OK”) but it never toggles the virtual switch when this message is received. It only toggles the virtual switch when I am at home and open the app.

I am using it on an iPhone 5 with latest iOS. Is there anything I can do to diagnose this, or is there maybe something I have setup wrong; the user guide doesn’t cover the virtual switch side of things but I think the setup is correct due to the virtual switch being set to on when I open the app.

Thanks,
Atronic[/quote]

Can you verify you iOS version please? Knowing the specific version really does matter. Also in terms of toggling what happens is when you exit a specified geofence it sets the virtual switch to OFF or status of 0. When you cross the region boundary of that geofence to enter it turns the switch on and leaves it that way until you exit that region again. Just want to make sure we are on the same page in terms of expected behavior.

iOS version is 7.1.

I have observed the toggle behaviour a couple times, when I leave the geofence it will sometimes toggle the virtual switch to off but when I re-enter I get a confirmation message but it will not change to the on position until I open the app on my phone…

[quote=“atronic, post:3, topic:180710”]iOS version is 7.1.

I have observed the toggle behaviour a couple times, when I leave the geofence it will sometimes toggle the virtual switch to off but when I re-enter I get a confirmation message but it will not change to the on position until I open the app on my phone…[/quote]

v1.2 has had a lot of code changed and hardened around the geofence code specially. It should be getting released in a couple of weeks, let see if you still have the issue after that release. If you want to test it before the release send me an email at support@instruodev.com with your UDID and register your device on test flight.

VS #59 i assigned to my iphone in iviri geofence. after driving 250 meters, VS 59 turns off and all my window/door sensors armed and when i come back, VS59 turned on and all sensors go in “bypass” state. I created another VS dev #138 and will install in my wife’s iphone after i buy another iviri app for her. can someone help me how to incorporate the new VS switch #138 in the luup code below. i am not good in lua code. thanks.

[b][i]autoscene = luup.variable_get(“urn:upnp-org:serviceId:VSwitch1”,“Status”,59)

if(autoscene==“0”)then

return true
else
return false
end[/i][/b]

[quote=“waltzer11, post:5, topic:180710”]VS #59 i assigned to my iphone in iviri geofence. after driving 250 meters, VS 59 turns off and all my window/door sensors armed and when i come back, VS59 turned on and all sensors go in “bypass” state. I created another VS dev #138 and will install in my wife’s iphone after i buy another iviri app for her. can someone help me how to incorporate the new VS switch #138 in the luup code below. i am not good in lua code. thanks.

[b][i]autoscene = luup.variable_get(“urn:upnp-org:serviceId:VSwitch1”,“Status”,59)

if(autoscene==“0”)then

return true
else
return false
end[/i][/b][/quote]

The easiest thing to use is PLEG. Reach out on the plugin forum for the PLEG plugin, and use each virtual switch status as a trigger and then you can create conditions that will evaluate both switches and perform an action when the condition is true.