ICP-381 - Add ocfDeviceType to switch devices (#1856)

This commit is contained in:
Juan Pablo Risso
2017-03-31 14:05:26 -04:00
committed by Vinay Rao
parent fe887121d3
commit a112d4b00e
10 changed files with 11 additions and 11 deletions

View File

@@ -12,7 +12,7 @@
*
*/
metadata {
definition (name: "Dimmer Switch", namespace: "smartthings", author: "SmartThings") {
definition (name: "Dimmer Switch", namespace: "smartthings", author: "SmartThings", ocfDeviceType: "oic.d.switch") {
capability "Switch Level"
capability "Actuator"
capability "Indicator"

View File

@@ -18,7 +18,7 @@
metadata {
definition (name: "Wemo Light Switch", namespace: "smartthings", author: "SmartThings") {
definition (name: "Wemo Light Switch", namespace: "smartthings", author: "SmartThings", ocfDeviceType: "oic.d.switch") {
capability "Actuator"
capability "Switch"
capability "Polling"

View File

@@ -16,7 +16,7 @@
* Date: 2015-10-11
*/
metadata {
definition (name: "Wemo Switch", namespace: "smartthings", author: "SmartThings") {
definition (name: "Wemo Switch", namespace: "smartthings", author: "SmartThings", ocfDeviceType: "oic.d.smartplug") {
capability "Actuator"
capability "Switch"
capability "Polling"

View File

@@ -13,7 +13,7 @@
*/
metadata {
definition (name: "ZigBee Dimmer", namespace: "smartthings", author: "SmartThings") {
definition (name: "ZigBee Dimmer", namespace: "smartthings", author: "SmartThings", ocfDeviceType: "oic.d.switch") {
capability "Actuator"
capability "Configuration"
capability "Refresh"

View File

@@ -12,7 +12,7 @@
*
*/
metadata {
definition (name: "Z-Wave Dimmer Switch Generic", namespace: "smartthings", author: "SmartThings") {
definition (name: "Z-Wave Dimmer Switch Generic", namespace: "smartthings", author: "SmartThings", ocfDeviceType: "oic.d.switch") {
capability "Switch Level"
capability "Actuator"
capability "Health Check"

View File

@@ -16,7 +16,7 @@
*
*/
metadata {
definition (name: "Z-Wave Metering Dimmer", namespace: "smartthings", author: "SmartThings") {
definition (name: "Z-Wave Metering Dimmer", namespace: "smartthings", author: "SmartThings", ocfDeviceType: "oic.d.switch") {
capability "Switch"
capability "Polling"
capability "Power Meter"

View File

@@ -12,7 +12,7 @@
*
*/
metadata {
definition (name: "Z-Wave Metering Switch", namespace: "smartthings", author: "SmartThings") {
definition (name: "Z-Wave Metering Switch", namespace: "smartthings", author: "SmartThings", ocfDeviceType: "oic.d.switch") {
capability "Energy Meter"
capability "Actuator"
capability "Switch"
@@ -86,7 +86,7 @@ def updated() {
def parse(String description) {
def result = null
if(description == "updated") return
if(description == "updated") return
def cmd = zwave.parse(description, [0x20: 1, 0x32: 1, 0x72: 2])
if (cmd) {
result = zwaveEvent(cmd)

View File

@@ -12,7 +12,7 @@
*
*/
metadata {
definition (name: "Z-Wave Switch Generic", namespace: "smartthings", author: "SmartThings") {
definition (name: "Z-Wave Switch Generic", namespace: "smartthings", author: "SmartThings", ocfDeviceType: "oic.d.switch") {
capability "Actuator"
capability "Health Check"
capability "Switch"

View File

@@ -12,7 +12,7 @@
*
*/
metadata {
definition (name: "Z-Wave Switch Secure", namespace: "smartthings", author: "SmartThings") {
definition (name: "Z-Wave Switch Secure", namespace: "smartthings", author: "SmartThings", ocfDeviceType: "oic.d.switch") {
capability "Switch"
capability "Refresh"
capability "Polling"

View File

@@ -12,7 +12,7 @@
*
*/
metadata {
definition (name: "Z-Wave Switch", namespace: "smartthings", author: "SmartThings") {
definition (name: "Z-Wave Switch", namespace: "smartthings", author: "SmartThings", ocfDeviceType: "oic.d.switch") {
capability "Actuator"
capability "Indicator"
capability "Switch"