diff --git a/lib/SensorDevice.js b/lib/SensorDevice.js index 7e07740..2426eaa 100644 --- a/lib/SensorDevice.js +++ b/lib/SensorDevice.js @@ -119,13 +119,13 @@ module.exports = class SensorDevice extends GeneralDevice { getValueInfo(task, key) { const taskValue = task.TaskValues.find(t => t.Name == key); if (!taskValue) { - this.log('Could not find task value named', key); + this.log('Could not find task value named', task, key); return false; } - const taskSettings = this.getDriver().taskTypes.find(t => t.name == task.Type); + const taskSettings = this.getDriver().taskTypes.find(t => t.name == task.normalizedType); if (!taskSettings) { - this.log('No settings found for this task', key); + this.log('No settings found for this task', task, key); return false; }