1st Piston - Please help


#1

1) Give a description of the problem

  • The event is not firing

2) What is the expected behavior?
When Elk Alarm is in armed away, all selected light to turn off
3) What is happening/not happening?

  • Nothing happen

4) Post a Green Snapshot of the pistonimage
(UPLOAD YOUR IMAGE HERE)

5) Attach any logs (From ST IDE and by turning logging level to Full)

Code:
/* Elk-Alarm-AK /
/**************************************************************/
/
Author : ELK ALAM-2 /
/
Created : 4/13/2019, 6:30:08 PM /
/
Modified : 4/13/2019, 6:30:08 PM /
/
Build : 0 /
/
UI version : v0.3.10a.20190223 */
/**************************************************************/

settings
end settings;

define
dynamic Elk_Alarm = Elk-Alarm’s armaway;

  • add a new variable
    end define;

only when

  • add a new restriction
    execute
    only when
    Elk-Alarm’s $status changed in the last 5 minutes
  • add a new restriction
    with
    1-BMT Bath FANZ-Wave Dimmer, 1L- B STAIR LIGHT Z-Wave Switch, 1L-A STAIR Light GE Wall Switch, 1L-Bar LIGHT GE Wall Switch, 1L-BMT BATH TOILET LIGHT Z-Wave Dimmer, 1L-Play RM LIGHT Z-Wave Switch, 1L-Theater LIGHT Z-Wave Dimmer, 2-GAR Light GE Wall Switch, 2A-Den AV SIDE Z-Wave Switch, 2A-Den KITCHEN SIDE Z-Wave Dimmer, 2A-Den PIANO SIDE Z-Wave Dimmer, 2A-Den TV SIDE Z-Wave Switch, 2A-MBR Bed Table Light Z-Wave Dimmer, 2A-MBR Table Sitting Area Z-Wave Dimmer, 2A-Office INTERMATIC Z-Wave Switch, 2F-MBR SHOWER FAN Z-Wave Dimmer, 2F-MBR TOILET FAN Z-Wave Dimmer, 2F-Office FAN Z-Wave Switch, 2L-Breakfadt Light GE Wall Switch, 2L-Dinning RM Z-Wave Dimmer, 2L-FOYER Hallway Light GE Wall Switch, 2L-GAR Entry DR. LIGHT Z-Wave Device, 2L-Gar ENTRY DR. LIGHT Z-Wave Dimmer, 2L-Ktchen Light Z-Wave Switch, 2L-Laundary RM Z-Wave Dimmer, 2L-MBR Bathroom Light GE ZigBee In-Wall Switch, 2L-MBR BR VanituGE Wall Switch, 2L-MBR Kola Closet Z-Wave Switch, 2L-MBR Screen Porsh Light GE Wall Switch, 2L-MBR SHOWER LIGHT Z-Wave Dimmer, 2L-MBR Sitting Area Z-Wave Dimmer, 2L-MBR TOILET LIGHT Z-Wave Dimmer, 2L-Offfice Light GE In-Wall Smart Dimmer, 3F-Remi BR FAN Z-Wave Switch, 3F-Shola’s RM Fan Z–Wave Switch, 3F-SS Bath Z-Wave Dimmer, 3F-SS BDR FANGE Wall Switch, 3L-Foyer LIGHTGE Wall Switch, 3L-Hallway Light GE Wall Switch, 3L-Remi BDR LIGHT Z-Wave Switch, 3L-Remi Vanity LightZ-Wave Dimmer, 3L-Shola RM LIGHT GE ZigBee In-Wall Switch, 3L-Shola Shower LightZ-Wave Switch, 3L-Shola Vanity Z-Wave Dimmer, 3L-SS Bath - DNW - GE Wall Switch, 3L-SS BDR LIGHT GE Wall Switch, and Z-Wave Dimmer
    do
    Turn off;
  • add a new task
    end with;
  • add a new statement
    end execute;
    (PASTE YOUR LOGS HERE BETWEEN THE MARKS THEN HIGHLIGHT ALL OF THE LOGS SND CLICK ON THE </> ICON TO FORMAT THEM)

REMOVE BELOW AFTER READING
If a solution is found for your question then please mark the post as the solution.


#2

Just checking - you are trying to create a piston in webCoRE??? can you post an image of the piston you are trying to create?


#3

Thanks jkp:

This is the piston:

/**

  • Elk-Alarm-AK
  • Copyright 2019 Adebola Adekanmbi
  • Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except
  • in compliance with the License. You may obtain a copy of the License at:
  •  http://www.apache.org/licenses/LICENSE-2.0
    
  • Unless required by applicable law or agreed to in writing, software distributed under the License is distributed
  • on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License
  • for the specific language governing permissions and limitations under the License.

*/
definition(
name: “Elk-Alarm-AK”,
namespace: “bola09”,
author: “Adebola Adekanmbi”,
description: “Elk Alam”,
category: “”,
iconUrl: “https://s3.amazonaws.com/smartapp-icons/Convenience/Cat-Convenience.png”,
iconX2Url: “https://s3.amazonaws.com/smartapp-icons/Convenience/[email protected]”,
iconX3Url: “https://s3.amazonaws.com/smartapp-icons/Convenience/[email protected]”)

preferences {
section(“Title”) {
// TODO: put inputs here
}
}

def installed() {
log.debug “Installed with settings: ${settings}”

initialize()

}

def updated() {
log.debug “Updated with settings: ${settings}”

unsubscribe()
initialize()

}

def initialize() {
// TODO: subscribe to attributes, devices, locations, etc.
}

// TODO: implement event handlers

There was no error on IDE when I saved it


#4

Unfortunately that is not a webcore piston. That is either a groovy code you use for Smartapps or device handlers in IDE. If that is the case, it would be better to post your question on the ST community forum at https://community.smartthings.com