nest-cli
Version:
Unofficial command-line tool to control Nest devices
18 lines (13 loc) • 336 B
JavaScript
;
const AwayTask = require('../tasks/away');
module.exports = {
name: 'away <mode> [structureId]',
description: 'available modes: home, away, auto-away, unknown',
run(mode, structureId) {
const task = new AwayTask({
app: this.app,
ui: this.ui
});
return task.run(structureId, mode);
}
};