jacmath Posted March 7, 2021 Share Posted March 7, 2021 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
oberkc Posted March 7, 2021 Share Posted March 7, 2021 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
kissfan Posted March 7, 2021 Share Posted March 7, 2021 I do similar, but ignore time-of-day. Just run the lights for 30 minutes. Sent from my iPhone using Tapatalk Link to comment
jacmath Posted March 7, 2021 Author Share Posted March 7, 2021 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 Link to comment
oberkc Posted March 7, 2021 Share Posted March 7, 2021 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
MrBill Posted March 7, 2021 Share Posted March 7, 2021 @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
jacmath Posted March 7, 2021 Author Share Posted March 7, 2021 and I just ran the programs you suggested to me and everything is working wonderfully thank you again Jack Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.