Jump to content

Geofence will not run


awzulich

Recommended Posts

Posted

I set up Geofence to turn the lights on when coming home in the evening. I cannot get geofence to turn on the lights, though the "last trigger" came on when I approached. The radius is set to 450, which should be enough time to turn on if there is a delay. I entered the trigger command from home in the evening and the lights come on. Attached are pics of all my settings. I appreciate your help!

Thanks!

Al

geofence3.jpg

geofence2.jpg

geofence1.jpg

Posted
16 minutes ago, awzulich said:

I cannot get geofence to turn on the lights, though the "last trigger" came on when I approached.

The last trigger shows changed at 10:52am. I assume this is well past the Sunrise +15 minutes in your program. So it would only trigger the ELSE since it would be false. If you triggered the app during the time shown in the IF then it would run TRUE and the lights would turn on (as you seem to acknowledge worked in your testing). 

If you wanted to test during other times change your geofence automation to Command: Run Then

This would mean every time you enter your geofence it would perform the THEN of your program. You currently are running the "IF" and it will only turn lights on if the program is TRUE when you entered. 

Additionally, is this program enabled or disabled? If it's enabled it will run at the times you have in your program daily independent of your geofence status. You might want to disable the program if you don't want it running daily. By disabling the program when the app called on the program IF as you cross the geofence it would (only then) turn those specific lights on. 

 

PS: Please note that the best way to share programs is by using the "Copy to Clipboard" function by right clicking on the program. Then post the text directly into the forum post. This makes it easier for anybody helping with the program to not have to describe what to change or type it all over. Photos are good for non-text information.

 

Posted

Thank you for your reply Geddy. To answer your questions:

I only want the program to run evenings on trigger, so I believe "Run If" is appropriate. No?

The program is disabled, so it will only run with trigger, not every day.

The 10:52 time was me going trough the trigger this morning before I wrote this topic, so no response.

I will remember to copy programs, instead of pics. Here it is:

Geofence Lights DO NOT DELETE - [ID 0022][Parent 0001][Not Enabled][Run At Startup]

If
        From    Sunset  - 15 minutes
        To      Sunrise + 15 minutes (next day)
 
Then
        Set 'Sc Front Floods' On
        Set 'Sc Kitchen Sink Light' On
        Set 'Sc LR Floor Lamp' On
        Set 'Sc Rear Flood Lights' On
        Set 'Sc Garage Lights' On
 
Else
   - No Actions - (To add one, press 'Action')
 

I'm still not sure why the program will not run under geofence. Did I miss something in your reply?

Thanks, Al

Posted
1 hour ago, awzulich said:

I'm still not sure why the program will not run under geofence. Did I miss something in your reply?

Look at the program tree. What is the color of the icon for this program? Is it partially red? If so, then it did fire it just fired FALSE. Thus it would run the "ELSE" of the program. You have nothing in the else so that's fine.

You can also look at the Program summary tab and it should show when the program last triggered and if it was true or false. 

When you said it didn't "run under geofence" what do you mean? 

 

1 hour ago, awzulich said:

I only want the program to run evenings on trigger, so I believe "Run If" is appropriate. No?

The program is disabled, so it will only run with trigger, not every day.

Correct. If you only want to trigger (TRUE = run THEN) between the times in your "IF" then you have it set correctly. You can test that when it's within your time statement and tap the "Trigger Enter Command" in the Geofence. 

From what you've posted it looks like UD Mobile should trigger your geofence and in doing so if it's after 15 minutes before sunset should run the THEN of your program. I would test during your "IF" window of time by tapping the "Trigger..." in the app. Then I would test by going for a drive ("well" beyond your geofence area) then when you enter the geofence area it should trigger. When you get home if the lights aren't on check admin console to see if the program ran. If it didn't then something might be wrong with the geofence on the phone. That gets a little tricky to fix. 

1 hour ago, awzulich said:

Geofence Lights DO NOT DELETE - [ID 0022][Parent 0001][Not Enabled][Run At Startup]

I would turn off the "Run at Startup". This could trigger the program if your device reboots in the middle of the night (anytime that the IF would be TRUE).

 

My last thought to test would be to create another test geofence area and have it directly turn a device on when crossed (not in a program, but the actual device). If that works it could be something with UD Mobile and calling on the program. My geofence (radius=750) is setup to turn on a light no matter what. It is triggering the device directly rather than through a program and seems to work every time I enter the geofence. 

I'm on iOS 18.2 (build 22C152) with UD Mobile 1.1.83, but it's worked well for quite a while. 

Posted

Geddy. Thank you again for your replies. I will keep an eye on the colors on the program tree and check the program summary tab as I enter the geofence, as you suggest.

Your idea of having geofence turn on a device on directly is also a great idea and I will try it.

A stupid question ... How do I turn off [Run at Startup} from the program?

Thanks again, Al

Posted
11 hours ago, awzulich said:

How do I turn off [Run at Startup} from the program?

In the program summary tab right click the program and uncheck run at startup (or something along those lines). You should be able to sort the summary area by that column and you can determine if some others might be better not to run on startup depending on what they do. 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...