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

@ -25,8 +25,12 @@ export class MaxWindowContact extends AHomematicItem {
}
processMessage(topic: string, payload: string) : void {
this.state = payload
if (payload == 'true') {
this.state = 'OPEN'
} else {
this.state = 'CLOSED'
}
mqttHandler.send(this.stateFeedbackTopic, this.state)
}
}
}