From 38923deeb9740bae42d12307f17c766ad949f208 Mon Sep 17 00:00:00 2001 From: Darwin Edwards Date: Thu, 23 Mar 2017 17:59:32 -0700 Subject: [PATCH] set numberOfButtons attribute for those smart apps that rely on this --- .../sage-doorbell-sensor.src/sage-doorbell-sensor.groovy | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/devicetypes/darwinsden/sage-doorbell-sensor.src/sage-doorbell-sensor.groovy b/devicetypes/darwinsden/sage-doorbell-sensor.src/sage-doorbell-sensor.groovy index 4041a6837f7..c13a899a98b 100644 --- a/devicetypes/darwinsden/sage-doorbell-sensor.src/sage-doorbell-sensor.groovy +++ b/devicetypes/darwinsden/sage-doorbell-sensor.src/sage-doorbell-sensor.groovy @@ -31,9 +31,10 @@ * * Changelog: * - * 0.30 (11/20/2016) - Removed non-operational battery capability; was preventing device display on 2.2.2 mobile app - * 0.20 (08/02/2016) - Added preference option for allowed time between presses to eliminate duplicate notifications on some systems - * 0.10 (06/13/2016) - Initial 0.1 pre-beta Test Code + * 0.40 (03/23/2017) - set numberOfButtons attribute for those smart apps that rely on this + * 0.30 (11/20/2016) - Removed non-operational battery capability; was preventing device display on 2.2.2 mobile app + * 0.20 (08/02/2016) - Added preference option for allowed time between presses to eliminate duplicate notifications on some systems + * 0.10 (06/13/2016) - Initial 0.1 pre-beta Test Code * */ @@ -242,6 +243,8 @@ def refresh() { button1DisplayReset() button2DisplayReset() + sendEvent(name: "numberOfButtons", value: 2, displayed: false) + setPrefs() return refreshCmds + enrollResponse()