Fix turn off and dim commands

This commit is contained in:
Victor Hagelbäck 2021-02-20 10:49:00 +01:00
parent 70059da094
commit e528e2be1f
3 changed files with 18 additions and 6 deletions

View file

@ -133,7 +133,7 @@ class MqttClient extends EventEmitter {
// Guess that id that got state command without dim value belongs to Scene, not Device
// This guess could very well be wrong depending on the installation...
logger.warn(
`Device id ${decodedTopic.id} belongs to both scene and device, guessing Scene is what should be set to ON.`
`Device id ${decodedTopic.id} belongs to both scene and device, guessing Scene is what should be set to ON. `
+ 'OFF commands still sent to device.',
);
device = this.deviceRegistry.getScene(decodedTopic.id);