Skip to content

Commit 4b36e81

Browse files
authored
Merge pull request SmartThingsCommunity#2515 from SmartThingsCommunity/staging
Rolling up staging to production
2 parents d224757 + 0048457 commit 4b36e81

File tree

7 files changed

+87
-8
lines changed

7 files changed

+87
-8
lines changed

devicetypes/smartthings/aeon-key-fob.src/aeon-key-fob.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ metadata {
4040
}
4141
tiles {
4242

43-
multiAttributeTile(name: "rich-control") {
43+
multiAttributeTile(name: "rich-control", type: "generic", width: 6, height: 4, canChangeIcon: true) {
4444
tileAttribute("device.button", key: "PRIMARY_CONTROL") {
4545
attributeState "default", label: ' ', action: "", icon: "st.unknown.zwave.remote-controller", backgroundColor: "#ffffff"
4646
}
@@ -201,4 +201,4 @@ private void createChildDevices() {
201201
[completedSetup: true, label: "${device.displayName} button ${i}",
202202
isComponent: true, componentName: "button$i", componentLabel: "Button $i"])
203203
}
204-
}
204+
}

devicetypes/smartthings/aeon-minimote.src/aeon-minimote.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ metadata {
3939
status "wakeup": "command: 8407, payload: "
4040
}
4141
tiles(scale: 2) {
42-
multiAttributeTile(name: "rich-control") {
42+
multiAttributeTile(name: "rich-control", type: "generic", width: 6, height: 4, canChangeIcon: true) {
4343
tileAttribute("device.button", key: "PRIMARY_CONTROL") {
4444
attributeState "default", label: ' ', action: "", icon: "st.unknown.zwave.remote-controller", backgroundColor: "#ffffff"
4545
}
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
/**
2+
* Blacklisted Device
3+
*
4+
* Copyright 2017 SmartThings
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
7+
* in compliance with the License. You may obtain a copy of the License at:
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed
12+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License
13+
* for the specific language governing permissions and limitations under the License.
14+
*
15+
*/
16+
17+
metadata {
18+
definition (name: "Blacklisted Device", namespace: "smartthings", author: "SmartThings") {
19+
fingerprint profileId: "0104", inClusters: "0000, 0009, 000A, 0101, FC00, 0001", manufacturer:"Yale", model:"Cap", deviceJoinName: "Blacklisted Yale Lock"
20+
fingerprint inClusters: "0000, 0003, 0101", manufacturer:"Kwikset", model:"Smartcode", deviceJoinName: "Blacklisted Kwikset Lock"
21+
}
22+
23+
// UI tile definitions
24+
tiles(scale: 2) {
25+
multiAttributeTile(name:"alarm", type: "generic", width: 3, height: 4){
26+
tileAttribute ("device.alarm", key: "PRIMARY_CONTROL") {
27+
attributeState "default", label:'blocked!', icon:"st.unknown.thing.thing-circle", backgroundColor:"#ff0000"
28+
}
29+
}
30+
31+
htmlTile(name:"Home",action:"main", type: "HTML",width: 6, height: 2, whitelist: whitelist())
32+
33+
main "alarm"
34+
details(["Home"])
35+
}
36+
}
37+
38+
mappings {
39+
path("/main") { action: [GET:"main"] }
40+
}
41+
42+
def installed() {
43+
log.warn "Blacklisted DTH device joined. DeviceId : ${device.id}, manufacturer: ${device.getDataValue('manufacturer')}, model: ${device.getDataValue('model')}"
44+
}
45+
46+
def uninstalled() {
47+
log.trace "Blacklisted DTH device deleted. DeviceId : ${device.id}, manufacturer: ${device.getDataValue('manufacturer')}, model: ${device.getDataValue('model')}"
48+
}
49+
50+
def main() {
51+
renderHTML() {
52+
head {
53+
"""
54+
<meta name="viewport" content="initial-scale=1.0">
55+
<meta charset="utf-8">
56+
<style>
57+
body {
58+
font-size: 1em;
59+
color: #888888;
60+
}
61+
62+
a {
63+
color: #15bfff;
64+
}
65+
</style>
66+
"""
67+
}
68+
body {
69+
"""
70+
<div id="home" style="text-align: center; padding-top:15px;">
71+
This device is known to be incompatible with SmartThings and may not function as expected or cause other devices to malfunction.</br>
72+
For more information go to:</br></br>
73+
<a href="https://support.smartthings.com/hc/en-us/articles/115005123183" target="_blank">https://support.smartthings.com/hc/en-us/articles/115005123183</a>
74+
</div>
75+
"""
76+
}
77+
}
78+
}
79+
80+
def whitelist() {
81+
[]
82+
}

devicetypes/smartthings/child-button.src/child-button.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ metadata {
2121
}
2222

2323
tiles(scale: 2) {
24-
multiAttributeTile(name: "rich-control") {
24+
multiAttributeTile(name: "rich-control", type: "generic", width: 6, height: 4, canChangeIcon: true) {
2525
tileAttribute("device.button", key: "PRIMARY_CONTROL") {
2626
attributeState "default", label: ' ', action: "", icon: "st.unknown.zwave.remote-controller", backgroundColor: "#ffffff"
2727
}

devicetypes/smartthings/hue-bridge.src/hue-bridge.groovy

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ metadata {
2626
}
2727

2828
tiles(scale: 2) {
29-
multiAttributeTile(name:"rich-control"){
29+
multiAttributeTile(name: "rich-control", type: "generic", width: 6, height: 4, canChangeIcon: true) {
3030
tileAttribute ("device.status", key: "PRIMARY_CONTROL") {
3131
attributeState "Offline", label: '${currentValue}', action: "", icon: "st.Lighting.light99-hue", backgroundColor: "#ffffff"
3232
attributeState "Online", label: '${currentValue}', action: "", icon: "st.Lighting.light99-hue", backgroundColor: "#00A0DC"
@@ -99,4 +99,3 @@ def parse(description) {
9999
}
100100
results
101101
}
102-

devicetypes/smartthings/zigbee-rgb-bulb.src/zigbee-rgb-bulb.groovy

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ metadata {
2323
capability "Actuator"
2424
capability "Color Control"
2525
capability "Configuration"
26-
capability "Polling"
2726
capability "Refresh"
2827
capability "Switch"
2928
capability "Switch Level"

devicetypes/smartthings/zigbee-rgbw-bulb.src/zigbee-rgbw-bulb.groovy

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ metadata {
2424
capability "Color Control"
2525
capability "Color Temperature"
2626
capability "Configuration"
27-
capability "Polling"
2827
capability "Refresh"
2928
capability "Switch"
3029
capability "Switch Level"

0 commit comments

Comments
 (0)