Jump to content

GeoFence program


jacmath

Recommended Posts

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

Posted

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:

 

  • Like 1
Posted

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

Posted
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.  

  • Like 1
Posted

@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."

  • Like 1
Posted (edited)

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.

  • Recently Browsing

    • No registered users viewing this page.
  • Who's Online (See full list)

    • There are no registered users currently online
  • Forum Statistics

    • Total Topics
      37k
    • Total Posts
      371.4k
×
×
  • Create New...