Skip to content

Commit

Permalink
Increment both app version and required Homey firmware to 1.0.3
Browse files Browse the repository at this point in the history
Disabled debugging output in Z-Wave driver.
  • Loading branch information
Thorarin committed Dec 6, 2016
1 parent bfd1bef commit b3a02be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 20 deletions.
4 changes: 2 additions & 2 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "[email protected]"
Expand Down
19 changes: 1 addition & 18 deletions drivers/1101011/driver.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit b3a02be

Please sign in to comment.