Skip to content

Commit

Permalink
feat: Support pin and add fingerprint action for Heimgard Technolog…
Browse files Browse the repository at this point in the history
…ies HC-SLM-1 (#5971)

* updated constants.ts and Heimguard tech.

* Revert "updated constants.ts and Heimguard tech."

This reverts commit 884fab7.

* fix formatting

---------

Co-authored-by: root <root@zigbee2mqtt.local>
  • Loading branch information
Dávid Nagy and root authored Jul 15, 2023
1 parent 106d585 commit eff5688
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/devices/heimgard_technologies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ const definitions: Definition[] = [
model: 'HC-SLM-1',
vendor: 'Heimgard Technologies',
description: 'Wattle door lock pro',
fromZigbee: [fz.lock, fz.battery],
toZigbee: [tz.lock, tz.lock_auto_relock_time, tz.lock_sound_volume],
fromZigbee: [fz.battery, fz.lock_operation_event, fz.lock_programming_event, fz.lock, fz.lock_pin_code_response,
fz.lock_user_status_response],
toZigbee: [tz.identify, tz.lock, tz.lock_sound_volume, tz.lock_auto_relock_time, tz.pincode_lock, tz.lock_userstatus],
meta: {pinCodeCount: 39},
ota: ota.zigbeeOTA,
configure: async (device, coordinatorEndpoint, logger) => {
const endpoint = device.getEndpoint(1);
Expand All @@ -23,7 +25,9 @@ const definitions: Definition[] = [
await endpoint.read('closuresDoorLock', ['lockState', 'soundVolume']);
},
exposes: [
e.lock(), e.battery(), e.auto_relock_time().withValueMin(0).withValueMax(3600), e.sound_volume()],
e.lock(), e.battery(), e.sound_volume(), e.auto_relock_time().withValueMin(0).withValueMax(3600),
e.lock_action_user(), e.lock_action_source_name(), e.pincode(),
],
},
{
zigbeeModel: ['HT-SLM-2'],
Expand Down
1 change: 1 addition & 0 deletions src/lib/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ export const lockSourceName = {
1: 'rf',
2: 'manual',
3: 'rfid',
4: 'fingerprint',
};

export const armMode = {
Expand Down

0 comments on commit eff5688

Please sign in to comment.