From b3a02be9c7b99a1188c15a8c1faff97125bf37c6 Mon Sep 17 00:00:00 2001 From: Marcel Veldhuizen Date: Tue, 6 Dec 2016 21:09:46 +0100 Subject: [PATCH] Increment both app version and required Homey firmware to 1.0.3 Disabled debugging output in Z-Wave driver. --- app.json | 4 ++-- drivers/1101011/driver.js | 19 +------------------ 2 files changed, 3 insertions(+), 20 deletions(-) diff --git a/app.json b/app.json index eea1b4f..ec63b04 100644 --- a/app.json +++ b/app.json @@ -13,8 +13,8 @@ "large": "/assets/images/large.png", "small": "/assets/images/small.png" }, - "version": "1.0.2", - "compatibility": ">=1.0.2", + "version": "1.0.3", + "compatibility": ">=1.0.3", "author": { "name": "Marcel Veldhuizen", "email": "marcel@thorarin.net" diff --git a/drivers/1101011/driver.js b/drivers/1101011/driver.js index 558f95f..1002232 100644 --- a/drivers/1101011/driver.js +++ b/drivers/1101011/driver.js @@ -6,33 +6,16 @@ const ZwaveDriver = require('homey-zwavedriver'); // http://www.pepper1.net/zwavedb/device/831 module.exports = new ZwaveDriver( path.basename(__dirname), { - debug: true, + debug: false, capabilities: { 'alarm_contact': { 'command_class' : 'COMMAND_CLASS_SENSOR_BINARY', 'command_get' : 'SENSOR_BINARY_GET', 'command_report' : 'SENSOR_BINARY_REPORT', 'command_report_parser' : function( report ){ - //console.log(JSON.stringify(report)); return report['Sensor Value (Raw)'][0] > 0; } }, - // 'alarm_contact': { - // 'command_class' : 'COMMAND_CLASS_NOTIFICATION', - // 'command_get' : 'NOTIFICATION_GET', - // 'command_get_parser' : function() { - // return { - // 'V1 Alarm Type': 6, - // 'Notification Type': 'Home Security', - // 'Event': 6 - // } - // }, - // 'command_report' : 'NOTIFICATION_REPORT', - // 'command_report_parser' : function(report) { - // console.log(JSON.stringify(report)); - // return report['Alarm Level'] > 0; - // } - // }, 'measure_battery': { 'command_class' : 'COMMAND_CLASS_BATTERY', 'command_get' : 'BATTERY_GET',