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