1) Give a description of the problem
I’ve got a set of lamps with LED bulbs in them. The LED bulbs are either completely illuminated, or display a flame animation. This behavior alternates between each power cycle. Turn it on, and you get flames. Turn it off, then back on, and you get full illumination.
I only want the flames to appear, so I’m trying to build a piston that turns the light off for a couple of seconds and then back on every time a command is sent to turn the lights on, effectively “skipping” the completely illuminated mode of the bulbs. I recognize the potential to accidentally build a recursive loop with something like this, so my piston uses a variable to attempt to avoid that problem.
2) What is the expected behavior?
If a command is sent via any source - or even at the switch - the variable FlameWait is set to “true”, the lights are illuminated for 2 seconds, the lights turn off for two seconds, then the lights turn back on and remain lit. The FlameWait variable is then set to “false.”
3) What is happening/not happening?
When an “on” command is sent, the lights turn on for 2 seconds, then back off, and they stay off.
4) Post a Green Snapshot of the piston![image|45x37]()
(UPLOAD YOUR IMAGE HERE)
5) Attach any logs (From ST IDE and by turning logging level to Full)
6249cdc5-f19b-4040-94d2-8b8ba92c1291 10:33:42 AM: debug getChildDevices(false), children=4 15b540af-904e-4142-89cb-dd46b0e830aa 10:33:40 AM: trace ║╚ Execution stage started 15b540af-904e-4142-89cb-dd46b0e830aa 10:33:40 AM: debug ║║ Cancelling condition #9's schedules... 70253b46-5e72-49ba-b7b1-0e2f25998f0c 10:33:39 AM: info smartapp_pause called by smartAppName=webCoRE, value=250, smartAppVersionId=7deb3230-7ab6-4a7d-8a4c-5ae0628d117b 15b540af-904e-4142-89cb-dd46b0e830aa 10:33:40 AM: trace ║ Runtime (37680 bytes) successfully initialized in 2075ms (v0.2.0fe.20171109) (2126ms) 70253b46-5e72-49ba-b7b1-0e2f25998f0c 10:33:40 AM: info smartapp_pause called by smartAppName=webCoRE, value=250, smartAppVersionId=7deb3230-7ab6-4a7d-8a4c-5ae0628d117b 70253b46-5e72-49ba-b7b1-0e2f25998f0c 10:33:38 AM: info smartapp_pause called by smartAppName=webCoRE, value=250, smartAppVersionId=7deb3230-7ab6-4a7d-8a4c-5ae0628d117b 70253b46-5e72-49ba-b7b1-0e2f25998f0c 10:33:39 AM: info smartapp_pause called by smartAppName=webCoRE, value=250, smartAppVersionId=7deb3230-7ab6-4a7d-8a4c-5ae0628d117b 70253b46-5e72-49ba-b7b1-0e2f25998f0c 10:33:38 AM: info smartapp_pause called by smartAppName=webCoRE, value=250, smartAppVersionId=7deb3230-7ab6-4a7d-8a4c-5ae0628d117b 70253b46-5e72-49ba-b7b1-0e2f25998f0c 10:33:38 AM: info smartapp_pause called by smartAppName=webCoRE, value=250, smartAppVersionId=7deb3230-7ab6-4a7d-8a4c-5ae0628d117b 15b540af-904e-4142-89cb-dd46b0e830aa 10:33:38 AM: info ╚ Received event [Outside Four Front Yard Lights].switch = off with a delay of 71ms 15b540af-904e-4142-89cb-dd46b0e830aa 10:33:40 AM: trace ║╔ Execution stage complete. (4118ms) 15b540af-904e-4142-89cb-dd46b0e830aa 10:33:38 AM: debug ║║ Executed physical command [Outside Four Front Yard Lights].off() (38ms) 15b540af-904e-4142-89cb-dd46b0e830aa 10:33:36 AM: info smartapp_pause called by smartAppName=webCoRE Piston, value=2000, smartAppVersionId=afdc192d-d0a1-4ab5-8639-5014088767bd 15b540af-904e-4142-89cb-dd46b0e830aa 10:33:40 AM: info ╔ Event processed successfully (4225ms) 15b540af-904e-4142-89cb-dd46b0e830aa 10:33:36 AM: trace ║║ Waiting for 2000ms 15b540af-904e-4142-89cb-dd46b0e830aa 10:33:36 AM: trace ║║ Executed virtual command [Outside Four Front Yard Lights].setVariable (1ms) 15b540af-904e-4142-89cb-dd46b0e830aa 10:33:40 AM: trace ║║ Executed virtual command [Outside Four Front Yard Lights].setVariable (1ms) 15b540af-904e-4142-89cb-dd46b0e830aa 10:33:40 AM: trace ║║ Executed virtual command [Outside Four Front Yard Lights].toggle (25ms) 15b540af-904e-4142-89cb-dd46b0e830aa 10:33:36 AM: debug ║║ Cancelling statement #2's schedules... 15b540af-904e-4142-89cb-dd46b0e830aa 10:33:38 AM: info smartapp_pause called by smartAppName=webCoRE Piston, value=2000, smartAppVersionId=afdc192d-d0a1-4ab5-8639-5014088767bd 15b540af-904e-4142-89cb-dd46b0e830aa 10:33:36 AM: debug ║║ Cancelling condition #1's schedules... 15b540af-904e-4142-89cb-dd46b0e830aa 10:33:36 AM: debug ║║ Comparison (boolean) false is_not (boolean) true = true (1ms) 15b540af-904e-4142-89cb-dd46b0e830aa 10:33:36 AM: trace ║║ Executed virtual command [Outside Four Front Yard Lights].wait (1ms) 15b540af-904e-4142-89cb-dd46b0e830aa 10:33:36 AM: debug ║║ Condition #9 evaluated true (8ms) 15b540af-904e-4142-89cb-dd46b0e830aa 10:33:36 AM: debug ║║ Condition group #1 evaluated true (state changed) (19ms) 15b540af-904e-4142-89cb-dd46b0e830aa 10:33:36 AM: debug ║║ Condition #10 evaluated true (8ms) 15b540af-904e-4142-89cb-dd46b0e830aa 10:33:36 AM: debug ║║ Comparison (enum) on changes_to (string) on = true (1ms) 15b540af-904e-4142-89cb-dd46b0e830aa 10:33:36 AM: debug ║║ Cancelling condition #9's schedules... 15b540af-904e-4142-89cb-dd46b0e830aa 10:33:36 AM: debug ║ RunTime Analysis CS > 16ms > PS > 50ms > PE > 21ms > CE 15b540af-904e-4142-89cb-dd46b0e830aa 10:33:36 AM: trace ║╚ Execution stage started 15b540af-904e-4142-89cb-dd46b0e830aa 10:33:36 AM: trace ║ Runtime (37608 bytes) successfully initialized in 50ms (v0.2.0fe.20171109) (97ms) 15b540af-904e-4142-89cb-dd46b0e830aa 10:33:36 AM: info ╚ Received event [Outside Four Front Yard Lights].switch = on with a delay of 102ms 3c4f0b2c-9255-40f3-82f3-5fc79691f9a2 10:33:38 AM: debug switch off1 30159896-1146-46bc-8fc6-6e9e81247e7b 10:33:38 AM: debug sending data to AT 30159896-1146-46bc-8fc6-6e9e81247e7b 10:33:38 AM: debug A sensor event occurred: [name:switch, deviceId:5d2f7491-8e2c-4c2a-815f-2c38c9115bad, isoDate:2017-11-27T18:33:38.216Z, unit:null, value:off] 9788bd5c-b96c-49f5-8fb2-67307295fe9e 10:33:38 AM: debug RegIDs triggered: [eP64vcyRYE8:APA91bE2P_N0X4FMhif1Vzp4glnThJRz1s7MyVAApMXGWiTl_jFdOuEFsEPvs2_hImwV1JZDusZzxU8ObAdHcEUoTk67INkeZnHl4kWH_Swl44XweYT3YmbNmWTPwl78zS5rok41-baa] 9788bd5c-b96c-49f5-8fb2-67307295fe9e 10:33:38 AM: debug Event data successfully posted 9788bd5c-b96c-49f5-8fb2-67307295fe9e 10:33:38 AM: debug device info: [switch:[eP64vcyRYE8:APA91bE2P_N0X4FMhif1Vzp4glnThJRz1s7MyVAApMXGWiTl_jFdOuEFsEPvs2_hImwV1JZDusZzxU8ObAdHcEUoTk67INkeZnHl4kWH_Swl44XweYT3YmbNmWTPwl78zS5rok41-baa]] 9788bd5c-b96c-49f5-8fb2-67307295fe9e 10:33:38 AM: debug event triggered for switch on 5d2f7491-8e2c-4c2a-815f-2c38c9115bad 6249cdc5-f19b-4040-94d2-8b8ba92c1291 10:33:38 AM: trace Harmony - Sending data to Living Room Harmony Hub 3c4f0b2c-9255-40f3-82f3-5fc79691f9a2 10:33:36 AM: debug switch on1 9788bd5c-b96c-49f5-8fb2-67307295fe9e 10:33:36 AM: debug RegIDs triggered: [eP64vcyRYE8:APA91bE2P_N0X4FMhif1Vzp4glnThJRz1s7MyVAApMXGWiTl_jFdOuEFsEPvs2_hImwV1JZDusZzxU8ObAdHcEUoTk67INkeZnHl4kWH_Swl44XweYT3YmbNmWTPwl78zS5rok41-baa] 9788bd5c-b96c-49f5-8fb2-67307295fe9e 10:33:36 AM: debug Event data successfully posted 9788bd5c-b96c-49f5-8fb2-67307295fe9e 10:33:36 AM: debug device info: [switch:[eP64vcyRYE8:APA91bE2P_N0X4FMhif1Vzp4glnThJRz1s7MyVAApMXGWiTl_jFdOuEFsEPvs2_hImwV1JZDusZzxU8ObAdHcEUoTk67INkeZnHl4kWH_Swl44XweYT3YmbNmWTPwl78zS5rok41-baa]] 9788bd5c-b96c-49f5-8fb2-67307295fe9e 10:33:36 AM: debug event triggered for switch on 5d2f7491-8e2c-4c2a-815f-2c38c9115bad 30159896-1146-46bc-8fc6-6e9e81247e7b 10:33:36 AM: debug sending data to AT 30159896-1146-46bc-8fc6-6e9e81247e7b 10:33:36 AM: debug A sensor event occurred: [name:switch, deviceId:5d2f7491-8e2c-4c2a-815f-2c38c9115bad, isoDate:2017-11-27T18:33:35.948Z, unit:null, value:on] 6249cdc5-f19b-4040-94d2-8b8ba92c1291 10:33:35 AM: trace Harmony - Sending data to Living Room Harmony Hub 30159896-1146-46bc-8fc6-6e9e81247e7b 10:33:35 AM: debug command on executed successfully 30159896-1146-46bc-8fc6-6e9e81247e7b 10:33:35 AM: info executing '/device/5d2f7491-8e2c-4c2a-815f-2c38c9115bad/on' endpoint 2ca3ab55-7ea1-4890-8f50-1adcd7e2200b 10:33:34 AM: error groovy.lang.MissingMethodException: No signature of method: script_dth_2a3fbc49_4c44_4096_b250_efceea80c729_ver_0_1.zwaveEvent() is applicable for argument types: (physicalgraph.zwave.commands.manufacturerspecificv1.ManufacturerSpecificReport) values: [ManufacturerSpecificReport(manufacturerId: 265, manufacturerName: Vision Security, productId: 5911, productTypeId: 8215)] Possible solutions: zwaveEvent(physicalgraph.zwave.commands.basicv1.BasicReport), zwaveEvent(physicalgraph.zwave.commands.multichannelv3.MultiChannelCmdEncap), zwaveEvent(physicalgraph.zwave.commands.switchbinaryv1.SwitchBinaryReport), createEvent(java.util.Map) 167f784c-9d98-4040-a500-58be13e68261 10:33:13 AM: debug getChildDevices(false), children=1 10:32:56 AM: info Waiting on events...