Skip to content

Commit

Permalink
Remove config stanza
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Bowman Mørch committed Oct 4, 2024
1 parent d740ec0 commit fe3fa6f
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/devices/frient.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import {develcoModernExtend} from '../lib/develco';
import {battery, electricityMeter, onOff, ota} from '../lib/modernExtend';
import * as reporting from '../lib/reporting';
import {DefinitionWithExtend} from '../lib/types';

// NOTE! Develco and Frient is the same company, therefore we use develco specific things in here.
Expand All @@ -20,21 +19,14 @@ const definitions: DefinitionWithExtend[] = [
develcoModernExtend.pulse_configuration(),
develcoModernExtend.current_summation(),
],

configure: async (device, coordinatorEndpoint, logger) => {
const endpoint = device.getEndpoint(2);
await reporting.bind(endpoint, coordinatorEndpoint, ['seMetering', 'genPowerCfg']);
await reporting.instantaneousDemand(endpoint);
await reporting.readMeteringMultiplierDivisor(endpoint);
},
},
{
zigbeeModel: ['SMRZB-153'],
model: 'SMRZB-153',
vendor: 'Frient',
description: 'Smart Cable - Power switch with power measurement',
extend: [onOff({configureReporting: false}), electricityMeter()],
endpoint: (device) => {
endpoint: () => {
return {default: 2};
},
},
Expand Down

0 comments on commit fe3fa6f

Please sign in to comment.