Commit 8a9b987 1 parent 0313ab5 commit 8a9b987 Copy full SHA for 8a9b987
File tree 1 file changed +10
-0
lines changed
Drivers/fibaro-dimmer-2.src
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 18
18
* for the specific language governing permissions and limitations under the License.
19
19
*
20
20
* added button to the current state so Hubitat apps can pick up the 3 buttons and added doubletap and releasable button: borristhecat 24/5/19
21
+ * added basicSet zwave event so physical button presses are handled by the hub. /eriktack 20190812
21
22
*/
22
23
23
24
metadata {
@@ -91,6 +92,15 @@ def zwaveEvent(hubitat.zwave.commands.basicv1.BasicReport cmd) {
91
92
}
92
93
}
93
94
95
+ def zwaveEvent (hubitat.zwave.commands.basicv1.BasicSet cmd , ep = null ) {
96
+ logging(" BasicSet: $cmd : Endpoint: $ep " )
97
+ def event
98
+ if (! ep) {
99
+ event = [createEvent([name : " switch" , value : cmd. value? " on" : " off" ])]
100
+ }
101
+ return event
102
+ }
103
+
94
104
def zwaveEvent (hubitat.zwave.commands.sceneactivationv1.SceneActivationSet cmd ) {
95
105
logging(" SceneActivationSet: $cmd " )
96
106
logging(" sceneId: $cmd . sceneId " )
You can’t perform that action at this time.
0 commit comments