Skip to content

Commit

Permalink
feat: Support device_temperature for Develco SPLZB-131 (#6584)
Browse files Browse the repository at this point in the history
  • Loading branch information
emandtf committed Nov 30, 2023
1 parent 6e0e699 commit 14dbb1a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/devices/develco.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,14 +289,15 @@ const definitions: Definition[] = [
model: 'SPLZB-131',
vendor: 'Develco',
description: 'Power plug',
fromZigbee: [fz.on_off, develco.fz.electrical_measurement, develco.fz.metering],
fromZigbee: [fz.on_off, develco.fz.electrical_measurement, develco.fz.metering, develco.fz.device_temperature],
toZigbee: [tz.on_off],
ota: ota.zigbeeOTA,
exposes: [e.switch(), e.power(), e.power_reactive(), e.current(), e.voltage(), e.energy(), e.ac_frequency()],
exposes: [e.switch(), e.power(), e.power_reactive(), e.current(), e.voltage(), e.energy(), e.device_temperature(), e.ac_frequency()],
configure: async (device, coordinatorEndpoint, logger) => {
const endpoint = device.getEndpoint(2);
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff', 'haElectricalMeasurement', 'seMetering']);
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff', 'haElectricalMeasurement', 'seMetering', 'genDeviceTempCfg']);
await reporting.onOff(endpoint);
await reporting.deviceTemperature(endpoint);
await reporting.readEletricalMeasurementMultiplierDivisors(endpoint, true);
await reporting.activePower(endpoint);
await reporting.reactivePower(endpoint);
Expand Down

0 comments on commit 14dbb1a

Please sign in to comment.