mirror of
https://github.com/mtan93/SmartThingsPublic.git
synced 2026-03-26 13:24:09 +00:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3089f25e69 |
@@ -1,25 +1,17 @@
|
|||||||
/**
|
/**
|
||||||
* 디바이스 핸들러 테스트 입니다
|
*가상조명1
|
||||||
*
|
*
|
||||||
* Copyright 2016 권웅혁
|
* Copyright 2016 김은경
|
||||||
*
|
|
||||||
* 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.
|
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
metadata {
|
metadata {
|
||||||
definition (name: "디바이스 핸들러 테스트 입니다 ", namespace: "테스트", author: "권웅혁") {
|
definition (name: "조명센서", namespace: "은경이네", author: "김은경") {
|
||||||
capability "Sound Pressure Level"
|
capability "Color Control"
|
||||||
|
|
||||||
attribute "oundPressureLevel", "string"
|
attribute "삼성조명", "string"
|
||||||
|
|
||||||
command "oundPressureLevel"
|
command "삼성조명"
|
||||||
}
|
}
|
||||||
|
|
||||||
simulator {
|
simulator {
|
||||||
@@ -34,13 +26,30 @@ 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 'hue' attribute
|
||||||
// TODO: handle 'oundPressureLevel' attribute
|
// TODO: handle 'saturation' attribute
|
||||||
|
// TODO: handle 'color' attribute
|
||||||
|
// TODO: handle '삼성조명' attribute
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// handle commands
|
// handle commands
|
||||||
def oundPressureLevel() {
|
def setHue() {
|
||||||
log.debug "Executing 'oundPressureLevel'"
|
log.debug "Executing 'setHue'"
|
||||||
// TODO: handle 'oundPressureLevel' command
|
// TODO: handle 'setHue' command
|
||||||
|
}
|
||||||
|
|
||||||
|
def setSaturation() {
|
||||||
|
log.debug "Executing 'setSaturation'"
|
||||||
|
// TODO: handle 'setSaturation' command
|
||||||
|
}
|
||||||
|
|
||||||
|
def setColor() {
|
||||||
|
log.debug "Executing 'setColor'"
|
||||||
|
// TODO: handle 'setColor' command
|
||||||
|
}
|
||||||
|
|
||||||
|
def 삼성조명() {
|
||||||
|
log.debug "Executing '삼성조명'"
|
||||||
|
// TODO: handle '삼성조명' command
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user