export again

This commit is contained in:
2018-04-03 00:25:59 +02:00
parent d6bde14e76
commit 2e251fe3bc
7 changed files with 1205 additions and 94 deletions

2
dist/Export.js vendored
View File

@ -39,7 +39,7 @@ function RelayBoxHomekitExport(itemId, stateTopicPre, feedbackTopicPre, conflict
function RelayBoxOpenHABExport(itemId, stateTopicPre, feedbackTopicPre, conflictTopicPre, itemNames) {
let o = [];
itemNames.forEach((label, index) => {
o.push(`Switch ${itemId}${index} "${label} "{mqtt=">[localbroker:${stateTopicPre}/${index}:command:*:default],<[localbroker:${feedbackTopicPre}/${index}:state:default]"}`);
o.push(`Switch ${itemId}${index} "${label}" {mqtt=">[localbroker:${stateTopicPre}/${index}:command:*:default],<[localbroker:${feedbackTopicPre}/${index}:state:default]"}`);
});
return o;
}