export stuff
This commit is contained in:
@ -59,6 +59,7 @@ function RelayBoxOpenHABExport(itemId: string, stateTopicPre: string, feedbackTo
|
|||||||
let o : string[] = []
|
let o : string[] = []
|
||||||
itemNames.forEach((label: string, index: number) => {
|
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]"}`)
|
||||||
|
o.push(`Switch ${itemId}${index}Conflict "${label} [%s]" {mqtt="<[localbroker:${conflictTopicPre}/${index}:state:default]"}`)
|
||||||
})
|
})
|
||||||
return o
|
return o
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user