From 17573524ce55c91db3618c319dabe132d356f0de Mon Sep 17 00:00:00 2001 From: S'pht'Kr Date: Sat, 12 Sep 2015 14:23:17 +0200 Subject: [PATCH] Prep for initial release. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cleaned up some more old cruft, added config-sample.json entry, and now there’s a different default grouping of characteristics, which makes for more optional characteristics on fewer services. The older behavior (more services per accessory) can be switched on in config.json. The new default works better in Eve, other clients not so much. --- config-sample.json | 8 ++++++++ platforms/ZWayServer.js | 1 - 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/config-sample.json b/config-sample.json index 4245bd5..3f8b136 100644 --- a/config-sample.json +++ b/config-sample.json @@ -71,6 +71,14 @@ "platform": "YamahaAVR", "play_volume": -35, "setMainInputTo": "AirPlay" + }, + { + "platform": "ZWayServer", + "url": "http://192.168.1.10:8083/", + "login": "zwayusername", + "password": "zwayuserpassword", + "poll_interval": 2, + "split_services": false } ], diff --git a/platforms/ZWayServer.js b/platforms/ZWayServer.js index 77842a9..799c08d 100644 --- a/platforms/ZWayServer.js +++ b/platforms/ZWayServer.js @@ -56,7 +56,6 @@ function ZWayServerPlatform(log, config){ this.login = config["login"]; this.password = config["password"]; this.name_overrides = config["name_overrides"]; - this.batteryLow = config["battery_low_level"]; this.pollInterval = config["poll_interval"] || 2; this.lastUpdate = 0; this.cxVDevMap = {};