This commit is contained in:
Wolfgang Hottgenroth
2018-01-16 21:07:21 +01:00
parent 1847db3934
commit 8702cd8a40
5 changed files with 54 additions and 3 deletions

View File

@ -2,7 +2,7 @@
Object.defineProperty(exports, "__esModule", { value: true });
const MqttDispatcher_1 = require("./MqttDispatcher");
const AHomematicItem_1 = require("./AHomematicItem");
// import { SwitchExport, ExportType } from './Export'
const Export_1 = require("./Export");
class MaxWindowContact extends AHomematicItem_1.AHomematicItem {
getStateFeedbackTopic() {
return this.stateFeedbackTopic;
@ -17,6 +17,9 @@ class MaxWindowContact extends AHomematicItem_1.AHomematicItem {
this.deviceFeedbackTopic
];
}
exportItem() {
return Export_1.ContactExport(this.itemId, this.label, this.stateFeedbackTopic);
}
processMessage(topic, payload) {
if (payload == 'true') {
this.state = 'OPEN';