Skip to content

Commit

Permalink
Support energy and power for GE 45857GE. Koenkk/zigbee2mqtt#17662
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk committed May 14, 2023
1 parent 7409a06 commit 47d9b09
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion devices/ge.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,17 @@ module.exports = [
model: '45857GE',
vendor: 'GE',
description: 'ZigBee in-wall smart dimmer',
exposes: extend.light_onoff_brightness({noConfigure: true}).exposes.concat([e.energy(), e.power()]),
fromZigbee: extend.light_onoff_brightness({noConfigure: true}).fromZigbee.concat([fz.metering]),
extend: extend.light_onoff_brightness({noConfigure: true}),
configure: async (device, coordinatorEndpoint, logger) => {
await extend.light_onoff_brightness().configure(device, coordinatorEndpoint, logger);
const endpoint = device.getEndpoint(1);
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff']);
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff', 'seMetering']);
await reporting.onOff(endpoint);
await reporting.instantaneousDemand(endpoint);
await reporting.currentSummDelivered(endpoint);
endpoint.saveClusterAttributeKeyValue('seMetering', {divisor: 10000, multiplier: 1});
},
},
{
Expand Down

0 comments on commit 47d9b09

Please sign in to comment.