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

View File

@ -58,7 +58,7 @@ function RelayBoxHomekitExport(itemId: string, stateTopicPre: string, feedbackTo
function RelayBoxOpenHABExport(itemId: string, stateTopicPre: string, feedbackTopicPre: string, conflictTopicPre: string, itemNames: string[]) : string[] {
let o : string[] = []
itemNames.forEach((label: string, index: number) => {
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
}