Skip to content

Commit

Permalink
[CHF-561] Health Check Plant Link
Browse files Browse the repository at this point in the history
  • Loading branch information
pchomal committed Apr 21, 2017
1 parent 03b9f08 commit 29c7049
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 6 deletions.
2 changes: 2 additions & 0 deletions devicetypes/osotech/plantlink.src/.st-ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.st-ignore
README.md
33 changes: 33 additions & 0 deletions devicetypes/osotech/plantlink.src/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Osotech Plant Link

Cloud Execution

Works with:

* [OSO Technologies PlantLink Soil Moisture Sensor](https://www.smartthings.com/works-with-smartthings/oso-technologies/oso-technologies-plantlink-soil-moisture-sensor)

## Table of contents

* [Capabilities](#capabilities)
* [Health](#device-health)
* [Troubleshooting](#troubleshooting)

## Capabilities

* **Sensor** - detects sensor events
* **Health Check** - indicates ability to get device health notifications

## Device Health

Plant Link sensor is a ZigBee sleepy device and checks in every 15 minutes.
Device-Watch allows 2 check-in misses from device plus some lag time. So Check-in interval = (2*15 + 2)mins = 32 mins.

* __32min__ checkInterval

## Troubleshooting

If the device doesn't pair when trying from the SmartThings mobile app, it is possible that the sensor is out of range.
Pairing needs to be tried again by placing the sensor closer to the hub.
Instructions related to pairing, resetting and removing the different motion sensors from SmartThings can be found in the following links
for the different models:
* [OSO Technologies PlantLink Soil Moisture Sensor Troubleshooting Tips](https://support.smartthings.com/hc/en-us/articles/206868986-PlantLink-Soil-Moisture-Sensor)
13 changes: 12 additions & 1 deletion devicetypes/osotech/plantlink.src/plantlink.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import groovy.json.JsonBuilder
metadata {
definition (name: "PlantLink", namespace: "OsoTech", author: "Oso Technologies") {
capability "Sensor"
capability "Health Check"

command "setStatusIcon"
command "setPlantFuelLevel"
Expand Down Expand Up @@ -70,6 +71,16 @@ metadata {
}
}

def updated() {
// Device-Watch allows 2 check-in misses from device
sendEvent(name: "checkInterval", value: 2 * 15 * 60 + 2 * 60, displayed: false, data: [protocol: "zigbee", hubHardwareId: device.hub.hardwareID])
}

def installed() {
// Device-Watch allows 2 check-in misses from device
sendEvent(name: "checkInterval", value: 2 * 15 * 60 + 2 * 60, displayed: false, data: [protocol: "zigbee", hubHardwareId: device.hub.hardwareID])
}

def setStatusIcon(value){
def status = ''
switch (value) {
Expand Down Expand Up @@ -161,4 +172,4 @@ def parseDescriptionAsMap(description) {
map += []
}
}
}
}
2 changes: 1 addition & 1 deletion devicetypes/smartthings/plant-link.src/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Works with:

## Device Health

Plant Link sensor is a Z-wave sleepy device and checks in every 15 minutes.
Plant Link sensor is a ZigBee sleepy device and checks in every 15 minutes.
Device-Watch allows 2 check-in misses from device plus some lag time. So Check-in interval = (2*15 + 2)mins = 32 mins.

* __32min__ checkInterval
Expand Down
5 changes: 1 addition & 4 deletions devicetypes/smartthings/zwave-lock.src/README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
# Z-Wave Switch
# Z-Wave Lock

Cloud Execution

Works with:

* [Yale Key Free Touchscreen Deadbolt (YRD240)](https://www.smartthings.com/works-with-smartthings/yale/yale-key-free-touchscreen-deadbolt-yrd240)


## Table of contents

* [Capabilities](#capabilities)
Expand Down Expand Up @@ -41,5 +40,3 @@ If the device doesn't pair when trying from the SmartThings mobile app, it is po
Pairing needs to be tried again by placing the device closer to the hub.
Instructions related to pairing, resetting and removing the device from SmartThings can be found in the following link:
* [General Z-Wave/ZigBee Yale Lock Troubleshooting](https://support.smartthings.com/hc/en-us/articles/205138400-How-to-connect-Yale-locks)


0 comments on commit 29c7049

Please sign in to comment.