adjust for smartclient output

This commit is contained in:
2018-06-25 13:14:03 +02:00
parent 718ac667d1
commit 28fa32d48d
17 changed files with 842 additions and 401 deletions

View File

@ -1,10 +1,10 @@
import * as logger from './log'
import { mqttHandler } from './MqttDispatcher'
import { AItem, HasStateAndFeedbackTopic, HasInTopic } from './AItem'
import { AItem, HasStateAndFeedbackTopicAndLabelAndRoom, HasInTopic, HasStateAndFeedbackTopic } from './AItem'
import { SwitchExport, ExportType } from './Export'
export class M433SwitchItem extends AItem implements HasStateAndFeedbackTopic {
export class M433SwitchItem extends AItem implements HasStateAndFeedbackTopicAndLabelAndRoom {
private offCode: string
private onCode: string
private oldState: string|undefined
@ -14,6 +14,14 @@ export class M433SwitchItem extends AItem implements HasStateAndFeedbackTopic {
private stateTopic: string
private type: string
getLabel() : string {
return this.label
}
getRoom() : string {
return this.room
}
getStateTopic() : string {
return this.stateTopic
}