some changes

This commit is contained in:
Wolfgang Hottgenroth
2018-01-15 21:24:53 +01:00
parent 85cab38058
commit f362c90b91
8 changed files with 61 additions and 18 deletions

View File

@ -18,7 +18,12 @@ class MaxWindowContact extends AHomematicItem_1.AHomematicItem {
];
}
processMessage(topic, payload) {
this.state = payload;
if (payload == 'true') {
this.state = 'OPEN';
}
else {
this.state = 'CLOSED';
}
MqttDispatcher_1.mqttHandler.send(this.stateFeedbackTopic, this.state);
}
}