Cron implemented

This commit is contained in:
Wolfgang Hottgenroth
2018-01-15 17:49:25 +01:00
parent 09a63fe736
commit 9c0ac6dc3b
9 changed files with 107 additions and 2 deletions

View File

@ -17,7 +17,7 @@ import { LightScene } from './Scene'
import { MaxEcoSwitch } from './MaxEcoSwitch'
import { MaxThermostat } from './MaxThermostat'
import { MaxWindowContact } from './MaxWindowContact'
import { Cron } from './Cron'
logger.info("Dispatcher starting")
@ -221,6 +221,12 @@ windowContact2.start()
let thermostat1 = new MaxThermostat('Gnd', 'Bathroom', 'Thermostat', 'Thermostat Bad unten', 3, [windowContact1, windowContact2])
thermostat1.start()
let thermostat1Cron = new 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