bright is number

This commit is contained in:
Wolfgang Hottgenroth
2018-01-02 22:12:55 +01:00
parent 0bcc75f53f
commit 23fab8d33c

View File

@ -47,8 +47,8 @@ class HomematicDimmerItem extends AHomematicItem {
this.dimmerAction(); this.dimmerAction();
break; break;
case this.brightTopic: case this.brightTopic:
this.bright = payload; this.bright = parseInt(payload);
mqtt.send(this.brightFeedbackTopic, this.bright); mqtt.send(this.brightFeedbackTopic, `${this.bright}`);
this.dimmerAction(); this.dimmerAction();
break; break;
case this.errorOverheatTopic: case this.errorOverheatTopic: