some more window contacts
This commit is contained in:
4
dist/TwoLedSignal.js
vendored
4
dist/TwoLedSignal.js
vendored
@ -60,7 +60,7 @@ class TwoLedSignal extends AItem_1.AItem {
|
||||
}
|
||||
// logger.info(`DBG: TwoLedSignal ${item.getSignalState()}, ${reds}`)
|
||||
});
|
||||
let msg = (reds > 0) ? "RED" : "GREEN";
|
||||
let msg = (reds > 0) ? "red" : "green";
|
||||
MqttDispatcher_1.mqttHandler.send(`${this.topicFirstPart}/led1`, msg);
|
||||
reds = 0;
|
||||
this.led2Items.forEach((item) => {
|
||||
@ -70,7 +70,7 @@ class TwoLedSignal extends AItem_1.AItem {
|
||||
}
|
||||
// logger.info(`DBG: TwoLedSignal ${item.getSignalState()}, ${reds}`)
|
||||
});
|
||||
msg = (reds > 0) ? "RED" : "GREEN";
|
||||
msg = (reds > 0) ? "red" : "green";
|
||||
MqttDispatcher_1.mqttHandler.send(`${this.topicFirstPart}/led2`, msg);
|
||||
}
|
||||
}
|
||||
|
22
dist/main.js
vendored
22
dist/main.js
vendored
@ -81,7 +81,7 @@ let matthiasSpeaker = new M433SwitchItem_1.M433SwitchItem('1st', 'Matthias', 'Sp
|
||||
matthiasSpeaker.start();
|
||||
allLabeledItems.push(matthiasSpeaker);
|
||||
allRelevantLights.push(matthiasSpeaker);
|
||||
let windowContactMatthias = new MaxWindowContact_1.MaxWindowContact('1st', 'Matthias', 'WindowContact', 'Fenster', 24);
|
||||
let windowContactMatthias = new MaxWindowContact_1.MaxWindowContact('1st', 'Matthias', 'WindowContact', 'Fenster Matthias', 24);
|
||||
windowContactMatthias.start();
|
||||
allLabeledItems.push(windowContactMatthias);
|
||||
allWindows.push(windowContactMatthias);
|
||||
@ -110,6 +110,14 @@ let diningRoomNaehkaestchenLight = new HueColorBulbItem_1.HueColorBulbItem('Gnd'
|
||||
diningRoomNaehkaestchenLight.start();
|
||||
allLabeledItems.push(diningRoomNaehkaestchenLight);
|
||||
allRelevantLights.push(diningRoomNaehkaestchenLight);
|
||||
let windowContactDiningRoom1 = new MaxWindowContact_1.MaxWindowContact('Gnd', 'DiningRoom', 'WindowContact1', 'Fenster Esszimmer Straße links', 26);
|
||||
windowContactDiningRoom1.start();
|
||||
allLabeledItems.push(windowContactDiningRoom1);
|
||||
allWindows.push(windowContactDiningRoom1);
|
||||
let windowContactDiningRoom2 = new MaxWindowContact_1.MaxWindowContact('Gnd', 'DiningRoom', 'WindowContact2', 'Fenster Esszimmer Straße rechts', 27);
|
||||
windowContactDiningRoom2.start();
|
||||
allLabeledItems.push(windowContactDiningRoom2);
|
||||
allWindows.push(windowContactDiningRoom2);
|
||||
// Wohnzimmer -----------------------------------------------------------------------------------------------
|
||||
// Wohnzimmer grosse Lampe 65557 24 1 65556 24 1
|
||||
let livingRoomLargeLight = new M433SwitchItem_1.M433SwitchItem('Gnd', 'LivingRoom', 'LargeLight', 'große Lampe Wohnzimmer', '65557 24 1', '65556 24 1');
|
||||
@ -131,6 +139,14 @@ let livingRoomStandLight = new M433SwitchItem_1.M433SwitchItem('Gnd', 'LivingRoo
|
||||
livingRoomStandLight.start();
|
||||
allLabeledItems.push(livingRoomStandLight);
|
||||
allRelevantLights.push(livingRoomStandLight);
|
||||
let windowContactLivingRoom1 = new MaxWindowContact_1.MaxWindowContact('Gnd', 'LivingRoom', 'WindowContact1', 'Fenster Wohnzimmer Garten rechts', 28);
|
||||
windowContactLivingRoom1.start();
|
||||
allLabeledItems.push(windowContactLivingRoom1);
|
||||
allWindows.push(windowContactLivingRoom1);
|
||||
let windowContactLivingRoom2 = new MaxWindowContact_1.MaxWindowContact('Gnd', 'LivingRoom', 'WindowContact2', 'Fenster Wohnzimmer Garten links', 29);
|
||||
windowContactLivingRoom2.start();
|
||||
allLabeledItems.push(windowContactLivingRoom2);
|
||||
allWindows.push(windowContactLivingRoom2);
|
||||
// Flur -----------------------------------------------------------------------------------------------------
|
||||
// Flur Schreibtisch 83221 24 1 83220 24 1
|
||||
let hallwayDeskLight = new M433SwitchItem_1.M433SwitchItem('Gnd', 'Hallway', 'DeskLight', 'Schreibtischlampe Flur', '83221 24 1', '83220 24 1');
|
||||
@ -147,6 +163,10 @@ let hallwayWardrobeLight = new M433SwitchItem_1.M433SwitchItem('Gnd', 'Hallway',
|
||||
hallwayWardrobeLight.start();
|
||||
allLabeledItems.push(hallwayWardrobeLight);
|
||||
allRelevantLights.push(hallwayWardrobeLight);
|
||||
let windowContactHallway = new MaxWindowContact_1.MaxWindowContact('Gnd', 'Hallway', 'WindowContact', 'Fenster Flur', 25);
|
||||
windowContactHallway.start();
|
||||
allLabeledItems.push(windowContactHallway);
|
||||
allWindows.push(windowContactHallway);
|
||||
// Küche ----------------------------------------------------------------------------------------------------
|
||||
// Küche Fensterbank 66837 24 1 66836 24 1
|
||||
let kitchenWindowLight = new M433SwitchItem_1.M433SwitchItem('Gnd', 'Kitchen', 'WindowLight', 'Fensterbanklicht Küche', '66837 24 1', '66836 24 1');
|
||||
|
Reference in New Issue
Block a user