Actually listen to all topics too. Not just subscribe.
This commit is contained in:
parent
2a3bcb0753
commit
9bb8f69c23
1 changed files with 1 additions and 1 deletions
|
|
@ -100,7 +100,7 @@ class MqttClient extends EventEmitter {
|
||||||
? JSON.parse(message.toString())
|
? JSON.parse(message.toString())
|
||||||
: message.toString();
|
: message.toString();
|
||||||
|
|
||||||
if (topic === startTopic) {
|
if (startTopics.includes(topic)) {
|
||||||
logger.info('Home Assistant has started. lets do discovery.');
|
logger.info('Home Assistant has started. lets do discovery.');
|
||||||
self.emit('connected');
|
self.emit('connected');
|
||||||
} else if (topic.includes('set')) {
|
} else if (topic.includes('set')) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue