Cron implemented
This commit is contained in:
7
dist/main.js
vendored
7
dist/main.js
vendored
@ -15,6 +15,7 @@ const Scene_1 = require("./Scene");
|
||||
const MaxEcoSwitch_1 = require("./MaxEcoSwitch");
|
||||
const MaxThermostat_1 = require("./MaxThermostat");
|
||||
const MaxWindowContact_1 = require("./MaxWindowContact");
|
||||
const Cron_1 = require("./Cron");
|
||||
logger.info("Dispatcher starting");
|
||||
let allLabeledItems = new Array();
|
||||
// Anna -----------------------------------------------------------------------------------------------------
|
||||
@ -162,6 +163,12 @@ let windowContact2 = new MaxWindowContact_1.MaxWindowContact('Gnd', 'Bathroom',
|
||||
windowContact2.start();
|
||||
let thermostat1 = new MaxThermostat_1.MaxThermostat('Gnd', 'Bathroom', 'Thermostat', 'Thermostat Bad unten', 3, [windowContact1, windowContact2]);
|
||||
thermostat1.start();
|
||||
let thermostat1Cron = new Cron_1.Cron('Thermostat1Cron', thermostat1, [
|
||||
{ cronTime: '00 47 17 * * *', output: '5.0' },
|
||||
{ cronTime: '00 48 17 * * *', output: '20.0' },
|
||||
{ cronTime: '00 49 17 * * *', output: '25.0' }
|
||||
]);
|
||||
thermostat1Cron.start();
|
||||
// ----------------------------------------------------------------------------------------------------------
|
||||
// Homekit export
|
||||
let homekitObject = {};
|
||||
|
Reference in New Issue
Block a user