jeffreycowart Posted May 11, 2017 Posted May 11, 2017 I have a program set up to turn on several zwave switches at sunset and off at 11:59pm (Same day). Works most of the time, but several mornings 3 of the 4 lights are still on. The landscape lights appear to always turn off as expected, but the 3 other lights remain on. They are all the same Homeseer HS-WS-100+ switches. Here is the program: Night Lights - [iD 0003][Parent 0001] If From Sunset + 1 minute To 11:59:00PM (same day) Then Set 'ZW 006 Porch Chandielier' On Set 'ZW 007 Bsmt Grg Lt' On Set 'ZW 008 Bsmt Lt' On Set 'ZW 009 Landscape Lights' On Else Set 'ZW 006 Porch Chandielier' Off Set 'ZW 007 Bsmt Grg Lt' Off Set 'ZW 008 Bsmt Lt' Off Set 'ZW 009 Landscape Lights' Off Here is the info from the log. It appears that at 11:58:59 all the lights are set to off. At 11:59:58 the three lights are turned back on. It seems like the turn off command happened too soon, the program then noticed it was still 11:59 and turned them back on. Wed 05/10/2017 11:58:59 PM : [ ZW006_1] ST 0 (uom=78 prec=0) Wed 05/10/2017 11:58:59 PM : [ ZW007_1] ST 0 (uom=78 prec=0) Wed 05/10/2017 11:58:59 PM : [ ZW008_1] ST 0 (uom=78 prec=0) Wed 05/10/2017 11:58:59 PM : [ ZW009_1] ST 0 (uom=78 prec=0) Wed 05/10/2017 11:59:58 PM : [ ZW006_1] ST 100 (uom=78 prec=0) Wed 05/10/2017 11:59:58 PM : [ ZW007_1] ST 100 (uom=78 prec=0) Wed 05/10/2017 11:59:58 PM : [ ZW008_1] ST 100 (uom=78 prec=0) I assume I wrote my program wrong, can someone provide feedback on how to correct the mistake? Thanks in advance for your help. ISY ver 5.0.10 Zwave 4.55
Michel Kohanim Posted May 11, 2017 Posted May 11, 2017 Hi jeffreycowart, The program looks OK and the logs do not show any errors (or do you see any errors in the logs?). This said - and for debugging purposes so that you can see the last run time of each section - I suggest dividing your program into two: 1. One for Sunset to turn on 2. One at 11:59PM to turn off With kind regards, Michel
jeffreycowart Posted May 12, 2017 Author Posted May 12, 2017 I got home after sunset, so I could not view the last run time from the night before, because sunset had already run. Last night the program worked correctly. I left it as a single program. Here is the log, looks different, because changed to level 3 for more detail: Thu 05/11/2017 11:59:00 PM : [ZWAVE-TX ZW006_1] [25/01] Binary Switch Set val=0x00 ACK,AUTO,EXPLORE To=0x06 Thu 05/11/2017 11:59:00 PM : [ZWAVE-RX ] [0104011301E8] [00/00] CC=0x00 cmd=0x00 [] ACK,AUTO,EXPLORE Thu 05/11/2017 11:59:00 PM : [ZWAVE-RX ] [01050013B4005D] [00/00] CC=0x00 cmd=0x00 [] ACK,AUTO,EXPLORE Thu 05/11/2017 11:59:00 PM : [ZWAVE-TX ZW006_1] [25/02] Binary Switch Get ACK,AUTO,EXPLORE To=0x06 Thu 05/11/2017 11:59:00 PM : [ZWAVE-RX ] [0104011301E8] [00/00] CC=0x00 cmd=0x00 [] ACK,AUTO,EXPLORE Thu 05/11/2017 11:59:00 PM : [ZWAVE-RX ] [01050013B5005C] [00/00] CC=0x00 cmd=0x00 [] ACK,AUTO,EXPLORE Thu 05/11/2017 11:59:00 PM : [ZWAVE-RX ZW006_1] [25/03] Binary Switch Report val=0x00 ACK,AUTO,EXPLORE From=0x06 Thu 05/11/2017 11:59:00 PM : [ZWAVE-TX ZW007_1] [25/01] Binary Switch Set val=0x00 ACK,AUTO,EXPLORE To=0x07 Thu 05/11/2017 11:59:00 PM : [ZWAVE-RX ] [0104011301E8] [00/00] CC=0x00 cmd=0x00 [] ACK,AUTO,EXPLORE Thu 05/11/2017 11:59:00 PM : [ZWAVE-RX ] [01050013B6005F] [00/00] CC=0x00 cmd=0x00 [] ACK,AUTO,EXPLORE Thu 05/11/2017 11:59:00 PM : [ZWAVE-TX ZW007_1] [25/02] Binary Switch Get ACK,AUTO,EXPLORE To=0x07 Thu 05/11/2017 11:59:00 PM : [ZWAVE-RX ] [0104011301E8] [00/00] CC=0x00 cmd=0x00 [] ACK,AUTO,EXPLORE Thu 05/11/2017 11:59:00 PM : [ZWAVE-RX ] [01050013B7005E] [00/00] CC=0x00 cmd=0x00 [] ACK,AUTO,EXPLORE Thu 05/11/2017 11:59:00 PM : [ZWAVE-RX ZW007_1] [25/03] Binary Switch Report val=0x00 ACK,AUTO,EXPLORE From=0x07 Thu 05/11/2017 11:59:00 PM : [ZWAVE-TX ZW008_1] [25/01] Binary Switch Set val=0x00 ACK,AUTO,EXPLORE To=0x08 Thu 05/11/2017 11:59:00 PM : [ZWAVE-RX ] [0104011301E8] [00/00] CC=0x00 cmd=0x00 [] ACK,AUTO,EXPLORE Thu 05/11/2017 11:59:00 PM : [ZWAVE-RX ] [01050013B80051] [00/00] CC=0x00 cmd=0x00 [] ACK,AUTO,EXPLORE Thu 05/11/2017 11:59:01 PM : [ZWAVE-TX ZW008_1] [25/02] Binary Switch Get ACK,AUTO,EXPLORE To=0x08 Thu 05/11/2017 11:59:01 PM : [ZWAVE-RX ] [0104011301E8] [00/00] CC=0x00 cmd=0x00 [] ACK,AUTO,EXPLORE Thu 05/11/2017 11:59:01 PM : [ZWAVE-RX ] [01050013B90050] [00/00] CC=0x00 cmd=0x00 [] ACK,AUTO,EXPLORE Thu 05/11/2017 11:59:01 PM : [ZWAVE-RX ZW008_1] [25/03] Binary Switch Report val=0x00 ACK,AUTO,EXPLORE From=0x08 Thu 05/11/2017 11:59:01 PM : [ZWAVE-TX ZW009_1] [25/01] Binary Switch Set val=0x00 ACK,AUTO,EXPLORE To=0x09 Thu 05/11/2017 11:59:01 PM : [ZWAVE-RX ] [0104011301E8] [00/00] CC=0x00 cmd=0x00 [] ACK,AUTO,EXPLORE Thu 05/11/2017 11:59:01 PM : [ZWAVE-RX ] [01050013BA0053] [00/00] CC=0x00 cmd=0x00 [] ACK,AUTO,EXPLORE Thu 05/11/2017 11:59:01 PM : [ZWAVE-TX ZW009_1] [25/02] Binary Switch Get ACK,AUTO,EXPLORE To=0x09 Thu 05/11/2017 11:59:01 PM : [ZWAVE-RX ] [0104011301E8] [00/00] CC=0x00 cmd=0x00 [] ACK,AUTO,EXPLORE Thu 05/11/2017 11:59:01 PM : [ZWAVE-RX ] [01050013BB0052] [00/00] CC=0x00 cmd=0x00 [] ACK,AUTO,EXPLORE Thu 05/11/2017 11:59:01 PM : [ZWAVE-RX ZW009_1] [25/03] Binary Switch Report val=0x00 ACK,AUTO,EXPLORE From=0x09 Thu 05/11/2017 11:59:01 PM : [D2D EVENT ] Event [ZW006_1] [sT] [0] uom=78 prec=0 Thu 05/11/2017 11:59:01 PM : [ ZW006_1] ST 0 (uom=78 prec=0) Thu 05/11/2017 11:59:01 PM : [D2D-CMP 0007] STS [ZW006_1] ST op=1 Event(val=0 uom=78 prec=0) is Condition(val=100 uom=78 prec=0) --> false Thu 05/11/2017 11:59:01 PM : [D2D EVENT ] Event [ZW007_1] [sT] [0] uom=78 prec=0 Thu 05/11/2017 11:59:01 PM : [ ZW007_1] ST 0 (uom=78 prec=0) Thu 05/11/2017 11:59:01 PM : [D2D-CMP 0007] STS [ZW007_1] ST op=1 Event(val=0 uom=78 prec=0) is Condition(val=100 uom=78 prec=0) --> false Thu 05/11/2017 11:59:01 PM : [D2D EVENT ] Event [ZW008_1] [sT] [0] uom=78 prec=0 Thu 05/11/2017 11:59:01 PM : [ ZW008_1] ST 0 (uom=78 prec=0) Thu 05/11/2017 11:59:01 PM : [D2D-CMP 0007] STS [ZW008_1] ST op=1 Event(val=0 uom=78 prec=0) is Condition(val=100 uom=78 prec=0) --> false Thu 05/11/2017 11:59:01 PM : [D2D EVENT ] Event [ZW009_1] [sT] [0] uom=78 prec=0 Thu 05/11/2017 11:59:01 PM : [ ZW009_1] ST 0 (uom=78 prec=0) Here is what I see, in the original log, the program ran at 11:58:59 to turn the lights off. It re-evaluated at 11:59:59 turning the lights back on, without enough time to realize they should be turned off at 11:59pm. The log from last night shows everything happening at 11:59:00-01 and it worked correctly. Will splitting this into two programs correct the issue, or does it only assist with debugging the issue? Basically, I need to learn to make two programs for every program which turns things on and off, correct?
larryllix Posted May 12, 2017 Posted May 12, 2017 Sometimes we get programs left running and we forget about them. This sounds like another program turning the lights back on. BTW: There is a search command by right clicking on any program. Then you can search by device, program, and even raw text. This is a good technique to see if there are any invisible gremlins biting you from behind.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.