diff --git a/drivers/device/device.js b/drivers/device/device.js index 5b7da0f..eff7f42 100644 --- a/drivers/device/device.js +++ b/drivers/device/device.js @@ -339,7 +339,7 @@ class MQTTDevice extends Homey.Device { const topic = config.setTopic; let payload = capabilityId === 'onoff' - ? formatOnOff(value, this.onOffValues) + ? (config.outputTemplate ? value : formatOnOff(value, this.onOffValues)) : formatValue(value, CAPABILITIES[capabilityId], this.percentageScale); // output template?