fixes and start of UrlSwitchItem

This commit is contained in:
Wolfgang Hottgenroth
2018-01-12 22:02:08 +01:00
parent e88f9d225c
commit 677f9c807d
9 changed files with 134 additions and 79 deletions

2
dist/AItem.js vendored
View File

@ -7,7 +7,7 @@ class AItem {
this.floor = floor;
this.room = room;
this.item = item;
this.itemId = `${this.floor}.${this.room}.${this.item}`;
this.itemId = `${this.floor}_${this.room}_${this.item}`;
if (label == '') {
this.label = this.itemId;
}

2
dist/Export.js vendored
View File

@ -55,6 +55,6 @@ function SwitchHomekitOutletExport(id, label, setOn, statusOn) {
}
function SwitchOpenHABExport(id, label, setOn, statusOn) {
// Switch windowLightKitchen {mqtt=">[localbroker:nodered/items/windowLightKitchen:command:*:default]", mqtt="<[localbroker:nodered/items/windowLightKitchen/feedback:state:default]"}
return `Switch ${id} {mqtt=">[localbroker:${setOn}:command:*:default]", mqtt="<[localbroker:${statusOn}:state:default]"}`;
return `Switch ${id} {mqtt=">[localbroker:${setOn}:command:*:default],<[localbroker:${statusOn}:state:default]"}`;
}
//# sourceMappingURL=Export.js.map

2
dist/main.js vendored
View File

@ -26,7 +26,7 @@ annaBedLight.start();
allLabeledItems.push(annaBedLight);
// Matthias -------------------------------------------------------------------------------------------------
// Matthias Stehlampen 7 24 1 6 24 1
let matthiasStandLights = new M433SwitchItem_1.M433SwitchItem('1st', 'Matthias', 'Stehlampen Matthias', 'StandLight', '7 24 1', '6 24 1');
let matthiasStandLights = new M433SwitchItem_1.M433SwitchItem('1st', 'Matthias', 'StandLight', 'Stehlampen Matthias', '7 24 1', '6 24 1');
matthiasStandLights.start();
allLabeledItems.push(matthiasStandLights);
// Matthias Bett 15 24 1 14 24 1