Skip to content
This repository was archived by the owner on May 8, 2026. It is now read-only.

Commit 60fef93

Browse files
committed
Some Logging, Program launcher fix
1 parent 7ecab12 commit 60fef93

7 files changed

Lines changed: 14 additions & 8 deletions

File tree

ChannelServices/HomeMaticHomeKitProgramService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ HomeMaticHomeKitProgramService.prototype.createDeviceService = function(Service,
4747
.on('set', function(value, callback) {
4848
if (value==1) {
4949

50-
that.log("Launch Program " + that.name);
50+
that.log("Launch Program " + that.adress);
5151
that.command("sendregacommand","","var x=dom.GetObject(\""+that.adress+"\");if (x) {x.ProgramExecute();}",function() {
5252

5353
});

ChannelServices/HomeMaticHomeKitSwitchService.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ HomeMaticHomeKitSwitchService.prototype.createDeviceService = function(Service,
3939
.on('set', function(value, callback) {
4040
if (value==1) {
4141

42-
that.log("Launch Program " + that.name);
43-
that.command("sendregacommand","","var x=dom.GetObject(\""+that.name+"\");if (x) {x.ProgramExecute();}",function() {
42+
that.log("Launch Program " + that.adress);
43+
that.command("sendregacommand","","var x=dom.GetObject(\""+that.adress+"\");if (x) {x.ProgramExecute();}",function() {
4444

4545
});
4646

HomeMaticChannelLoader.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ var HomeMaticChannelLoader = function (log) {
6161
cfg["interface"] = channel.intf;
6262

6363
// Replace Chars in name https://github.com/thkl/homebridge-homematic/issues/56
64-
64+
6565
name = name.replace(/[.:#_()-]/g,' ');
66-
66+
6767
var accessory = new service(log,platform, id ,name, channelType ,adress,special, cfg, Service, Characteristic);
6868
list.push(accessory);
6969
} else {

HomeMaticRPC.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ var HomeMaticRPC = function (log, ccuip,port,system,platform) {
88

99
this.log = log;
1010

11-
this.log.info("init RPC for %",system);
11+
this.log.info("init RPC for %s",system);
1212
this.system = system;
1313
this.ccuip = ccuip;
1414
this.platform = platform;
@@ -129,6 +129,7 @@ HomeMaticRPC.prototype.init = function() {
129129
if ((accessory.adress == channel) || 
130130
((accessory.cadress != undefined) && (accessory.cadress == channel)) || 
131131
((accessory.deviceAdress != undefined) && (accessory.deviceAdress == deviceAdress))) {
132+
that.log.debug("Accessory %s found -> Send Event",accessory.name);
132133
accessory.event(channel,datapoint, value);
133134
}
134135

changelog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ Changelog
33

44
**** BEGINNING OF VERSION 0.0.41 the selection of channels to use with HomeKit via a CCU Subsection is mandatory
55

6+
Version 0.0.66
7+
some error logging
8+
Fix for Programs with _ etc
9+
610
Version 0.0.65
711
fix for Programs
812

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,8 @@ HomeMaticPlatform.prototype.accessories = function(callback) {
165165

166166
}
167167
} catch (e) {
168-
that.log.warn("Unable to parse live ccu data. Will try cache if there is one");
168+
that.log.warn("Unable to parse live ccu data. Will try cache if there is one. If you want to know what, start homebridge in debug mode -> DEBUG=* homebridge -D");
169+
that.log.debug("JSON Error %s for Data %s",e,data);
169170
}
170171
}
171172

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "homebridge-homematic",
3-
"version": "0.0.65",
3+
"version": "0.0.66",
44
"description": "Homematic plugin for homebridge: https://github.com/nfarina/homebridge",
55
"license": "ISC",
66
"keywords": [

0 commit comments

Comments
 (0)