couple large and small basement light

This commit is contained in:
2018-05-24 22:43:55 +02:00
parent ab08986ca2
commit 27153262bc
6 changed files with 30 additions and 2 deletions

View File

@ -1,6 +1,7 @@
import * as logger from './log'
import { mqttHandler } from './MqttDispatcher'
import { ExportType } from './Export'
import * as Events from 'events'
@ -20,7 +21,7 @@ export interface HasInTopic {
getInTopic() : string
}
export abstract class AItem {
export abstract class AItem extends Events.EventEmitter {
protected topicFirstPart: string
protected itemId: string
protected label: string
@ -31,6 +32,7 @@ export abstract class AItem {
constructor(floor: string, room: string, item: string, label: string = '') {
super()
this.floor = floor
this.room = room
this.item = item