Compare commits

..

1 Commits

Author SHA1 Message Date
오경환
a3aec8afb2 MSA-985: hi! good~ 2016-03-23 02:38:44 -05:00

View File

@@ -1,7 +1,7 @@
/** /**
* 디바이스 핸들러 테스트 입니다 * 마이사이렌
* *
* Copyright 2016 권웅혁 * Copyright 2016 오경환
* *
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * 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: * in compliance with the License. You may obtain a copy of the License at:
@@ -13,13 +13,18 @@
* for the specific language governing permissions and limitations under the License. * for the specific language governing permissions and limitations under the License.
* *
*/ */
definition(
name: "Button Controller",
namespace: "smartthings",
author: "SmartThings",
description: "Control devices with buttons like the Aeon Labs Minimote",
category: "Convenience",
iconUrl: "https://s3.amazonaws.com/smartapp-icons/MyApps/Cat-MyApps.png",
iconX2Url: "https://s3.amazonaws.com/smartapp-icons/MyApps/Cat-MyApps@2x.png"
)
metadata { metadata {
definition (name: "디바이스 핸들러 테스트 입니다 ", namespace: "테스트", author: "권웅혁") { definition (name: "마이사이렌", namespace: "마이사이렌", author: "오경환") {
capability "Sound Pressure Level" capability "Alarm"
attribute "oundPressureLevel", "string"
command "oundPressureLevel"
} }
simulator { simulator {
@@ -34,13 +39,27 @@ metadata {
// parse events into attributes // parse events into attributes
def parse(String description) { def parse(String description) {
log.debug "Parsing '${description}'" log.debug "Parsing '${description}'"
// TODO: handle 'soundPressureLevel' attribute // TODO: handle 'alarm' attribute
// TODO: handle 'oundPressureLevel' attribute
} }
// handle commands // handle commands
def oundPressureLevel() { def off() {
log.debug "Executing 'oundPressureLevel'" log.debug "Executing 'off'"
// TODO: handle 'oundPressureLevel' command // TODO: handle 'off' command
}
def strobe() {
log.debug "Executing 'strobe'"
// TODO: handle 'strobe' command
}
def siren() {
log.debug "Executing 'siren'"
// TODO: handle 'siren' command
}
def both() {
log.debug "Executing 'both'"
// TODO: handle 'both' command
} }