zigbee-herdsman-converters 14.0.549 → 14.0.550
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/converters/fromZigbee.js +5 -3
- package/package.json +1 -1
package/converters/fromZigbee.js
CHANGED
|
@@ -348,9 +348,11 @@ const converters = {
|
|
|
348
348
|
type: ['attributeReport', 'readResponse'],
|
|
349
349
|
options: [exposes.options.precision('temperature'), exposes.options.calibration('temperature')],
|
|
350
350
|
convert: (model, msg, publish, options, meta) => {
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
351
|
+
if (msg.data.hasOwnProperty('measuredValue')) {
|
|
352
|
+
const temperature = parseFloat(msg.data['measuredValue']) / 100.0;
|
|
353
|
+
const property = postfixWithEndpointName('temperature', msg, model);
|
|
354
|
+
return {[property]: calibrateAndPrecisionRoundOptions(temperature, options, 'temperature')};
|
|
355
|
+
}
|
|
354
356
|
},
|
|
355
357
|
},
|
|
356
358
|
device_temperature: {
|