Add states for commands

This commit is contained in:
Skylar Grant 2024-08-22 22:15:33 -04:00
parent bdeb3152d2
commit a0a0804754

View File

@ -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.`)
};
},