Jump to content

Programming Assistance Please


dbuss

Recommended Posts

Posted

I would like some help in getting the following program to run.

 

What am I doing wrong?

 

I have scene with various Christmas light controllers.

 

I can turn on the scene on and off from the admin console or my mobile apps. But, I have been unable to get the program to do the same. I have similar programs to turn them off.

 

Thank you!!

 

 

 

Christmas  Lights On - [iD 001A][Parent 0001]

 

If

        Status  'Christmas Tree Lights' is not On

    And Time is  4:30:00PM

 

Then

        Run Program 'Christmas Lights On 2' (Then Path)

Else

   - No Actions - (To add one, press 'Action')

 

 

 

Christmas Lights On 2 - [iD 0022][Parent 0001]
 
If
   - No Conditions - (To add one, press 'Schedule' or 'Condition')
 
Then
        Set Scene 'Christmas Lights' On
 
Else
   - No Actions - (To add one, press 'Action')
 
 
Posted

Besides not being sure why you break this into two programs, I don't see anything wrong programmatically.  Is the first program disabled?  Does the "Christmas Lights" scene turn on if you manually run (then path) the second program?  Does the program log show the first program having run at 4:30 (and being true)?  Does the program log show the second program as true and run at 4:30?  Do you have any unsaved changes to either of these programs?

Posted

What is the device that has the condition, "Status  'Christmas Tree Lights' is not On?" What kind of load, incandescent, LED, CFL, something else?

 

What's the result of running Then for the first program, running Then for the second program?

Posted

Besides not being sure why you break this into two programs, I don't see anything wrong programmatically.  Is the first program disabled?  Does the "Christmas Lights" scene turn on if you manually run (then path) the second program?  Does the program log show the first program having run at 4:30 (and being true)?  Does the program log show the second program as true and run at 4:30?  Do you have any unsaved changes to either of these programs?

oberkc, please remarks below.

 

Besides not being sure why you break this into two programs, I don't see anything wrong programmatically.  After trying many variations of the program, I decided to try having the one program triggered by the other program. I remember having to do this with another program, so I thought I would try it agian. But it didn't solve the problem.

 

Is the first program disabled?  No

 

Does the "Christmas Lights" scene turn on if you manually run (then path) the second program?  Both programs will run as expected if the "Then Path" is run manually.

 

Does the program log show the first program having run at 4:30 (and being true)?  Does the program log show the second program as true and run at 4:30? It does not and this seems to be where the problem is.

 

Do you have any unsaved changes to either of these programs? No

Posted

What is the device that has the condition, "Status  'Christmas Tree Lights' is not On?" What kind of load, incandescent, LED, CFL, something else?

 

What's the result of running Then for the first program, running Then for the second program?

Hi Stu,

 

Please answers below.

 

What is the device that has the condition, "Status  'Christmas Tree Lights' is not On?" It's a Z-Wave On/Off device

 

What kind of load, incandescent, LED, CFL, something else?  LED

 

What's the result of running Then for the first program, running Then for the second program? Running the then from either program results in the expected outcome. The Christmas Lights all turn on.

Posted

Why do you check if it is not On at all?  Just turn it on at the time required.  If it is already on, no harm, no foul.  That extra status check forces you into multiple programs.

Posted

Why do you check if it is not On at all?  Just turn it on at the time required.  If it is already on, no harm, no foul.  That extra status check forces you into multiple programs.

That's how I originally had it programmed and it didn't work for me.

Posted

That's how I originally had it programmed and it didn't work for me.

 

Then that is a bigger problem.  A simple timer should absolutely execute without error.  How is your Zwave comms in general? 

Posted

If all you're trying to do is simply turn the lights on and off based on a schedule you would do the following

 

 

If time is 430pm to 11pm

 

Then set Christmas tree on

 

Or else set Christmas tree off

Posted

Then that is a bigger problem.  A simple timer should absolutely execute without error.  How is your Zwave comms in general? 

Z-Wave communications seem to be good. The interesting thing is I have similar programs to turn off the lights and that works.

Posted

Problem resolved. 

 

I had not changed the time zone when I installed the ISY a couple months ago. Thus it was off by two hours. Even though I said the off program was working it was scheduled to go off after bedtime. So, in my mind that part of it was working. 

 

Currently these are the only programs I have that are time based. So, the problem never appeared before now.

 

Such an easy fix to a frustrating problem.

 

Thanks everyone for the ideas. Much appreciated.

Posted

oberkc, please remarks below.

 

Besides not being sure why you break this into two programs, I don't see anything wrong programmatically.  After trying many variations of the program, I decided to try having the one program triggered by the other program. I remember having to do this with another program, so I thought I would try it agian. But it didn't solve the problem.

 

Is the first program disabled?  No

 

Does the "Christmas Lights" scene turn on if you manually run (then path) the second program?  Both programs will run as expected if the "Then Path" is run manually.

 

Does the program log show the first program having run at 4:30 (and being true)?  Does the program log show the second program as true and run at 4:30? It does not and this seems to be where the problem is.

 

Do you have any unsaved changes to either of these programs? No

 

dBuss, I really appreciate you taking all the time to answer these questions.  Many times, when I ask questions like this (in an attempt to probe and find more clues) I get no response.  It often seems that folks often don't want help, or don't want to do the work, or don't want to listen.  

 

I am glad you got it working.  Still, I would have expected the program to work (if a couple of hours off) and the log to show the program as having run.

Posted

dBuss, I really appreciate you taking all the time to answer these questions.  Many times, when I ask questions like this (in an attempt to probe and find more clues) I get no response.  It often seems that folks often don't want help, or don't want to do the work, or don't want to listen.  

 

I am glad you got it working.  Still, I would have expected the program to work (if a couple of hours off) and the log to show the program as having run.

oberkc,

 

As I look back through the logs, the program was working. The situation was, I would look at the logs when the lights were supposed to go on. I would see nothing in the logs and paid no attention to the time in the logs. Then I would change the program trying to figure pout what I was doing wrong. In the meantime I would manually turn on the lights through the admin console or mobile app. Of course I would have no idea the program triggered because the lights were already on. As usual, the ISY was doing exactly what it was told to do. I just didn't take the proper time to read the logs carefully.

 

Lesson learned!!

Guest
This topic is now closed to further replies.

  • Recently Browsing

    • No registered users viewing this page.
  • Forum Statistics

    • Total Topics
      37.2k
    • Total Posts
      372.5k
×
×
  • Create New...