Cron implemented
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user