export again
This commit is contained in:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user