Skip to content

Commit 9bcd0e4

Browse files
authored
GoControl Integrations (SmartThingsCommunity#2927)
* GoControl Integrations
1 parent 3f8abbe commit 9bcd0e4

File tree

5 files changed

+16
-2
lines changed

5 files changed

+16
-2
lines changed

devicetypes/smartthings/zwave-dimmer-switch-generic.src/zwave-dimmer-switch-generic.groovy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ metadata {
4141
fingerprint mfr: "001A", prod: "4449", model: "0101", deviceJoinName: "Eaton RF Master Dimmer"
4242
fingerprint mfr: "001A", prod: "4449", model: "0003", deviceJoinName: "Eaton RF Dimming Plug-In Module"
4343
fingerprint mfr: "0086", prod: "0103", model: "0063", deviceJoinName: "Aeotec Smart Dimmer 6"
44+
fingerprint mfr: "014F", prod: "5744", model: "3530", deviceJoinName: "GoControl In-Wall Dimmer"
4445
}
4546

4647
simulator {

devicetypes/smartthings/zwave-metering-dimmer.src/zwave-metering-dimmer.groovy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ metadata {
3333
fingerprint inClusters: "0x26,0x32"
3434
fingerprint mfr:"0086", prod:"0003", model:"001B", deviceJoinName: "Aeotec Micro Smart Dimmer 2E"
3535
fingerprint mfr:"0086", prod:"0103", model:"0063", deviceJoinName: "Aeotec Smart Dimmer 6"
36+
fingerprint mfr:"014F", prod "5044", model:"3533", deviceJoinName: "GoControl Plug-in Dimmer"
3637
}
3738

3839
simulator {

devicetypes/smartthings/zwave-metering-switch.src/zwave-metering-switch.groovy

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ metadata {
2929
fingerprint mfr: "0086", prod: "0003", model: "0012", deviceJoinName: "Aeotec Micro Smart Switch"
3030
fingerprint mfr: "021F", prod: "0003", model: "0087", deviceJoinName: "Dome On/Off Plug-in Switch"
3131
fingerprint mfr: "0086", prod: "0103", model: "0060", deviceJoinName: "Aeotec Smart Switch 6"
32+
fingerprint mfr: "014F", prod: "574F", model: "3535", deviceJoinName: "GoControl Wall-Mounted Outlet"
33+
fingerprint mfr: "014F", prod: "5053", model: "3531", deviceJoinName: "GoControl Plug-in Switch"
3234
}
3335

3436
// simulator metadata

devicetypes/smartthings/zwave-plus-motion-temp-sensor.src/zwave-plus-motion-temp-sensor.groovy

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def configure() {
7474
log.debug "configure()"
7575
def cmds = []
7676

77-
if (state.sec != 1) {
77+
if (!isSecured()) {
7878
// secure inclusion may not be complete yet
7979
cmds << "delay 1000"
8080
}
@@ -317,7 +317,7 @@ def zwaveEvent(physicalgraph.zwave.Command cmd) {
317317
}
318318

319319
private secure(physicalgraph.zwave.Command cmd) {
320-
if (state.sec == 0) { // default to secure
320+
if (!isSecured()) { // default to secure
321321
cmd.format()
322322
} else {
323323
zwave.securityV1.securityMessageEncapsulation().encapsulate(cmd).format()
@@ -327,3 +327,11 @@ private secure(physicalgraph.zwave.Command cmd) {
327327
private secureSequence(commands, delay=200) {
328328
delayBetween(commands.collect{ secure(it) }, delay)
329329
}
330+
331+
private isSecured() {
332+
if (zwaveInfo && zwaveInfo.zw) {
333+
return zwaveInfo.zw.endsWith("s")
334+
} else {
335+
return state.sec == 1
336+
}
337+
}

devicetypes/smartthings/zwave-switch-generic.src/zwave-switch-generic.groovy

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ metadata {
4242
fingerprint mfr: "001A", prod: "534C", model: "0000", deviceJoinName: "Eaton RF Master Switch"
4343
fingerprint mfr: "001A", prod: "5354", model: "0003", deviceJoinName: "Eaton RF Appliance Plug-In Module"
4444
fingerprint mfr: "001A", prod: "5352", model: "0000", deviceJoinName: "Eaton RF Accessory Switch"
45+
fingerprint mfr: "014F", prod: "5753", model: "3535", deviceJoinName: "GoControl Smart In-Wall Switch"
46+
fingerprint mfr: "014F", prod: "5257", model: "3033", deviceJoinName: "GoControl Wall Relay Switch"
4547
}
4648

4749
// simulator metadata

0 commit comments

Comments
 (0)