Jump to content

Changes and becomes


silverton38

Recommended Posts

Posted

I am trying to program a light to turn on if it is night time (between sunset and sunrise) only when the elk alarm is disarmed. What happens is if the alarm is already disarmed it automatically turns on the light at sunset. I only want it to turn on the light if it is disarmed and the time specified. Does anyone have any advice on how to solve this?

 

Posted
17 minutes ago, silverton38 said:

I am trying to program a light to turn on if it is night time (between sunset and sunrise) only when the elk alarm is disarmed. What happens is if the alarm is already disarmed it automatically turns on the light at sunset. I only want it to turn on the light if it is disarmed and the time specified. Does anyone have any advice on how to solve this?

 

Post your program

Posted
11 hours ago, silverton38 said:

I am trying to program a light to turn on if it is night time (between sunset and sunrise) only when the elk alarm is disarmed. What happens is if the alarm is already disarmed it automatically turns on the light at sunset. I only want it to turn on the light if it is disarmed and the time specified. Does anyone have any advice on how to solve this?

If I'm reading this correctly.... you want to 1) disarm ELK 2) if it's between sunset and sunrise then turn of a specified light.   You need two programs to do that.

Program 1

IF

    Elk is disarmed

then

    Run Program 2(if)

 

Program 2 (DISABLED)

If

    Sunset

to Sunrise (next day)

then

    Turn on light.

 

Program 2 must be Disabled.   A disabled program still run when run from another program.  It does not Run just because the IF conditions are satisfied.

 

--

As mentioned the best way to get programing help is to post the starting point.  For future reference it's easy to do, Click and then right click the program name in the program tree, select copy to clipboard in the context menu that appeared.  In a forum post click the "<>" symbol in the toolbar above a post. In the resulting sub-window click into it then type Ctrl-V to paste the contents on the clipboard.

  • Like 2
  • 1 month later...
Guest
This topic is now closed to further replies.

×
×
  • Create New...