Add states for commands
This commit is contained in:
parent
bdeb3152d2
commit
a0a0804754
@ -67,6 +67,14 @@ module.exports = {
|
||||
communicator.send(config.mqtt.topics.vacuum, JSON.stringify(this.vacuum));
|
||||
}
|
||||
};
|
||||
|
||||
this.startup = {
|
||||
topic: config.mqtt.topics.startup
|
||||
};
|
||||
|
||||
this.shutdown = {
|
||||
topic: config.mqtt.topics.shutdown
|
||||
};
|
||||
console.log(`State initialized.`)
|
||||
};
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user