Skip to content

Commit

Permalink
feat(add): SQ510A Koenkk/zigbee2mqtt#24141
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk committed Oct 25, 2024
1 parent b27a810 commit 5ff3e9f
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/devices/ewelink.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import fz from '../converters/fromZigbee';
import * as exposes from '../lib/exposes';
import {logger} from '../lib/logger';
import {deviceEndpoints, onOff} from '../lib/modernExtend';
import {battery, deviceEndpoints, iasZoneAlarm, onOff} from '../lib/modernExtend';
import {DefinitionWithExtend, Fz} from '../lib/types';

const e = exposes.presets;
Expand Down Expand Up @@ -156,6 +156,20 @@ const definitions: DefinitionWithExtend[] = [
toZigbee: [],
exposes: [e.rain()],
},
{
fingerprint: [
{
type: 'EndDevice',
manufacturerName: 'eWeLink',
modelID: 'SNZB-03',
endpoints: [{ID: 1, profileID: 260, deviceID: 1026, inputClusters: [0, 3, 1, 1280, 32], outputClusters: [25]}],
},
],
model: 'SQ510A',
vendor: 'eWeLink',
description: 'Water leak sensor',
extend: [iasZoneAlarm({zoneAttributes: ['alarm_1', 'battery_low', 'tamper'], zoneType: 'water_leak'}), battery()],
},
];

export default definitions;
Expand Down

0 comments on commit 5ff3e9f

Please sign in to comment.