From d521755a491b7bdc495fc751bd62b0ea481e62e6 Mon Sep 17 00:00:00 2001 From: Khaos Tian Date: Sun, 16 Apr 2017 13:32:00 -0700 Subject: [PATCH] 0.4.18 Add support for updated programmable service profile. --- lib/platformAccessory.js | 2 ++ package.json | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/platformAccessory.js b/lib/platformAccessory.js index 382ef0d..34a6ac3 100644 --- a/lib/platformAccessory.js +++ b/lib/platformAccessory.js @@ -185,6 +185,7 @@ PlatformAccessory.prototype._dictionaryPresentation = function() { characteristicPresentation.UUID = characteristic.UUID; characteristicPresentation.props = characteristic.props; characteristicPresentation.value = characteristic.value; + characteristicPresentation.eventOnlyCharacteristic = characteristic.eventOnlyCharacteristic; characteristics.push(characteristicPresentation); } @@ -214,6 +215,7 @@ PlatformAccessory.prototype._configFromData = function(data) { for (var cIndex in service.characteristics) { var characteristic = service.characteristics[cIndex]; var hapCharacteristic = new Characteristic(characteristic.displayName, characteristic.UUID, characteristic.props); + hapCharacteristic.eventOnlyCharacteristic = characteristic.eventOnlyCharacteristic; hapCharacteristic.value = characteristic.value; characteristics.push(hapCharacteristic); } diff --git a/package.json b/package.json index 9a43b1c..2d1b60f 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "homebridge", "description": "HomeKit support for the impatient", - "version": "0.4.17", + "version": "0.4.18", "scripts": { "dev": "DEBUG=* ./bin/homebridge -D -P example-plugins/ || true" }, @@ -26,7 +26,7 @@ "dependencies": { "chalk": "^1.1.1", "commander": "2.8.1", - "hap-nodejs": "0.4.22", + "hap-nodejs": "0.4.23", "semver": "5.0.3", "node-persist": "^0.0.8" }