mirror of
https://github.com/mtan93/SmartThingsPublic.git
synced 2026-03-18 05:10:52 +00:00
Compare commits
10 Commits
MSA-1765-1
...
PROD_2017.
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fc312286a2 | ||
|
|
871d75aea6 | ||
|
|
3905d48235 | ||
|
|
d91c02b970 | ||
|
|
e019d22aff | ||
|
|
900ab9f70e | ||
|
|
e8d205c775 | ||
|
|
1800ea2bad | ||
|
|
54a4620c9b | ||
|
|
0846b6f34c |
@@ -97,7 +97,7 @@ def on() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
def setLevel(value) {
|
def setLevel(value) {
|
||||||
zigbee.setLevel(value)
|
zigbee.setLevel(value) + (value?.toInteger() > 0 ? zigbee.on() : [])
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ metadata {
|
|||||||
fingerprint profileId: "0104", inClusters: "0000, 0003, 0006", outClusters: "0003, 0006, 0019, 0406", manufacturer: "Leviton", model: "ZSS-10", deviceJoinName: "Leviton Switch"
|
fingerprint profileId: "0104", inClusters: "0000, 0003, 0006", outClusters: "0003, 0006, 0019, 0406", manufacturer: "Leviton", model: "ZSS-10", deviceJoinName: "Leviton Switch"
|
||||||
fingerprint profileId: "0104", inClusters: "0000, 0003, 0006", outClusters: "000A", manufacturer: "HAI", model: "65A21-1", deviceJoinName: "Leviton Wireless Load Control Module-30amp"
|
fingerprint profileId: "0104", inClusters: "0000, 0003, 0006", outClusters: "000A", manufacturer: "HAI", model: "65A21-1", deviceJoinName: "Leviton Wireless Load Control Module-30amp"
|
||||||
fingerprint profileId: "0104", inClusters: "0000, 0003, 0004, 0005, 0006", outClusters: "0003, 0006, 0008, 0019, 0406", manufacturer: "Leviton", model: "DL15A", deviceJoinName: "Leviton Lumina RF Plug-In Appliance Module"
|
fingerprint profileId: "0104", inClusters: "0000, 0003, 0004, 0005, 0006", outClusters: "0003, 0006, 0008, 0019, 0406", manufacturer: "Leviton", model: "DL15A", deviceJoinName: "Leviton Lumina RF Plug-In Appliance Module"
|
||||||
|
fingerprint profileId: "0104", inClusters: "0000, 0003, 0004, 0005, 0006", outClusters: "0003, 0006, 0008, 0019, 0406", manufacturer: "Leviton", model: "DL15S", deviceJoinName: "Leviton Lumina RF Switch"
|
||||||
}
|
}
|
||||||
|
|
||||||
// simulator metadata
|
// simulator metadata
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ definition(
|
|||||||
|
|
||||||
//Device Inputs
|
//Device Inputs
|
||||||
preferences {
|
preferences {
|
||||||
section("Allow <PLACEHOLDER: Your App Name> to control these things...") {
|
section("Allow OpenT2T to control these things...") {
|
||||||
input "contactSensors", "capability.contactSensor", title: "Which Contact Sensors", multiple: true, required: false
|
input "contactSensors", "capability.contactSensor", title: "Which Contact Sensors", multiple: true, required: false
|
||||||
input "garageDoors", "capability.garageDoorControl", title: "Which Garage Doors?", multiple: true, required: false
|
input "garageDoors", "capability.garageDoorControl", title: "Which Garage Doors?", multiple: true, required: false
|
||||||
input "locks", "capability.lock", title: "Which Locks?", multiple: true, required: false
|
input "locks", "capability.lock", title: "Which Locks?", multiple: true, required: false
|
||||||
@@ -329,34 +329,38 @@ private getDeviceType(device) {
|
|||||||
switch (it.name.toLowerCase()) {
|
switch (it.name.toLowerCase()) {
|
||||||
case "switch":
|
case "switch":
|
||||||
deviceType = "switch"
|
deviceType = "switch"
|
||||||
break
|
if (caps.any { it.name.toLowerCase() == "power meter" }) {
|
||||||
case "switch level":
|
return deviceType
|
||||||
deviceType = "light"
|
}
|
||||||
|
if (caps.any { it.name.toLowerCase() == "switch level" }) {
|
||||||
|
deviceType = "light"
|
||||||
|
return deviceType
|
||||||
|
}
|
||||||
break
|
break
|
||||||
case "contact sensor":
|
case "contact sensor":
|
||||||
deviceType = "contactSensor"
|
deviceType = "contactSensor"
|
||||||
break
|
return deviceType
|
||||||
case "garageDoorControl":
|
case "garageDoorControl":
|
||||||
deviceType = "garageDoor"
|
deviceType = "garageDoor"
|
||||||
break
|
return deviceType
|
||||||
case "lock":
|
case "lock":
|
||||||
deviceType = "lock"
|
deviceType = "lock"
|
||||||
break
|
return deviceType
|
||||||
case "video camera":
|
case "video camera":
|
||||||
deviceType = "camera"
|
deviceType = "camera"
|
||||||
break
|
return deviceType
|
||||||
case "motion sensor":
|
case "motion sensor":
|
||||||
deviceType = "motionSensor"
|
deviceType = "motionSensor"
|
||||||
break
|
return deviceType
|
||||||
case "presence sensor":
|
case "presence sensor":
|
||||||
deviceType = "presenceSensor"
|
deviceType = "presenceSensor"
|
||||||
break
|
return deviceType
|
||||||
case "thermostat":
|
case "thermostat":
|
||||||
deviceType = "thermostat"
|
deviceType = "thermostat"
|
||||||
break
|
return deviceType
|
||||||
case "water sensor":
|
case "water sensor":
|
||||||
deviceType = "waterSensor"
|
deviceType = "waterSensor"
|
||||||
break
|
return deviceType
|
||||||
default:
|
default:
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user