Skip to content

Commit 541747d

Browse files
authored
Merge pull request SmartThingsCommunity#3018 from SmartThingsCommunity/staging
Rolling down staging to master
2 parents 941418d + 4589d8b commit 541747d

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ metadata {
2424

2525
fingerprint inClusters: "0x26", deviceJoinName: "Z-Wave Dimmer"
2626
fingerprint mfr: "001D", prod: "1902", deviceJoinName: "Z-Wave Dimmer"
27+
fingerprint mfr: "001D", prod: "3301", model: "0001", deviceJoinName: "Leviton Dimmer Switch"
28+
fingerprint mfr: "001D", prod: "3201", model: "0001", deviceJoinName: "Leviton Dimmer Switch"
2729
fingerprint mfr: "001D", prod: "1B03", model: "0334", deviceJoinName: "Leviton Universal Dimmer"
2830
fingerprint mfr: "011A", prod: "0102", model: "0201", deviceJoinName: "Enerwave In-Wall Dimmer"
2931
fingerprint mfr: "001D", prod: "1001", model: "0334", deviceJoinName: "Leviton 3-Speed Fan Controller"

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ metadata {
2525
fingerprint mfr: "001D", prod: "1A02", model: "0334", deviceJoinName: "Leviton Appliance Module"
2626
fingerprint mfr: "001D", prod: "3401", model: "0001", deviceJoinName: "Leviton Switch" //Leviton DZ15S
2727
fingerprint mfr: "0063", prod: "4F50", model: "3031", deviceJoinName: "GE Plug-in Outdoor Switch"
28+
fingerprint mfr: "0063", prod: "4F50", model: "3032", deviceJoinName: "GE Plug-in Outdoor Switch"
2829
fingerprint mfr: "001D", prod: "1D04", model: "0334", deviceJoinName: "Leviton Outlet"
2930
fingerprint mfr: "001D", prod: "1C02", model: "0334", deviceJoinName: "Leviton Switch"
3031
fingerprint mfr: "001D", prod: "0301", model: "0334", deviceJoinName: "Leviton 15A Switch"

smartapps/smartthings/lifx-connect.src/lifx-connect.groovy

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,15 @@ def devicesList(selector = '') {
375375
} else if (resp.status == 401) {
376376
log.warn "Access token is not valid"
377377
state.lifxAccessToken = null
378+
} else if (resp.status == 404 && resp.data?.error.startsWith('Could not find location_id') && selector != '') {
379+
log.warn "Location is not valid"
380+
def devices = devicesList()
381+
devices.each { device ->
382+
if (device.location.id != settings.selectedLocationId && getChildDevice(device.id)) {
383+
settings.selectedLocationId = device.location.id
384+
app.updateSetting("selectedLocationId", device.location.id)
385+
}
386+
}
378387
} else {
379388
String errMsg = "No response from device list call. ${resp.status} ${resp.data}"
380389
log.debug(errMsg)

0 commit comments

Comments
 (0)