thermostats
This commit is contained in:
46
src/main.ts
46
src/main.ts
@ -178,6 +178,38 @@ morningLightScene.start()
|
||||
allLabeledItems.push(morningLightScene)
|
||||
|
||||
|
||||
// ----------------------------------------------------------------------------------------------------------
|
||||
let windowContactBathroomGnd = new MaxWindowContact('Gnd', 'Bathroom', 'WindowContact', 'Fenster Bad unten', 7)
|
||||
windowContactBathroomGnd.start()
|
||||
|
||||
let thermostatBathroomGnd = new MaxThermostat('Gnd', 'Bathroom', 'Thermostat', 'Thermostat Bad unten', 4, [windowContactBathroomGnd])
|
||||
thermostatBathroomGnd.start()
|
||||
|
||||
let thermostatBathroomGndCron = new Cron('thermostatBathroomGndCron', thermostatBathroomGnd, [
|
||||
{cronTime: '00 00 06 * * 1-5', output: '21.0'},
|
||||
{cronTime: '00 00 08 * * 6-7', output: '21.0'},
|
||||
{cronTime: '00 00 11 * * *', output: '5.0'},
|
||||
{cronTime: '00 00 19 * * *', output: '21.0'},
|
||||
{cronTime: '00 00 23 * * *', output: '5.0'}
|
||||
])
|
||||
thermostatBathroomGndCron.start()
|
||||
|
||||
|
||||
let windowContactBathroom1st = new MaxWindowContact('1st', 'Bathroom', 'WindowContact', 'Fenster Bad oben', 7)
|
||||
windowContactBathroom1st.start()
|
||||
|
||||
let thermostatBathroom1st = new MaxThermostat('1st', 'Bathroom', 'Thermostat', 'Thermostat Bad oben', 4, [windowContactBathroom1st])
|
||||
thermostatBathroom1st.start()
|
||||
|
||||
let thermostatBathroom1stCron = new Cron('thermostatBathroom1stCron', thermostatBathroom1st, [
|
||||
{cronTime: '00 00 06 * * 1-5', output: '21.0'},
|
||||
{cronTime: '00 00 08 * * 6-7', output: '21.0'},
|
||||
{cronTime: '00 00 11 * * *', output: '5.0'},
|
||||
{cronTime: '00 00 19 * * *', output: '21.0'},
|
||||
{cronTime: '00 00 23 * * *', output: '5.0'}
|
||||
])
|
||||
thermostatBathroom1stCron.start()
|
||||
|
||||
// ----------------------------------------------------------------------------------------------------------
|
||||
let testFourButton = new HomematicFourButtonThing('Gnd', 'Hallway', 'TestButton', 9, [
|
||||
new HomematicFourButtonSingleItem('dispatcher_ng/items/Gnd/Hallway/Testlight/dimmerIn'),
|
||||
@ -213,20 +245,6 @@ let testScene = new LightScene('Gnd', 'Hallway', 'TestScene', 'TestScene',
|
||||
testScene.start()
|
||||
|
||||
|
||||
let windowContact1 = new MaxWindowContact('Gnd', 'Bathroom', 'WindowContact1', 'Fenster Bad unten', 2)
|
||||
windowContact1.start()
|
||||
let windowContact2 = new MaxWindowContact('Gnd', 'Bathroom', 'WindowContact2', 'Fenster Bad unten', 20)
|
||||
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