mirror of
https://github.com/mtan93/SmartThingsPublic.git
synced 2026-03-15 13:10:51 +00:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a051c8ba95 |
93
devicetypes/-/test.src/test.groovy
Normal file
93
devicetypes/-/test.src/test.groovy
Normal file
@@ -0,0 +1,93 @@
|
|||||||
|
/**
|
||||||
|
* TEST
|
||||||
|
*
|
||||||
|
* 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 {
|
||||||
|
definition (name: "TEST", namespace: "스마트보안", author: "박춘영") {
|
||||||
|
capability "Button"
|
||||||
|
capability "Samsung TV"
|
||||||
|
}
|
||||||
|
|
||||||
|
simulator {
|
||||||
|
// TODO: define status and reply messages here
|
||||||
|
}
|
||||||
|
|
||||||
|
tiles {
|
||||||
|
// TODO: define your main and details tiles here
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// parse events into attributes
|
||||||
|
def parse(String description) {
|
||||||
|
log.debug "Parsing '${description}'"
|
||||||
|
// TODO: handle 'button' attribute
|
||||||
|
// TODO: handle 'volume' attribute
|
||||||
|
// TODO: handle 'mute' attribute
|
||||||
|
// TODO: handle 'pictureMode' attribute
|
||||||
|
// TODO: handle 'soundMode' attribute
|
||||||
|
// TODO: handle 'switch' attribute
|
||||||
|
// TODO: handle 'messageButton' attribute
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// handle commands
|
||||||
|
def volumeUp() {
|
||||||
|
log.debug "Executing 'volumeUp'"
|
||||||
|
// TODO: handle 'volumeUp' command
|
||||||
|
}
|
||||||
|
|
||||||
|
def volumeDown() {
|
||||||
|
log.debug "Executing 'volumeDown'"
|
||||||
|
// TODO: handle 'volumeDown' command
|
||||||
|
}
|
||||||
|
|
||||||
|
def setVolume() {
|
||||||
|
log.debug "Executing 'setVolume'"
|
||||||
|
// TODO: handle 'setVolume' command
|
||||||
|
}
|
||||||
|
|
||||||
|
def mute() {
|
||||||
|
log.debug "Executing 'mute'"
|
||||||
|
// TODO: handle 'mute' command
|
||||||
|
}
|
||||||
|
|
||||||
|
def unmute() {
|
||||||
|
log.debug "Executing 'unmute'"
|
||||||
|
// TODO: handle 'unmute' command
|
||||||
|
}
|
||||||
|
|
||||||
|
def setPictureMode() {
|
||||||
|
log.debug "Executing 'setPictureMode'"
|
||||||
|
// TODO: handle 'setPictureMode' command
|
||||||
|
}
|
||||||
|
|
||||||
|
def setSoundMode() {
|
||||||
|
log.debug "Executing 'setSoundMode'"
|
||||||
|
// TODO: handle 'setSoundMode' command
|
||||||
|
}
|
||||||
|
|
||||||
|
def on() {
|
||||||
|
log.debug "Executing 'on'"
|
||||||
|
// TODO: handle 'on' command
|
||||||
|
}
|
||||||
|
|
||||||
|
def off() {
|
||||||
|
log.debug "Executing 'off'"
|
||||||
|
// TODO: handle 'off' command
|
||||||
|
}
|
||||||
|
|
||||||
|
def showMessage() {
|
||||||
|
log.debug "Executing 'showMessage'"
|
||||||
|
// TODO: handle 'showMessage' command
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user