add all existing items, homekit export
This commit is contained in:
@ -7,13 +7,14 @@ export class Forwarder extends AItem {
|
||||
private targetTopics: string[]
|
||||
private inTopic: string
|
||||
|
||||
constructor(floor: string, room: string, item: string, topicLastPart: string, targetTopics: string[]) {
|
||||
super(floor, room, item)
|
||||
constructor(floor: string, room: string, item: string, label: string, topicLastPart: string, targetTopics: string[]) {
|
||||
super(floor, room, item, label)
|
||||
this.inTopic = `${this.topicFirstPart}/${topicLastPart}`
|
||||
this.subscribeTopics = [ this.inTopic ]
|
||||
this.targetTopics = targetTopics
|
||||
}
|
||||
|
||||
|
||||
processMessage(topic: string, payload: string) : void {
|
||||
switch (topic) {
|
||||
case this.inTopic:
|
||||
|
Reference in New Issue
Block a user