Jump to content

GeoFence program


jacmath

Recommended Posts

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

Link to comment

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:

 

Link to comment
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.  

Link to comment

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

Link to comment

Archived

This topic is now archived and is closed to further replies.


  • Recently Browsing

    • No registered users viewing this page.
  • Forum Statistics

    • Total Topics
      36.9k
    • Total Posts
      370.2k
×
×
  • Create New...