Skip to content

Commit 8d23935

Browse files
ALamchaSgreens
authored andcommitted
DEVC-554 DTH implementation for Cooper/Eaton 5 button Scene Controller (SmartThingsCommunity#2521)
* DEVC-554 DTH implementation for Cooper/Eaton 5 button Scene Controller * Style fixes. Unnecessary code removed. * Name change, refactoring. * Capability Health Check added. Ping() and poll() methods added * DEVC-554 Update Eaton 5-scene keypad DTH to set up better from Connect app. Code Refactoring. * [DEVC-554] Additional OneApp requirements: Change Eaton 5-Scene Keypad, so that parent DTH handles Switch 1. Various code improvements. * [DEVC-554] Use generic switch metadata. * [DEVC-554] Update file name to match definition. * [DEVC-554] Whitespace fix.
1 parent 7c51f62 commit 8d23935

File tree

3 files changed

+430
-0
lines changed

3 files changed

+430
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
/**
2+
* Copyright 2018 SmartThings
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
5+
* in compliance with the License. You may obtain a copy of the License at:
6+
*
7+
* http://www.apache.org/licenses/LICENSE-2.0
8+
*
9+
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed
10+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License
11+
* for the specific language governing permissions and limitations under the License.
12+
*
13+
*/
14+
metadata {
15+
definition(name: "Child Switch", namespace: "smartthings", author: "SmartThings", mnmn: "SmartThings", vid: "generic-switch") {
16+
capability "Switch"
17+
capability "Actuator"
18+
capability "Sensor"
19+
}
20+
21+
tiles(scale: 2) {
22+
multiAttributeTile(name: "switch", width: 6, height: 4, canChangeIcon: false) {
23+
tileAttribute("device.switch", key: "PRIMARY_CONTROL") {
24+
attributeState "on", label: '${name}', action: "switch.off", icon: "st.switches.light.on", backgroundColor: "#00a0dc"
25+
attributeState "off", label: '${name}', action: "switch.on", icon: "st.switches.light.off", backgroundColor: "#ffffff"
26+
}
27+
}
28+
29+
main "switch"
30+
details(["switch"])
31+
}
32+
}
33+
34+
void on() {
35+
parent.childOn(device.deviceNetworkId)
36+
}
37+
38+
void off() {
39+
parent.childOff(device.deviceNetworkId)
40+
}
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# Eaton 5-scene keypad
2+
3+
Cloud Execution
4+
5+
Works with:
6+
7+
* [Eaton 5-scene keypad](http://www.cooperindustries.com/content/public/en/wiring_devices/products/lighting_controls/aspire_rf_wireless/aspire_rf_5_button_scene_control_keypad_rfwdc_rfwc5.html)
8+
9+
## Table of contents
10+
11+
* [Capabilities](#capabilities)
12+
* [Installation](#installation)
13+
* [Supported Functionality](#supported-functionality)
14+
* [Unsupported Functionality](#unsupported-functionality)
15+
* [Deinstallation](#deinstallation)
16+
17+
## Capabilities
18+
19+
5 Controller supports:
20+
21+
* **Actuator** - represents device has commands
22+
* **Refresh** - is capable of refreshing current cloud state with values retrieved from the device
23+
* **Sensor** - detects sensor events
24+
* **Health Check** - check if device is available or unavailable
25+
26+
27+
Child devices support:
28+
29+
* **Actuator** - represents device has commands
30+
* **Switch** - represents a device with a switch
31+
* **Sensor** - detects sensor events
32+
33+
## Installation
34+
35+
The Eaton 5-scene keypad has blue LEDs which will all blink when the device is not included in a Z-Wave network.
36+
37+
* To include this device in SmartThings Hub network, start device discovery from SmartThings app, then press the device's All Off button one time.
38+
* DO NOT press any buttons while the device LEDs are blinking sequentially. After pairing is complete the LEDs will stop blinking.
39+
* If all blue LEDs on the device start blinking again, press All Off button again.
40+
* Confirm addition of new device from SmartThings app.
41+
* Initial device configuration will start. It will take about a minute, so Hub will light LEDs from 5 to 1 to indicate progress.
42+
* After initial configuration ends, Handler will check twice if configuration was successful, and retry if neccessary. One check will take about a minute. Hub will light LEDs from 5 to 1 to indicate progress of each of those configuration checks.
43+
* This process may fail too. To check if set up was successful, wait for all leds to be turned off, and turn every switch on (Important note: do this without turning any switch off).
44+
* Now check status of all switches in mobile application. If all switches are turned on, set up was successful.
45+
* If any switches is still turned off, please exclude Eaton 5-scene keypad from hub's z-wave network and try again.
46+
47+
## Supported Functionality
48+
49+
SmartThings will treat Eaton 5-scene keypad as 5-switch remote.
50+
51+
## Unsupported Functionality
52+
53+
SmartThings does not support Dimmer and All Off functionality of Eaton 5-scene keypad. Using All Off feature will most likely cause device to be out of synch with it's cloud state.
54+
55+
## Deinstallation
56+
* Start device exlusion using SmartThings app.
57+
* Press the ALL OFF button one time to exclude device from SmartThings.
58+
* All the device's LEDs will start blinking indicating that the device is no longer in the z-wave network.
59+

0 commit comments

Comments
 (0)