Skip to content

Commit

Permalink
Expose voltage, current and temperature for Xiaomi SSM-U01. Koenkk/zi…
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk committed Feb 13, 2022
1 parent 006fa0b commit 36bbf50
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion devices/xiaomi.js
Original file line number Diff line number Diff line change
Expand Up @@ -1478,7 +1478,8 @@ module.exports = [
// Ignore energy metering reports, rely on aqara_opple: https://github.com/Koenkk/zigbee2mqtt/issues/10709
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.switch_type()],
exposes: [e.switch(), e.energy(), e.power(), e.device_temperature(), e.power_outage_memory(), e.switch_type(),
e.voltage(), e.temperature(), 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) => {
const endpoint = device.getEndpoint(1);
Expand Down

0 comments on commit 36bbf50

Please sign in to comment.