Jump to content
View in the app

A better way to browse. Learn more.

Universal Devices Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

GeoFence program

Featured Replies

Posted

Hello

Sorry, but I cannot properly configure a simple program.

I created an occupancy node that works great with the locative app. When I'm home it say “in” and when I'm outside it say “out”.

Now, how in a program that involves the status of this node, can I trigger it only when the status is changing from out to in and then for example turn on a light outside at sunset?

The following program turns the light on even though I am at home.

Should I use a program with variables ?

Help please

Thank you ..

Jack

If

          'home' Occupied is True

And   From    Sunset  - 15 minutes

          To      Sunrise + 15 minutes (next day)

 Then

        Set 'Light Garage' On

        Wait  30 minutes

        Set 'Light Garage' Off

 Else

   - No Actions - (To add one, press

Assuming that I understand what it is that you are trying to accomplish, I would tackle this problem with two programs...

first program:

if 

occupied is true

then 

run second program (if path)

second program (should be disabled):

if

time is from sunrise

to sunset (next day)

then

turn on garage lights

wait 30 minutes

turn off garage lights

40 minutes ago, jacmath said:

 

I do similar, but ignore time-of-day. Just run the lights for 30 minutes.


Sent from my iPhone using Tapatalk

  • Author

What I want precisely is when I arrive in a radius close to the house that the garage light comes on after the sunset for a period of 30 minutes. The radius is already managed by the Locative app.

Thanks 

Jack

1 hour ago, jacmath said:

What I want precisely is when I arrive in a radius close to the house that the garage light comes on after the sunset for a period of 30 minutes. The radius is already managed by the Locative app.

Thanks 

Jack

I understand that you want the garage lights to come on only as you transition the radius boundary, and only during certain times of the day (sunset-to-sunrise).  That was my assumption.  Thanks.

My suggested approach stands.  

@jacmathYou must use the two program approach that @oberkc suggests.   If the single program that you suggest in the first post is used the lights will also turn on for 30 minutes at sunset if you are home at that time.  The two program approach says "if the first then happens, then run a second program and check some more conditions."

  • Author

and I just ran the programs you suggested to me and everything is working wonderfully

thank you again

Jack

Edited by jacmath

Guest
This topic is now closed to further replies.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.