Skip to content

Commit d27813e

Browse files
mattiazenishb-2020
andauthored
Support power for Vimar 14593 (#5149)
* Added haElectricalMeasurement to Vimar 14593 to monitor instant power consumption * Fixed form * Fixed form, changed let to const * Update Vimar 14593 fromZigbee Replaced fzLocal.vimar_active_power with fz.electrical_measurement. Co-authored-by: Mattia Zeni <[email protected]>
1 parent 1017d51 commit d27813e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

devices/vimar.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,12 @@ module.exports = [
4242
model: '14593',
4343
vendor: 'Vimar',
4444
description: '16A outlet IoT connected',
45-
extend: extend.switch(),
45+
fromZigbee: [fz.on_off, fz.ignore_basic_report, fz.electrical_measurement],
46+
toZigbee: [tz.on_off],
47+
exposes: [e.switch(), e.power()],
4648
configure: async (device, coordinatorEndpoint, logger) => {
4749
const endpoint = device.getEndpoint(10);
48-
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff']);
50+
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff', 'haElectricalMeasurement']);
4951
},
5052
},
5153
{

0 commit comments

Comments
 (0)