fix typo
This commit is contained in:
@ -80,17 +80,17 @@ export class HueColorBulbItem extends AHomegearItem {
|
||||
case this.brightTopic:
|
||||
this.bright = parseFloat(payload)
|
||||
mqttHandler.send(this.brightFeedbackTopic, `${this.bright}`)
|
||||
mqttHandler.send(this.brightActionTopic, `${this.bright} * 2.54`)
|
||||
mqttHandler.send(this.brightActionTopic, `${this.bright * 2.54}`)
|
||||
break
|
||||
case this.hueTopic:
|
||||
this.hue = parseFloat(payload)
|
||||
mqttHandler.send(this.hueFeedbackTopic, `${this.hue}`)
|
||||
mqttHandler.send(this.hueActionTopic, `${this.hue} * 65535.0 / 360.0`)
|
||||
mqttHandler.send(this.hueActionTopic, `${this.hue * 65535.0 / 360.0}`)
|
||||
break
|
||||
case this.saturationTopic:
|
||||
this.saturation = parseFloat(payload)
|
||||
mqttHandler.send(this.saturationFeedbackTopic, `${this.saturation}`)
|
||||
mqttHandler.send(this.saturationActionTopic, `${this.saturation} * 2.54`)
|
||||
mqttHandler.send(this.saturationActionTopic, `${this.saturation * 2.54}`)
|
||||
break
|
||||
case this.colorTemperatureTopic:
|
||||
this.colorTemperature = parseInt(payload)
|
||||
|
Reference in New Issue
Block a user