From 13e5e2852660cb9eec2e4345ce2a14b2ba220be8 Mon Sep 17 00:00:00 2001 From: Greg Jacobs Date: Sun, 23 Jul 2023 11:57:32 -0400 Subject: [PATCH 1/3] Added support for Visonic GB-540 Acoustic Glass Break Senso Added support for https://www.visonic.com/glass-break-detector-gb-540 * Tamper Detection * Low Battery Alerts * Glass break sensing / alerting (used devices test mode to confirm operation / correct signaling --- src/devices/visonic.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/devices/visonic.ts b/src/devices/visonic.ts index 73d8fef8aa88f..a06a87d66fa08 100644 --- a/src/devices/visonic.ts +++ b/src/devices/visonic.ts @@ -78,6 +78,15 @@ const definitions: Definition[] = [ }, exposes: [e.contact(), e.battery_low(), e.tamper(), e.temperature(), e.battery()], }, + { + zigbeeModel: ['GB-540'], + model: 'GB-540', + vendor: 'Visonic', + description: 'Glass Break Detector', //https://www.visonic.com/glass-break-detector-gb-540 + fromZigbee: [fz.ias_vibration_alarm_1], + toZigbee: [], + exposes: [e.vibration(), e.battery_low(), e.tamper()] + } ]; module.exports = definitions; From 3382e2cce1847e6ac6a941c9da6c5d6ef66064bc Mon Sep 17 00:00:00 2001 From: Greg Jacobs Date: Sun, 23 Jul 2023 12:10:45 -0400 Subject: [PATCH 2/3] Update visonic.ts (linting fixes) --- src/devices/visonic.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/devices/visonic.ts b/src/devices/visonic.ts index a06a87d66fa08..954d6f4af025d 100644 --- a/src/devices/visonic.ts +++ b/src/devices/visonic.ts @@ -82,11 +82,11 @@ const definitions: Definition[] = [ zigbeeModel: ['GB-540'], model: 'GB-540', vendor: 'Visonic', - description: 'Glass Break Detector', //https://www.visonic.com/glass-break-detector-gb-540 + description: 'Glass Break Detector', fromZigbee: [fz.ias_vibration_alarm_1], toZigbee: [], - exposes: [e.vibration(), e.battery_low(), e.tamper()] - } + exposes: [e.vibration(), e.battery_low(), e.tamper()], + }, ]; module.exports = definitions; From 77b3843d9e95d8aa47eaa3e920ac4c8e6244948d Mon Sep 17 00:00:00 2001 From: Koen Kanters Date: Sun, 23 Jul 2023 18:40:36 +0200 Subject: [PATCH 3/3] Update visonic.ts --- src/devices/visonic.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/visonic.ts b/src/devices/visonic.ts index 954d6f4af025d..8d8f8587e285d 100644 --- a/src/devices/visonic.ts +++ b/src/devices/visonic.ts @@ -82,7 +82,7 @@ const definitions: Definition[] = [ zigbeeModel: ['GB-540'], model: 'GB-540', vendor: 'Visonic', - description: 'Glass Break Detector', + description: 'Glass break detector', fromZigbee: [fz.ias_vibration_alarm_1], toZigbee: [], exposes: [e.vibration(), e.battery_low(), e.tamper()],