mirror of
https://github.com/mtan93/SmartThingsPublic.git
synced 2026-03-28 13:23:07 +00:00
Compare commits
1 Commits
MSA-1307-1
...
MSA-1317-3
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
28e6a6161a |
@@ -1,112 +0,0 @@
|
|||||||
/**
|
|
||||||
* 물흘러요
|
|
||||||
*
|
|
||||||
* 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: "물흘러요", namespace: "물", author: "김형섭") {
|
|
||||||
capability "Battery"
|
|
||||||
capability "Thermostat"
|
|
||||||
capability "Water Sensor"
|
|
||||||
}
|
|
||||||
|
|
||||||
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 'battery' attribute
|
|
||||||
// TODO: handle 'temperature' attribute
|
|
||||||
// TODO: handle 'heatingSetpoint' attribute
|
|
||||||
// TODO: handle 'coolingSetpoint' attribute
|
|
||||||
// TODO: handle 'thermostatSetpoint' attribute
|
|
||||||
// TODO: handle 'thermostatMode' attribute
|
|
||||||
// TODO: handle 'thermostatFanMode' attribute
|
|
||||||
// TODO: handle 'thermostatOperatingState' attribute
|
|
||||||
// TODO: handle 'schedule' attribute
|
|
||||||
// TODO: handle 'water' attribute
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
// handle commands
|
|
||||||
def setHeatingSetpoint() {
|
|
||||||
log.debug "Executing 'setHeatingSetpoint'"
|
|
||||||
// TODO: handle 'setHeatingSetpoint' command
|
|
||||||
}
|
|
||||||
|
|
||||||
def setCoolingSetpoint() {
|
|
||||||
log.debug "Executing 'setCoolingSetpoint'"
|
|
||||||
// TODO: handle 'setCoolingSetpoint' command
|
|
||||||
}
|
|
||||||
|
|
||||||
def off() {
|
|
||||||
log.debug "Executing 'off'"
|
|
||||||
// TODO: handle 'off' command
|
|
||||||
}
|
|
||||||
|
|
||||||
def heat() {
|
|
||||||
log.debug "Executing 'heat'"
|
|
||||||
// TODO: handle 'heat' command
|
|
||||||
}
|
|
||||||
|
|
||||||
def emergencyHeat() {
|
|
||||||
log.debug "Executing 'emergencyHeat'"
|
|
||||||
// TODO: handle 'emergencyHeat' command
|
|
||||||
}
|
|
||||||
|
|
||||||
def cool() {
|
|
||||||
log.debug "Executing 'cool'"
|
|
||||||
// TODO: handle 'cool' command
|
|
||||||
}
|
|
||||||
|
|
||||||
def setThermostatMode() {
|
|
||||||
log.debug "Executing 'setThermostatMode'"
|
|
||||||
// TODO: handle 'setThermostatMode' command
|
|
||||||
}
|
|
||||||
|
|
||||||
def fanOn() {
|
|
||||||
log.debug "Executing 'fanOn'"
|
|
||||||
// TODO: handle 'fanOn' command
|
|
||||||
}
|
|
||||||
|
|
||||||
def fanAuto() {
|
|
||||||
log.debug "Executing 'fanAuto'"
|
|
||||||
// TODO: handle 'fanAuto' command
|
|
||||||
}
|
|
||||||
|
|
||||||
def fanCirculate() {
|
|
||||||
log.debug "Executing 'fanCirculate'"
|
|
||||||
// TODO: handle 'fanCirculate' command
|
|
||||||
}
|
|
||||||
|
|
||||||
def setThermostatFanMode() {
|
|
||||||
log.debug "Executing 'setThermostatFanMode'"
|
|
||||||
// TODO: handle 'setThermostatFanMode' command
|
|
||||||
}
|
|
||||||
|
|
||||||
def auto() {
|
|
||||||
log.debug "Executing 'auto'"
|
|
||||||
// TODO: handle 'auto' command
|
|
||||||
}
|
|
||||||
|
|
||||||
def setSchedule() {
|
|
||||||
log.debug "Executing 'setSchedule'"
|
|
||||||
// TODO: handle 'setSchedule' command
|
|
||||||
}
|
|
||||||
@@ -35,6 +35,7 @@ metadata {
|
|||||||
fingerprint profileId: "0104", inClusters: "0000, 0003, 0004, 0005, 0006, 0008, 0300, 0B04, FC0F", outClusters: "0019", manufacturer: "OSRAM", model: "LIGHTIFY RT Tunable White", deviceJoinName: "OSRAM LIGHTIFY LED Recessed Kit RT 5/6 Tunable White"
|
fingerprint profileId: "0104", inClusters: "0000, 0003, 0004, 0005, 0006, 0008, 0300, 0B04, FC0F", outClusters: "0019", manufacturer: "OSRAM", model: "LIGHTIFY RT Tunable White", deviceJoinName: "OSRAM LIGHTIFY LED Recessed Kit RT 5/6 Tunable White"
|
||||||
fingerprint profileId: "0104", inClusters: "0000, 0003, 0004, 0005, 0006, 0008, 0300, 0B04, FC0F", outClusters: "0019", manufacturer: "OSRAM", model: "Classic A60 TW", deviceJoinName: "OSRAM LIGHTIFY LED Tunable White 60W"
|
fingerprint profileId: "0104", inClusters: "0000, 0003, 0004, 0005, 0006, 0008, 0300, 0B04, FC0F", outClusters: "0019", manufacturer: "OSRAM", model: "Classic A60 TW", deviceJoinName: "OSRAM LIGHTIFY LED Tunable White 60W"
|
||||||
fingerprint profileId: "0104", inClusters: "0000, 0003, 0004, 0005, 0006, 0008, 0300, 0B04, FC0F", outClusters: "0019", manufacturer: "OSRAM", model: "LIGHTIFY A19 Tunable White", deviceJoinName: "OSRAM LIGHTIFY LED Tunable White 60W"
|
fingerprint profileId: "0104", inClusters: "0000, 0003, 0004, 0005, 0006, 0008, 0300, 0B04, FC0F", outClusters: "0019", manufacturer: "OSRAM", model: "LIGHTIFY A19 Tunable White", deviceJoinName: "OSRAM LIGHTIFY LED Tunable White 60W"
|
||||||
|
fingerprint profileId: "C05E", deviceId: "0220", inClusters: "0000, 0003, 0004, 0005, 0006, 0008, 0300, 0702, 0015, 1000", outClusters: "0019", manufacturer: "Eaton", model: "Halo_LT01", deviceJoinName: "Halo_LT01"
|
||||||
}
|
}
|
||||||
|
|
||||||
// UI tile definitions
|
// UI tile definitions
|
||||||
@@ -124,4 +125,4 @@ def setGenericName(value){
|
|||||||
}
|
}
|
||||||
sendEvent(name: "colorName", value: genericName)
|
sendEvent(name: "colorName", value: genericName)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,52 +0,0 @@
|
|||||||
/**
|
|
||||||
* Copyright 2015 SmartThings
|
|
||||||
*
|
|
||||||
* 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.
|
|
||||||
*
|
|
||||||
* Turn It On When It Opens
|
|
||||||
*
|
|
||||||
* Author: SmartThings
|
|
||||||
*/
|
|
||||||
definition(
|
|
||||||
name: "문이 열리면 장치를켜라",
|
|
||||||
namespace: "smartthings-kr",
|
|
||||||
author:"김형섭",
|
|
||||||
description: "문이 열리면 연결된장치가 켜지는겁니다.",
|
|
||||||
category: "Convenience",
|
|
||||||
iconUrl: "https://s3.amazonaws.com/smartapp-icons/Meta/light_contact-outlet.png",
|
|
||||||
iconX2Url: "https://s3.amazonaws.com/smartapp-icons/Meta/light_contact-outlet@2x.png"
|
|
||||||
)
|
|
||||||
|
|
||||||
preferences {
|
|
||||||
section("When the door opens..."){
|
|
||||||
input "contact1", "capability.contactSensor", title: "Where?"
|
|
||||||
}
|
|
||||||
section("Turn on a light..."){
|
|
||||||
input "switches", "capability.switch", multiple: true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
def installed()
|
|
||||||
{
|
|
||||||
subscribe(contact1, "contact.open", contactOpenHandler)
|
|
||||||
}
|
|
||||||
|
|
||||||
def updated()
|
|
||||||
{
|
|
||||||
unsubscribe()
|
|
||||||
subscribe(contact1, "contact.open", contactOpenHandler)
|
|
||||||
}
|
|
||||||
|
|
||||||
def contactOpenHandler(evt) {
|
|
||||||
log.debug "$evt.value: $evt, $settings"
|
|
||||||
log.trace "Turning on switches: $switches"
|
|
||||||
switches.on()
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user