some changes
This commit is contained in:
7
dist/MaxWindowContact.js
vendored
7
dist/MaxWindowContact.js
vendored
@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user