diff --git a/lib/controller.js b/lib/controller.js index 5e2a29632..5b79cab0b 100644 --- a/lib/controller.js +++ b/lib/controller.js @@ -27,6 +27,7 @@ class Controller { this.onMQTTConnected = this.onMQTTConnected.bind(this); this.onZigbeeMessage = this.onZigbeeMessage.bind(this); this.onMQTTMessage = this.onMQTTMessage.bind(this); + this.publishDeviceState = this.publishDeviceState.bind(this); // Initialize extensions. this.extensions = [