Skip to content

Commit

Permalink
feat: Support electricity measurements for Samotech SM323 Koenkk/zigb…
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk committed Dec 17, 2023
1 parent 2587bd4 commit 86f41ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/devices/samotech.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import fz from '../converters/fromZigbee';
import * as exposes from '../lib/exposes';
import * as reporting from '../lib/reporting';
import extend from '../lib/extend';
import {light, onOff} from '../lib/modernExtend';
import {electricityMeter, light, onOff} from '../lib/modernExtend';
const e = exposes.presets;

const definitions: Definition[] = [
Expand Down Expand Up @@ -86,7 +86,7 @@ const definitions: Definition[] = [
model: 'SM323',
vendor: 'Samotech',
description: 'Zigbee retrofit dimmer 250W',
extend: [light({configureReporting: true})],
extend: [light({configureReporting: true}), electricityMeter()],
},
{
zigbeeModel: ['SM324'],
Expand Down

0 comments on commit 86f41ce

Please sign in to comment.