export of thermostat and windowcontact
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
import * as logger from './log'
|
||||
import { mqttHandler } from './MqttDispatcher'
|
||||
import { AHomematicItem } from './AHomematicItem'
|
||||
// import { SwitchExport, ExportType } from './Export'
|
||||
import { ContactExport, ExportType } from './Export'
|
||||
|
||||
export class MaxWindowContact extends AHomematicItem {
|
||||
private deviceFeedbackTopic: string
|
||||
@ -24,6 +24,10 @@ export class MaxWindowContact extends AHomematicItem {
|
||||
]
|
||||
}
|
||||
|
||||
exportItem() : ExportType|null {
|
||||
return ContactExport(this.itemId, this.label, this.stateFeedbackTopic)
|
||||
}
|
||||
|
||||
processMessage(topic: string, payload: string) : void {
|
||||
if (payload == 'true') {
|
||||
this.state = 'OPEN'
|
||||
|
Reference in New Issue
Block a user