From 72731b74b744844506b2fbea943f5fd2a17249e7 Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Tue, 16 Jan 2018 20:31:56 +0100 Subject: [PATCH] =?UTF-8?q?Fensterkontakte=20und=20Thermostat=20K=C3=BCche?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/main.js | 20 ++++++++++++++++++++ src/main.ts | 24 ++++++++++++++++++++++++ 2 files changed, 44 insertions(+) diff --git a/dist/main.js b/dist/main.js index 5ce9ed7..bea9207 100644 --- a/dist/main.js +++ b/dist/main.js @@ -172,6 +172,26 @@ let thermostatBathroom1stCron = new Cron_1.Cron('thermostatBathroom1stCron', the { cronTime: '00 00 23 * * *', output: '5.0' } ]); thermostatBathroom1stCron.start(); +let windowContactKitchen1 = new MaxWindowContact_1.MaxWindowContact('Gnd', 'Kitchen', 'WindowContact1', 'Fenster Küche Garten', 11); +windowContactKitchen1.start(); +let windowContactKitchen2 = new MaxWindowContact_1.MaxWindowContact('Gnd', 'Kitchen', 'WindowContact2', 'Fenster Küche Terassentür Garten', 10); +windowContactKitchen2.start(); +let windowContactKitchen3 = new MaxWindowContact_1.MaxWindowContact('Gnd', 'Kitchen', 'WindowContact3', 'Fenster Küche Straße 1', 12); +windowContactKitchen3.start(); +let windowContactKitchen4 = new MaxWindowContact_1.MaxWindowContact('Gnd', 'Kitchen', 'WindowContact4', 'Fenster Küche Straße 2', 13); +windowContactKitchen4.start(); +let thermostatKitchen = new MaxThermostat_1.MaxThermostat('Gnd', 'Kitchen', 'Thermostat', 'Thermostat Küche', 14, [ + windowContactKitchen1, windowContactKitchen2, windowContactKitchen3, windowContactKitchen4 +]); +thermostatKitchen.start(); +let thermostatKitchenCron = new Cron_1.Cron('thermostatKitchenCron', thermostatKitchen, [ + { cronTime: '00 00 06 * * 1-5', output: '21.0' }, + { cronTime: '00 00 08 * * 6-7', output: '21.0' }, + { cronTime: '00 00 10 * * 1-3', output: '5.0' }, + { cronTime: '00 30 13 * * *', output: '21.0' }, + { cronTime: '00 00 23 * * *', output: '5.0' } +]); +thermostatKitchenCron.start(); // ---------------------------------------------------------------------------------------------------------- let testFourButton = new HomematicFourButtonThing_1.HomematicFourButtonThing('Gnd', 'Hallway', 'TestButton', 9, [ new HomematicFourButtonThing_1.HomematicFourButtonSingleItem('dispatcher_ng/items/Gnd/Hallway/Testlight/dimmerIn'), diff --git a/src/main.ts b/src/main.ts index 6b4533c..35efb1d 100644 --- a/src/main.ts +++ b/src/main.ts @@ -226,6 +226,30 @@ let thermostatBathroom1stCron = new Cron('thermostatBathroom1stCron', thermostat ]) thermostatBathroom1stCron.start() + + +let windowContactKitchen1 = new MaxWindowContact('Gnd', 'Kitchen', 'WindowContact1', 'Fenster Küche Garten', 11) +windowContactKitchen1.start() +let windowContactKitchen2 = new MaxWindowContact('Gnd', 'Kitchen', 'WindowContact2', 'Fenster Küche Terassentür Garten', 10) +windowContactKitchen2.start() +let windowContactKitchen3 = new MaxWindowContact('Gnd', 'Kitchen', 'WindowContact3', 'Fenster Küche Straße 1', 12) +windowContactKitchen3.start() +let windowContactKitchen4 = new MaxWindowContact('Gnd', 'Kitchen', 'WindowContact4', 'Fenster Küche Straße 2', 13) +windowContactKitchen4.start() + +let thermostatKitchen = new MaxThermostat('Gnd', 'Kitchen', 'Thermostat', 'Thermostat Küche', 14, [ + windowContactKitchen1, windowContactKitchen2, windowContactKitchen3, windowContactKitchen4]) +thermostatKitchen.start() + +let thermostatKitchenCron = new Cron('thermostatKitchenCron', thermostatKitchen, [ + {cronTime: '00 00 06 * * 1-5', output: '21.0'}, + {cronTime: '00 00 08 * * 6-7', output: '21.0'}, + {cronTime: '00 00 10 * * 1-3', output: '5.0'}, + {cronTime: '00 30 13 * * *', output: '21.0'}, + {cronTime: '00 00 23 * * *', output: '5.0'} +]) +thermostatKitchenCron.start() + // ---------------------------------------------------------------------------------------------------------- let testFourButton = new HomematicFourButtonThing('Gnd', 'Hallway', 'TestButton', 9, [ new HomematicFourButtonSingleItem('dispatcher_ng/items/Gnd/Hallway/Testlight/dimmerIn'),