diff --git a/devices/xiaomi.js b/devices/xiaomi.js index efcd41bf8ec57..e61423a1e6bf4 100644 --- a/devices/xiaomi.js +++ b/devices/xiaomi.js @@ -1569,7 +1569,7 @@ module.exports = [ fromZigbee: [fz.on_off, fz.device_temperature, fz.aqara_opple, fz.ignore_metering, fz.ignore_electrical_measurement, fz.xiaomi_power], exposes: [e.switch(), e.energy(), e.power(), e.device_temperature(), e.power_outage_memory(), e.power_outage_count(), - e.switch_type(), e.voltage(), e.temperature(), e.current(), + e.switch_type(), e.voltage(), e.current(), ], toZigbee: [tz.xiaomi_switch_type, tz.on_off, tz.xiaomi_switch_power_outage_memory, tz.xiaomi_led_disabled_night], configure: async (device, coordinatorEndpoint, logger) => { diff --git a/lib/xiaomi.js b/lib/xiaomi.js index 02c0bf470e569..77c90f2c5f680 100644 --- a/lib/xiaomi.js +++ b/lib/xiaomi.js @@ -160,6 +160,8 @@ const numericAttributes2Payload = (msg, meta, model, options, dataObject) => { case '3': if (['WSDCGQ12LM'].includes(model.model)) { // This temperature value is ignored because with greater accuracy it is reported in key №100 + } else if (['SSM-U01'].includes(model.model)) { + payload.device_temperature = value; } else if (!['WXCJKG11LM', 'WXCJKG12LM', 'WXCJKG13LM'].includes(model.model)) { payload.temperature = calibrateAndPrecisionRoundOptions(value, options, 'temperature'); // 0x03 }