Skip to content

Commit

Permalink
Support HS1DS-E. Koenkk/zigbee2mqtt#911
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk authored and qosmio committed Dec 25, 2019
1 parent e02a8da commit 6abd281
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions devices.js
Original file line number Diff line number Diff line change
Expand Up @@ -7582,6 +7582,24 @@ const devices = [
fromZigbee: [fz.heiman_contact],
toZigbee: [],
},
{
zigbeeModel: ['DoorSensor-EM'],
model: 'HS1DS-E',
vendor: 'HEIMAN',
description: 'Door sensor',
supports: 'contact',
fromZigbee: [fz.heiman_contact],
toZigbee: [],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 1);
const actions = [
(cb) => device.write('ssIasZone', 'iasCieAddr', coordinator.device.getIeeeAddr(), cb),
(cb) => device.functional('ssIasZone', 'enrollRsp', {enrollrspcode: 0, zoneid: 23}, cb),
];

execute(device, actions, callback, 1000);
},
},
{
zigbeeModel: ['WaterSensor-N'],
model: 'HS1WL',
Expand Down

0 comments on commit 6abd281

Please sign in to comment.