snowdd1 / homebridge-knx

KNX platform shim for homebridge
https://github.com/nfarina/homebridge
GNU General Public License v2.0
97 stars 55 forks source link

Enable and use debug output homebridge.log #176

Closed DronNick closed 4 years ago

DronNick commented 4 years ago

I'm trying to implement a handler for a KNX tubing motor and need some debug output.

In the Gira Actuator Handler i can see following line: log('INFO: onKNXValueChange(' + field + ", "+ oldValue + ", "+ knxValue+ ")");

But i never see the output of this in the homebridge.log.

How can i activate the debuf and info logging, so the output is visible in the homebridge.log?

snowdd1 commented 4 years ago

How do you start homebridge?

DronNick commented 4 years ago

Thank you for pointing out. It is a docker container provided here https://registry.hub.docker.com/r/oznu/homebridge/ that uses /etc/services.d/.homebridge/run as a start script.

I had to set environment variable of the docker container HOMEBRIDGE_DEBUG to 1 in order to run homebridge in debug mode.