EcoSwitch

This commit is contained in:
Wolfgang Hottgenroth
2018-01-12 10:50:25 +01:00
parent 5eac6dfab6
commit c474d22265
6 changed files with 143 additions and 1 deletions

View File

@ -3,7 +3,7 @@ import * as logger from './log'
import { mqttHandler } from './MqttDispatcher'
import { ExportType, SwitchExport } from './Export'
export class LightScene extends AItem {
export class LightScene extends AItem implements HasStateAndFeedbackTopic {
private onFeedbackTopics: string[]
private offFeedbackTopics: string[]
private onTopics: string[]
@ -17,6 +17,13 @@ export class LightScene extends AItem {
private onItems: HasStateAndFeedbackTopic[]
private myLastFeedbackState: string
getStateTopic() {
return this.stateTopic
}
getStateFeedbackTopic() {
return this.stateFeedbackTopic
}
constructor(floor: string, room: string, item: string, label: string = '',
onItems: HasStateAndFeedbackTopic[], offItems: HasStateAndFeedbackTopic[]) {
super(floor, room, item, label)