From 7beb2e390520609dc4f8088b6d6507499017a8fe Mon Sep 17 00:00:00 2001 From: CosmicPuppy Date: Fri, 5 Aug 2016 01:09:32 -0700 Subject: [PATCH] Added Capability "Sensor" and/or "Actuator" per http://docs.smartthings.com/en/latest/device-type-developers-guide/overview.html?highlight=sensor%20actuator#actuator-and-sensor. There are some integrations out there using the "Actuator" and "Sensor" Capabilities and this doesn't show up for them (e.g., SmartTiles V6). --- .../smartsense-moisture-sensor.groovy | 1 + .../smartsense-motion-sensor.groovy | 1 + .../smartsense-open-closed-accelerometer-sensor.groovy | 1 + .../smartsense-temp-humidity-sensor.groovy | 1 + .../testing/simulated-alarm.src/simulated-alarm.groovy | 2 ++ .../simulated-color-control.src/simulated-color-control.groovy | 2 ++ .../simulated-contact-sensor.groovy | 1 + .../testing/simulated-lock.src/simulated-lock.groovy | 2 ++ .../simulated-motion-sensor.src/simulated-motion-sensor.groovy | 1 + .../simulated-presence-sensor.groovy | 1 + .../testing/simulated-switch.src/simulated-switch.groovy | 2 ++ .../simulated-temperature-sensor.groovy | 1 + .../simulated-thermostat.src/simulated-thermostat.groovy | 2 ++ .../simulated-water-sensor.src/simulated-water-sensor.groovy | 1 + 14 files changed, 19 insertions(+) diff --git a/devicetypes/smartthings/smartsense-moisture-sensor.src/smartsense-moisture-sensor.groovy b/devicetypes/smartthings/smartsense-moisture-sensor.src/smartsense-moisture-sensor.groovy index 4e9a32c..c1be409 100644 --- a/devicetypes/smartthings/smartsense-moisture-sensor.src/smartsense-moisture-sensor.groovy +++ b/devicetypes/smartthings/smartsense-moisture-sensor.src/smartsense-moisture-sensor.groovy @@ -22,6 +22,7 @@ metadata { capability "Temperature Measurement" capability "Water Sensor" capability "Health Check" + capability "Sensor" command "enrollResponse" diff --git a/devicetypes/smartthings/smartsense-motion-sensor.src/smartsense-motion-sensor.groovy b/devicetypes/smartthings/smartsense-motion-sensor.src/smartsense-motion-sensor.groovy index 5d80f07..342bd2e 100644 --- a/devicetypes/smartthings/smartsense-motion-sensor.src/smartsense-motion-sensor.groovy +++ b/devicetypes/smartthings/smartsense-motion-sensor.src/smartsense-motion-sensor.groovy @@ -22,6 +22,7 @@ metadata { capability "Temperature Measurement" capability "Refresh" capability "Health Check" + capability "Sensor" command "enrollResponse" diff --git a/devicetypes/smartthings/smartsense-open-closed-accelerometer-sensor.src/smartsense-open-closed-accelerometer-sensor.groovy b/devicetypes/smartthings/smartsense-open-closed-accelerometer-sensor.src/smartsense-open-closed-accelerometer-sensor.groovy index d12124a..7668ff2 100644 --- a/devicetypes/smartthings/smartsense-open-closed-accelerometer-sensor.src/smartsense-open-closed-accelerometer-sensor.groovy +++ b/devicetypes/smartthings/smartsense-open-closed-accelerometer-sensor.src/smartsense-open-closed-accelerometer-sensor.groovy @@ -24,6 +24,7 @@ capability "Refresh" capability "Temperature Measurement" capability "Health Check" + capability "Sensor" command "enrollResponse" } diff --git a/devicetypes/smartthings/smartsense-temp-humidity-sensor.src/smartsense-temp-humidity-sensor.groovy b/devicetypes/smartthings/smartsense-temp-humidity-sensor.src/smartsense-temp-humidity-sensor.groovy index 0476f72..e06dc78 100644 --- a/devicetypes/smartthings/smartsense-temp-humidity-sensor.src/smartsense-temp-humidity-sensor.groovy +++ b/devicetypes/smartthings/smartsense-temp-humidity-sensor.src/smartsense-temp-humidity-sensor.groovy @@ -21,6 +21,7 @@ metadata { capability "Temperature Measurement" capability "Relative Humidity Measurement" capability "Health Check" + capability "Sensor" fingerprint endpointId: "01", inClusters: "0001,0003,0020,0402,0B05,FC45", outClusters: "0019,0003" } diff --git a/devicetypes/smartthings/testing/simulated-alarm.src/simulated-alarm.groovy b/devicetypes/smartthings/testing/simulated-alarm.src/simulated-alarm.groovy index edb6f14..2eaab37 100644 --- a/devicetypes/smartthings/testing/simulated-alarm.src/simulated-alarm.groovy +++ b/devicetypes/smartthings/testing/simulated-alarm.src/simulated-alarm.groovy @@ -16,6 +16,8 @@ metadata { definition (name: "Simulated Alarm", namespace: "smartthings/testing", author: "SmartThings") { capability "Alarm" + capability "Sensor" + capability "Actuator" } simulator { diff --git a/devicetypes/smartthings/testing/simulated-color-control.src/simulated-color-control.groovy b/devicetypes/smartthings/testing/simulated-color-control.src/simulated-color-control.groovy index f32fa5c..487da0d 100644 --- a/devicetypes/smartthings/testing/simulated-color-control.src/simulated-color-control.groovy +++ b/devicetypes/smartthings/testing/simulated-color-control.src/simulated-color-control.groovy @@ -1,6 +1,8 @@ metadata { definition (name: "Simulated Color Control", namespace: "smartthings/testing", author: "SmartThings") { capability "Color Control" + capability "Sensor" + capability "Actuator" } simulator { diff --git a/devicetypes/smartthings/testing/simulated-contact-sensor.src/simulated-contact-sensor.groovy b/devicetypes/smartthings/testing/simulated-contact-sensor.src/simulated-contact-sensor.groovy index 46d52f8..0c520e8 100644 --- a/devicetypes/smartthings/testing/simulated-contact-sensor.src/simulated-contact-sensor.groovy +++ b/devicetypes/smartthings/testing/simulated-contact-sensor.src/simulated-contact-sensor.groovy @@ -15,6 +15,7 @@ metadata { // Automatically generated. Make future change here. definition (name: "Simulated Contact Sensor", namespace: "smartthings/testing", author: "bob") { capability "Contact Sensor" + capability "Sensor" command "open" command "close" diff --git a/devicetypes/smartthings/testing/simulated-lock.src/simulated-lock.groovy b/devicetypes/smartthings/testing/simulated-lock.src/simulated-lock.groovy index e94bec6..59e6e0d 100644 --- a/devicetypes/smartthings/testing/simulated-lock.src/simulated-lock.groovy +++ b/devicetypes/smartthings/testing/simulated-lock.src/simulated-lock.groovy @@ -15,6 +15,8 @@ metadata { // Automatically generated. Make future change here. definition (name: "Simulated Lock", namespace: "smartthings/testing", author: "bob") { capability "Lock" + capability "Sensor" + capability "Actuator" } // Simulated lock diff --git a/devicetypes/smartthings/testing/simulated-motion-sensor.src/simulated-motion-sensor.groovy b/devicetypes/smartthings/testing/simulated-motion-sensor.src/simulated-motion-sensor.groovy index 73ca0a9..cf5a773 100644 --- a/devicetypes/smartthings/testing/simulated-motion-sensor.src/simulated-motion-sensor.groovy +++ b/devicetypes/smartthings/testing/simulated-motion-sensor.src/simulated-motion-sensor.groovy @@ -15,6 +15,7 @@ metadata { // Automatically generated. Make future change here. definition (name: "Simulated Motion Sensor", namespace: "smartthings/testing", author: "bob") { capability "Motion Sensor" + capability "Sensor" command "active" command "inactive" diff --git a/devicetypes/smartthings/testing/simulated-presence-sensor.src/simulated-presence-sensor.groovy b/devicetypes/smartthings/testing/simulated-presence-sensor.src/simulated-presence-sensor.groovy index 8b075da..389122a 100644 --- a/devicetypes/smartthings/testing/simulated-presence-sensor.src/simulated-presence-sensor.groovy +++ b/devicetypes/smartthings/testing/simulated-presence-sensor.src/simulated-presence-sensor.groovy @@ -15,6 +15,7 @@ metadata { // Automatically generated. Make future change here. definition (name: "Simulated Presence Sensor", namespace: "smartthings/testing", author: "bob") { capability "Presence Sensor" + capability "Sensor" command "arrived" command "departed" diff --git a/devicetypes/smartthings/testing/simulated-switch.src/simulated-switch.groovy b/devicetypes/smartthings/testing/simulated-switch.src/simulated-switch.groovy index e4256cc..e15cf0d 100644 --- a/devicetypes/smartthings/testing/simulated-switch.src/simulated-switch.groovy +++ b/devicetypes/smartthings/testing/simulated-switch.src/simulated-switch.groovy @@ -16,6 +16,8 @@ metadata { definition (name: "Simulated Switch", namespace: "smartthings/testing", author: "bob") { capability "Switch" capability "Relay Switch" + capability "Sensor" + capability "Actuator" command "onPhysical" command "offPhysical" diff --git a/devicetypes/smartthings/testing/simulated-temperature-sensor.src/simulated-temperature-sensor.groovy b/devicetypes/smartthings/testing/simulated-temperature-sensor.src/simulated-temperature-sensor.groovy index 6d32824..bb038e3 100644 --- a/devicetypes/smartthings/testing/simulated-temperature-sensor.src/simulated-temperature-sensor.groovy +++ b/devicetypes/smartthings/testing/simulated-temperature-sensor.src/simulated-temperature-sensor.groovy @@ -16,6 +16,7 @@ metadata { definition (name: "Simulated Temperature Sensor", namespace: "smartthings/testing", author: "SmartThings") { capability "Temperature Measurement" capability "Switch Level" + capability "Sensor" command "up" command "down" diff --git a/devicetypes/smartthings/testing/simulated-thermostat.src/simulated-thermostat.groovy b/devicetypes/smartthings/testing/simulated-thermostat.src/simulated-thermostat.groovy index 229c90c..63d08f8 100644 --- a/devicetypes/smartthings/testing/simulated-thermostat.src/simulated-thermostat.groovy +++ b/devicetypes/smartthings/testing/simulated-thermostat.src/simulated-thermostat.groovy @@ -16,6 +16,8 @@ metadata { definition (name: "Simulated Thermostat", namespace: "smartthings/testing", author: "SmartThings") { capability "Thermostat" capability "Relative Humidity Measurement" + capability "Sensor" + capability "Actuator" command "tempUp" command "tempDown" diff --git a/devicetypes/smartthings/testing/simulated-water-sensor.src/simulated-water-sensor.groovy b/devicetypes/smartthings/testing/simulated-water-sensor.src/simulated-water-sensor.groovy index 74377fb..4998447 100644 --- a/devicetypes/smartthings/testing/simulated-water-sensor.src/simulated-water-sensor.groovy +++ b/devicetypes/smartthings/testing/simulated-water-sensor.src/simulated-water-sensor.groovy @@ -15,6 +15,7 @@ metadata { // Automatically generated. Make future change here. definition (name: "Simulated Water Sensor", namespace: "smartthings/testing", author: "SmartThings") { capability "Water Sensor" + capability "Sensor" command "wet" command "dry"